9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
* [9fans] Problems with git from /sys/src/cmd/git when using 9legacy-ISO (08-06-2024)
@ 2024-11-16  5:59 ibrahim via 9fans
  0 siblings, 0 replies; only message in thread
From: ibrahim via 9fans @ 2024-11-16  5:59 UTC (permalink / raw)
  To: 9fans

[-- Attachment #1: Type: text/plain, Size: 1713 bytes --]


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

[-- Attachment #2: Type: text/html, Size: 3934 bytes --]

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2024-11-16  5:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-11-16  5:59 [9fans] Problems with git from /sys/src/cmd/git when using 9legacy-ISO (08-06-2024) ibrahim via 9fans

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).