git/list[1] front-page[2] threads[3] people[4] search[5] about
 

minor makefile issues

From
JEJoe Eykholt <joe@nuovasystems.com>
Date
Aug 2, 2007, 18:04 UTC
Message-ID
<46B21CB9.9050303@nuovasystems.com>
Hi All,

Due to my unusual environment, I ran into two issues when installing git 1.5.2.4 from source. Although these are unusual, they might not be unique and the fixes are easy:

    1.  The make install failed because of line 49 in templates/Makefile:
           (cd blt && $(TAR) cf - .) | \
           (cd '$(DESTDIR_SQ)$(template_dir_SQ)' && $(TAR) xf -)
    because I have CDPATH set, the 'cd blt' actually outputs the new 
directory on stdout
    which confuses the second tar.  Changing this to 'cd ./blt' fixes 
it.  Perhaps this could
    be considered a bash bug.
    2.  My home directory containing my build tree is NFS-mounted, and 
root doesn't have any
    permission to write it.  So, when doing 'make prefix=/usr/local 
install-doc' as root, I got these errors:
    # make prefix=/usr/local install-doc
    make -C Documentation install
    make[1]: Entering directory 
`/net/da01/home/jre/build/git-1.5.2.4/Documentation'
    rm -f doc.dep+ doc.dep
    rm: cannot remove `doc.dep': Permission denied
    make[1]: *** [doc.dep] Error 1
    make[1]: Leaving directory 
`/net/da01/home/jre/build/git-1.5.2.4/Documentation'
    make: *** [install-doc] Error 2

I'm not sure what the best fix is for the second problem. rm -f ignores non-existent files but not permission errors. I guess you could do 'rm -f doc.dep || true'.

No response necessary. Just thought you might like to know about these. Otherwise, git seems nice!

    Thanks,
    Joe Eykholt
Next: David Kastrup
Message 1 of 2 in “minor makefile issues”
  1. Joe EykholtAug 2, 2007
  2. David KastrupAug 2, 2007

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.