When you call "mk clean" or "mk nuke" after "mk install" the build system fails 
with the following messages :

term% mk clean
rm -f *.[568ijqv] *.a[568ijqv] y.tab.? lex.yy.c y.debug y.output [568ijqv].??* 
conf get fs log query repack save send serve walk $CLEANFILES
/bin/git/add: not a git repository
mk: rm -f *.[568ijqv] ...  : exit status=rc 14985: add 14987: not a git 
repository

term% mk nuke
rm -f *.[568ijqv] y.tab.? lex.yy.c y.debug y.output [568ijqv].??* *.acid conf 
get fs log query repack save send serve walk
/bin/git/add: not a git repository
mk: rm -f *.[568ijqv] ...  : exit status=rc 14991: add 14993: not a git 
repository


Reason :

The rc script /sys/src/cmd/git/rm

#!/bin/rc -e

exec git/add -r $*

overwrites rm from /$objtype/bin


Solution :

*IF YOU USE GIT ASK THE AUTHOR FOR HIS ADVICE.*


If you don't use git as a version control and want to use the mk-System of the 
CD you can workarount this problem :

1) before calling "mk nuke" or "mk install"

bind -c /$objtype/bin/rm rm

2) afterwards

unmount /$objtype/bin/rm rm


Its best to do this inside a build - rc script ..


I don't know if this workaround would cause problems when you use git as 
version-control and have to recompile the system. I prefer CVS while using 
plan9 and synchronize it with a fossil-scm running on a linux machine. I prefer 
having ticket, wiki, documentation at one place and in a single file - but 
thats a question of taste.


------------------------------------------
9fans: 9fans
Permalink: 
https://9fans.topicbox.com/groups/9fans/Tc673fad0577438ea-M578023315c1d33f8c23d0490
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

Reply via email to