{"thread":{"id":"9357","subject":"minor makefile issues","startedAt":"2007-08-02T18:04:41Z","lastAt":"2007-08-02T19:00:55Z","messageCount":2,"participants":["Joe Eykholt","David Kastrup"],"isPatch":false,"patchVersion":null,"patchTotal":null},"messages":[{"id":"49455","messageId":"46B21CB9.9050303@nuovasystems.com","threadId":"9357","inReplyTo":null,"subject":"minor makefile issues","fromName":"Joe Eykholt","fromEmail":"joe@nuovasystems.com","sentAt":"2007-08-02T18:04:41Z","receivedAt":"2007-08-02T18:04:41Z","isPatch":false,"sender":{"key":"joe@nuovasystems.com","avatar":null},"body":"Hi All,\n\nDue to my unusual environment, I ran into two issues when installing git \n1.5.2.4 from source.\nAlthough these are unusual, they might not be unique and the fixes are easy:\n\n    1.  The make install failed because of line 49 in templates/Makefile:\n           (cd blt && $(TAR) cf - .) | \\\n           (cd '$(DESTDIR_SQ)$(template_dir_SQ)' && $(TAR) xf -)\n    because I have CDPATH set, the 'cd blt' actually outputs the new \ndirectory on stdout\n    which confuses the second tar.  Changing this to 'cd ./blt' fixes \nit.  Perhaps this could\n    be considered a bash bug.\n\n    2.  My home directory containing my build tree is NFS-mounted, and \nroot doesn't have any\n    permission to write it.  So, when doing 'make prefix=/usr/local \ninstall-doc' as root, I got these errors:\n\n    # make prefix=/usr/local install-doc\n    make -C Documentation install\n    make[1]: Entering directory \n`/net/da01/home/jre/build/git-1.5.2.4/Documentation'\n    rm -f doc.dep+ doc.dep\n    rm: cannot remove `doc.dep': Permission denied\n    make[1]: *** [doc.dep] Error 1\n    make[1]: Leaving directory \n`/net/da01/home/jre/build/git-1.5.2.4/Documentation'\n    make: *** [install-doc] Error 2\n\nI'm not sure what the best fix is for the second problem.  rm -f ignores \nnon-existent files but not permission errors.\nI guess you could do 'rm -f doc.dep || true'.\n\nNo response necessary.  Just thought you might like to know about \nthese.  Otherwise, git seems nice!\n\n    Thanks,\n    Joe Eykholt\n"},{"id":"49458","messageId":"853az1223c.fsf@lola.goethe.zz","threadId":"9357","inReplyTo":"46B21CB9.9050303@nuovasystems.com","subject":"Re: minor makefile issues","fromName":"David Kastrup","fromEmail":"dak@gnu.org","sentAt":"2007-08-02T19:00:55Z","receivedAt":"2007-08-02T19:00:55Z","isPatch":false,"sender":{"key":"dak@gnu.org","avatar":"https://avatars.githubusercontent.com/u/52141349?v=4"},"body":"Joe Eykholt <joe@nuovasystems.com> writes:\n\n> Hi All,\n>\n> Due to my unusual environment, I ran into two issues when installing\n> git 1.5.2.4 from source.\n> Although these are unusual, they might not be unique and the fixes are easy:\n>\n>    1.  The make install failed because of line 49 in templates/Makefile:\n>           (cd blt && $(TAR) cf - .) | \\\n>           (cd '$(DESTDIR_SQ)$(template_dir_SQ)' && $(TAR) xf -)\n>    because I have CDPATH set, the 'cd blt' actually outputs the new\n> directory on stdout\n>    which confuses the second tar.  Changing this to 'cd ./blt' fixes\n> it.  Perhaps this could\n>    be considered a bash bug.\n\nNo, it is a user bug.  You don't want a script to _ever_ walk around\non its own volition, so you must _not_ export CDPATH.  Instead, set it\nin .bashrc without exporting it.  That way, it will be available with\nevery interactive shell, and not interfering with scripts.\n\n>    2.  My home directory containing my build tree is NFS-mounted, and\n> root doesn't have any\n>    permission to write it.  So, when doing 'make prefix=/usr/local\n> install-doc' as root, I got these errors:\n>\n>    # make prefix=/usr/local install-doc\n>    make -C Documentation install\n>    make[1]: Entering directory\n> /net/da01/home/jre/build/git-1.5.2.4/Documentation'\n>    rm -f doc.dep+ doc.dep\n>    rm: cannot remove `doc.dep': Permission denied\n>    make[1]: *** [doc.dep] Error 1\n>    make[1]: Leaving directory\n> /net/da01/home/jre/build/git-1.5.2.4/Documentation'\n>    make: *** [install-doc] Error 2\n>\n> I'm not sure what the best fix is for the second problem.  rm -f\n> ignores non-existent files but not permission errors.\n> I guess you could do 'rm -f doc.dep || true'.\n\nFirst do \"make doc\" for your normal user, then make doc-install as\nroot.\n\n-- \nDavid Kastrup, Kriemhildstr. 15, 44793 Bochum\n"}]}