nixpkgs/pkgs/build-support/setup-hooks
Lin Yinfeng bedc267a78
autoPatchelfHook: fix precise dependency ignorance
This commit fixes precise dependency ignorance by converting the
environment variable `autoPatchelfIgnoreMissingDeps` into a bash array
`ignoreMissingDepsArray`, passing `"${ignoreMissingDepsArray[@]}"`
instead of `"${autoPatchelfIgnoreMissingDeps[@]}"` to the python
script.

The original implementation does not work when
`autoPatchelfIgnoreMissingDeps` contains multiple dependency names.
Because it mistakenly passes `"${autoPatchelfIgnoreMissingDeps[@]}"`
to the python script. According to the Nix manual
(https://nixos.org/manual/nix/stable/expressions/derivations.html),
lists of strings are concatenated into whitespace-separated strings,
then passed to the builder as environment variables. So, if
`autoPatchelfIgnoreMissingDeps = [ "dep1" "dep2" "dep3" ]`,
`"${autoPatchelfIgnoreMissingDeps[@]}"` will be expanded to a single
argument `"dep1 dep2 dep3"`, which is not the intended behavior,
because the python script takes the long argument as a dependency
name.

With this commit, `"${ignoreMissingDepsArray[@]}"` will be expanded to
three arguments `"dep1" "dep2" "dep3"` arguments as expected, fixing
the issue.
2022-04-15 10:35:11 +08:00
..
wrap-gapps-hook
audit-blas.sh
audit-tmpdir.sh
auto-patchelf.py autoPatchelfHook: more precise dependency ignorance 2022-04-11 01:28:55 +00:00
auto-patchelf.sh autoPatchelfHook: fix precise dependency ignorance 2022-04-15 10:35:11 +08:00
autoreconf.sh stdenv: conservative undefined variables 2021-08-03 12:43:34 +09:00
breakpoint-hook.sh
canonicalize-jars.sh canonicalize-jars-hook: add 2021-10-27 13:21:27 +03:00
compress-man-pages.sh setup-hooks: compress-man-pages.sh: Do not attempt to compress .xz files 2021-08-19 17:13:05 -04:00
copy-desktop-items.sh copyDesktopItems: Use variable for repeated path 2022-04-07 11:04:11 +00:00
desktop-to-darwin-bundle.sh desktopToDarwinBundle: Fall back to scaling available 2022-03-21 14:20:03 +01:00
die.sh
enable-coverage-instrumentation.sh
find-xml-catalogs.sh
fix-darwin-dylib-names.sh fixDarwinDylibNames: set name of install_name_tool 2021-05-17 00:27:01 +09:00
gog-unpack.sh
install-shell-files.sh
keep-build-tree.sh
ld-is-cc-hook.sh
make-binary-wrapper.sh makeBinaryWrapper: create destination directory 2021-12-21 18:22:49 +01:00
make-coverage-analysis-report.sh
make-symlinks-relative.sh
make-wrapper.sh makeWrapper: Don't glob in prefix/suffix 2022-02-12 11:03:32 +01:00
move-docs.sh Revert "Merge remote-tracking branch 'origin/python-unstable' into staging-next" 2021-09-05 15:02:25 +02:00
move-lib64.sh
move-sbin.sh
move-systemd-user-units.sh
multiple-outputs.sh
patch-shebangs.sh
prune-libtool-files.sh
reproducible-builds.sh stdenv: conservative undefined variables 2021-08-03 12:43:34 +09:00
role.bash pkgs/build-support: Redirect to standard error rather than file "2" 2021-11-11 18:14:21 +13:00
separate-debug-info.sh separateDebugInfo: skip files objcopy can't read 2021-11-21 21:44:27 +00:00
set-java-classpath.sh
set-source-date-epoch-to-latest.sh
setup-debug-info-dirs.sh
shorten-perl-shebang.sh misc: Replace tab indentation with spaces 2021-11-14 16:04:46 +13:00
strip.sh stdenv: move --enable-deterministic-archives flag into GNU wrapper 2021-09-18 15:11:17 +02:00
update-autotools-gnu-config-scripts.sh
use-old-cxx-abi.sh
validate-pkg-config.sh validatePkgConfig: fix cross-compilation 2021-10-23 15:50:21 -07:00
win-dll-link.sh