[Git][ghc/ghc][master] bindist: Fix xattr cleaning
Marge Bot (@marge-bot)
gitlab at gitlab.haskell.org
Sat Apr 27 21:53:59 UTC 2024
Marge Bot pushed to branch master at Glasgow Haskell Compiler / GHC
Commits:
64feadcd by Rodrigo Mesquita at 2024-04-27T17:53:16-04:00
bindist: Fix xattr cleaning
The original fix (725343aa) was incorrect because it used the shell
bracket syntax which is the quoting syntax in autoconf, making the test
for existence be incorrect and therefore `xattr` was never run.
Fixes #24554
- - - - -
1 changed file:
- distrib/configure.ac.in
Changes:
=====================================
distrib/configure.ac.in
=====================================
@@ -114,16 +114,16 @@ if test "$HostOS" = "darwin"; then
# The following is the work around suggested by @carter in #17418 during
# install time. This should help us with code signing issues by removing
# extended attributes from all files.
- XATTR=${XATTR:-/usr/bin/xattr}
+ XATTR="${XATTR:-/usr/bin/xattr}"
- if [ -e "${XATTR}" ]; then
+ if test -e "${XATTR}"; then
# Instead of cleaning the attributes of the ghc-toolchain binary only,
# we clean them from all files in the bin/ and lib/ directories, as it additionally future
# proofs running executables from the bindist besides ghc-toolchain at configure time, and
# we can avoid figuring out the path to the ghc-toolchain dynlib specifically.
- /usr/bin/xattr -rc bin/
- /usr/bin/xattr -rc lib/
+ "$XATTR" -rc bin/
+ "$XATTR" -rc lib/
fi
fi
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/64feadcddb6b9bcb45312fb872ec6842df68788a
--
View it on GitLab: https://gitlab.haskell.org/ghc/ghc/-/commit/64feadcddb6b9bcb45312fb872ec6842df68788a
You're receiving this email because of your account on gitlab.haskell.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.haskell.org/pipermail/ghc-commits/attachments/20240427/58dc9d47/attachment-0001.html>
More information about the ghc-commits
mailing list