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

make install fails with $bindir = $execdir

From
SBSanti Béjar <santi@agolina.net>
Date
Jul 10, 2009, 10:11 UTC
Message-ID
<adf1fd3d0907100311k3b70c9f4va077e96a499ce093@mail.gmail.com>
Hi *,
  since commit 4ecbc17 (Makefile: install 'git' in execdir,
2009-07-09), included in v1.6.4-rc0, the install fails when $bindir is
equal to $execdir with:
bindir=$(cd '/home/pcl305/sbejar/usr/stow/git/bin' && pwd) && \
        execdir=$(cd '/home/pcl305/sbejar/usr/stow/git/bin' && pwd) && \
        { rm -f "$execdir/git" && \
                test -z "" && \
                ln "$bindir/git" "$execdir/git" 2>/dev/null || \
                cp "$bindir/git" "$execdir/git"; } && \
        { for p in  ..list..of..builtins; do \
                rm -f "$execdir/$p" && \
                ln "$execdir/git" "$execdir/$p" 2>/dev/null || \
                ln -s "git" "$execdir/$p" 2>/dev/null || \
                cp "$execdir/git" "$execdir/$p" || exit; \
          done; } && \
        ./check_bindir "z$bindir" "z$execdir" "$bindir/git-add"
cp: cannot stat `/home/pcl305/sbejar/usr/stow/git/bin/git': No such
file or directory
make: *** [install] Error 1

I understant what happens, but all this is very delicate, so I'll try to fix it but I don't know when. Maybe we need also tests for this.

Santi
Next: Johannes Sixt
Message 1 of 3 in “make install fails with $bindir = $execdir”
  1. Santi BéjarJul 10, 2009
  2. Johannes SixtJul 10, 2009
  3. Santi BéjarJul 10, 2009

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.