# make install fails with $bindir = $execdir

3 messages from 2009-07-10 to 2009-07-10. Participants: Santi Béjar, Johannes Sixt.
Thread: https://gitlist.dev/t/20074

## Santi Béjar, 2009-07-10 10:11

Subject: make install fails with $bindir = $execdir
Message-ID: <adf1fd3d0907100311k3b70c9f4va077e96a499ce093@mail.gmail.com>
URL: https://gitlist.dev/e/adf1fd3d0907100311k3b70c9f4va077e96a499ce093%40mail.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

```

## Johannes Sixt, 2009-07-10 10:35

Subject: Re: make install fails with $bindir = $execdir
Message-ID: <4A571966.1080505@viscovery.net>
URL: https://gitlist.dev/e/4A571966.1080505%40viscovery.net
In-Reply-To: <adf1fd3d0907100311k3b70c9f4va077e96a499ce093@mail.gmail.com>

```
Santi Béjar schrieb:
>   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:

A fix was posted 11 hours ago:

http://thread.gmane.org/gmane.comp.version-control.git/122903/focus=123020

-- Hannes

```

## Santi Béjar, 2009-07-10 11:57

Subject: Re: make install fails with $bindir = $execdir
Message-ID: <adf1fd3d0907100457s6ee06344nf4b4fecac1e30358@mail.gmail.com>
URL: https://gitlist.dev/e/adf1fd3d0907100457s6ee06344nf4b4fecac1e30358%40mail.gmail.com
In-Reply-To: <4A571966.1080505@viscovery.net>

```
2009/7/10 Johannes Sixt <j.sixt@viscovery.net>:
> Santi Béjar schrieb:
>>   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:
>
> A fix was posted 11 hours ago:
>
> http://thread.gmane.org/gmane.comp.version-control.git/122903/focus=123020

Thanks. I missed it because it is hidden inside a thread.

Santi

```
