fix git libexec rpaths (#103)

The fix works by having the relative path component count be the same between bin and libexec
This commit is contained in:
Max Howell 2023-01-16 16:12:14 -05:00 committed by GitHub
parent 4bad6b0b9b
commit b7727fe732
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 3 deletions

View file

@ -2,4 +2,4 @@ RUNTIME_PREFIX = YesPlease
RUNTIME_PREFIX_PERL = YesPlease RUNTIME_PREFIX_PERL = YesPlease
# must be set or the above are still abs paths # must be set or the above are still abs paths
gitexecdir=libexec/git-core gitexecdir=libexec

View file

@ -22,9 +22,9 @@ build:
make install $BAKE make install $BAKE
cd "{{prefix}}" cd "{{prefix}}"
DEBUG=1 fix-shebangs.ts bin/* libexec/git-core/* DEBUG=1 fix-shebangs.ts bin/* libexec/*
mkdir etc mkdir -p etc
cp "$SRCROOT"/props/git* etc cp "$SRCROOT"/props/git* etc
env: env:
V: 1 V: 1
@ -47,6 +47,13 @@ test: |
git add . git add .
test "$(git diff --name-only --cached)" = "testfile" test "$(git diff --name-only --cached)" = "testfile"
# necessary so `git commit` will work
git config user.email "you@example.com"
git config user.name "Your Name"
# necessary to check the libexec binaries work
git commit --message "test"
provides: provides:
- bin/git - bin/git
- bin/git-cvsserver - bin/git-cvsserver