nixpkgs/pkgs/build-support
aszlig f1fbf818c4
autoPatchelfHook: Run after patchelf's setup hook
So far the runtimeDependencies variable has been rather useless unless
you also set dontPatchelf, because the patchelf setup hook ran *after*
the autoPatchelfHook and thus stripped off the additional RPATHs added
using runtimeDependencies.

I did this by moving the autoPatchelfHook to be run in postFixup instead
of fixupOutput, however I needed to replicate the for loop that runs the
hook on all outputs.

Until we have a way to influence order of execution for hooks I've
marked this with an XXX so that we can use fixupOutput again.

Tested this against all packages that use autoPatchelfHook using the
following and checking whether the output contains any errors concerning
shared libraries:

nix-build -E 'with import ./. { config.allowUnfree = true; };
  runCommand "test-executables" {
    drvs = [
      masterpdfeditor franz zoom-us anydesk teamviewer maxx
      oracle-instantclient cups-kyodialog3 virtlyst powershell
    ];
  } "for i in $drvs; do for b in $i/bin/*; do \"$b\" || :; done; done"
'

Signed-off-by: aszlig <aszlig@nix.build>
Fixes: https://github.com/NixOS/nixpkgs/issues/43082
Cc: @Ericson2314
2018-07-16 01:52:28 +02:00
..
agda
bintools-wrapper cc-wrapper, bintools-wrapper: use getHostRoleEnvHook instead of getTargetRoleEnvHook 2018-06-03 10:54:32 -04:00
build-bazel-package bazel-deps: init at 2018-05-31 (#43018) 2018-07-09 22:38:45 +00:00
build-dotnet-package
build-fhs-userenv buildFHSUserEnv: change to root directory after chroot 2018-04-28 14:51:07 +01:00
build-setupcfg Revert "buildSetupcfg: Include unzip for zip sources." 2018-04-14 20:12:22 -04:00
buildenv
cc-wrapper cc-wrapper: disable stackprotector for mingw 2018-06-23 22:05:26 -04:00
docker dockerTools.examples: explicitly set image tag to fix docker-tools tests 2018-07-06 16:38:42 +02:00
dotnetbuildhelpers
dotnetenv
emacs
expand-response-params
fetchbower
fetchbzr
fetchcvs bsd: init netbsd & openbsd userland 2018-04-24 14:16:35 -05:00
fetchdarcs
fetchdocker
fetchegg
fetchfossil
fetchgit nix-prefetch-git: fix output fetchSubmodules property 2018-06-17 21:19:27 +10:00
fetchgitlocal
fetchgx
fetchhg
fetchipfs
fetchmavenartifact
fetchmtn
fetchnuget
fetchpatch Revert "haskell generic-builder: Use strictDeps always" 2018-07-04 13:18:21 +02:00
fetchrepoproject
fetchs3 fetchs3: allow to name the derivation output (#39823) 2018-05-03 11:08:25 +01:00
fetchsvn
fetchsvnrevision
fetchsvnssh
fetchurl fetchurl: add sageupstream mirror 2018-06-30 01:20:44 +02:00
fetchzip
icon-conv-tools
kernel kernel: Fix running kernels *with* modules 2018-04-12 15:43:53 +02:00
libredirect
make-desktopitem
make-startupitem
make-symlinks
mkshell
mono-dll-fixer
nix-prefetch-github nix-prefetch-github: init -> 1.3 2018-05-22 20:55:07 +02:00
nuke-references
ocaml
release
remove-references-to
rust buildRustCrate: Add some commentary about target_os. 2018-07-02 11:22:47 -04:00
setup-hooks autoPatchelfHook: Run after patchelf's setup hook 2018-07-16 01:52:28 +02:00
singularity-tools singularity-tools: create mount points for image building (#41470) 2018-06-18 23:50:06 +02:00
src-only
substitute
substitute-files
templaterpm
upstream-updater
vm vmTools: update Debian minor version to 8.11 2018-07-01 15:47:09 -07:00
wrapper-common {bintools,cc}-wrapper: Factor out role accumulation logic 2018-05-07 15:10:45 -04:00
build-maven.nix
build-pecl.nix
closure-info.nix
dhall-to-nix.nix
plugins.nix
replace-dependency.nix
setup-systemd-units.nix
source-from-head-fun.nix
trivial-builders.nix trivial-builders: disallow sub in requireFile 2018-06-26 21:49:08 -04:00