nixpkgs/pkgs
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
..
applications gxneur: 0.13.0 → 0.20.0 2018-07-16 01:49:47 +02:00
build-support autoPatchelfHook: Run after patchelf's setup hook 2018-07-16 01:52:28 +02:00
common-updater
data iana-etc: 20180405 -> 20180711 2018-07-13 20:02:30 -04:00
desktops gnome3.totem: disable vala plug-ins again 2018-07-15 16:57:27 +02:00
development Merge pull request #43541 from jfrankenau/update-cura 2018-07-15 21:45:35 +00:00
games Merge pull request #43578 from rardiol/cdda 2018-07-15 21:10:05 +00:00
misc adapta-gtk-theme: 3.93.1.28 -> 3.94.0.1 (#43373) 2018-07-14 20:54:08 +02:00
os-specific batman_adv: 2018.0 -> 2018.1 2018-07-15 21:41:45 +02:00
servers caddy: 0.10.12 -> 0.11.0 2018-07-16 00:04:43 +02:00
shells zsh-command-time: 2017-05-09 -> 2018-04-30 2018-07-12 09:45:54 +03:00
stdenv make-derivation: Don't add host-suffix to fixed-output derivations names 2018-07-09 11:07:10 -04:00
test Merge remote-tracking branch 'upstream/master' into staging 2018-06-18 15:30:39 -04:00
tools Merge pull request #43494 from jb55/clipmenu-master 2018-07-16 00:48:31 +02:00
top-level xneur_0_8: drop 2018-07-16 01:49:46 +02:00