patchelf/tests
Tuomas Tynkkynen 4814341494 Add '--allowed-rpath-prefixes' option to '--shrink-rpath'
Fixes #97. In essence, the problem is that some packages in Nixpkgs have
RPATHs pointing to both $NIX_BUILD_TOP and $out, e.g.:

/tmp/nix-build-openldap-2.4.44.drv-0/openldap-2.4.44/libraries/libldap_r/.libs
/tmp/nix-build-openldap-2.4.44.drv-0/openldap-2.4.44/libraries/liblber/.libs
/nix/store/bfkmdxmv3a3f0g3d2q8jkdz2wam93c5z-openldap-2.4.44/lib
/nix/store/bfkmdxmv3a3f0g3d2q8jkdz2wam93c5z-openldap-2.4.44/lib64

Currently, running `patchelf --shrink-rpath` does the wrong thing by
keeping the /tmp/ paths and deleting the /nix/store ones. Now we can fix
the problem by using

patchelf --shrink-rpath --allowed-rpath-prefixes $NIX_STORE_DIR

in the Nixpkgs fixupPhase instead.
2016-06-04 00:25:02 +03:00
..
no-rpath-prebuild rewrite no-rpath test 2012-07-11 10:10:32 +02:00
Makefile.am Add '--allowed-rpath-prefixes' option to '--shrink-rpath' 2016-06-04 00:25:02 +03:00
bar.c * Add tests. 2005-09-29 12:03:56 +00:00
big-dynstr.sh Allow parallel execution of tests 2012-07-10 18:16:24 -04:00
foo.c * Regression test for NIXPKGS-98: patchelf barfs on dynamic libraries 2009-06-16 15:26:30 +00:00
main.c * Fix the tests on FreeBSD. On FreeBSD, the RPATH is scoped: adding a 2008-05-09 15:46:54 +00:00
no-rpath-prebuild.sh no-rpath-prebuild: force pagesize to 4096 on prebuilt binaries 2016-02-29 17:38:07 -03:00
no-rpath.c rewrite no-rpath test 2012-07-11 10:10:32 +02:00
no-rpath.sh rewrite no-rpath test 2012-07-11 10:10:32 +02:00
plain-fail.sh * Add a test for programs that crash when .dynstr etc. are moved. 2005-10-03 18:22:32 +00:00
plain-run.sh * Add tests. 2005-09-29 12:03:56 +00:00
set-interpreter-long.sh Allow parallel execution of tests 2012-07-10 18:16:24 -04:00
set-interpreter-short.sh Allow parallel execution of tests 2012-07-10 18:16:24 -04:00
set-rpath-library.sh Allow parallel execution of tests 2012-07-10 18:16:24 -04:00
set-rpath.sh Allow parallel execution of tests 2012-07-10 18:16:24 -04:00
shrink-rpath-with-allowed-prefixes.sh Add '--allowed-rpath-prefixes' option to '--shrink-rpath' 2016-06-04 00:25:02 +03:00
shrink-rpath.sh Allow parallel execution of tests 2012-07-10 18:16:24 -04:00
simple.c * Added some real tests. 2005-09-29 14:21:40 +00:00
soname.sh soname test: set an initial DT_SONAME entry 2015-07-13 19:54:30 +02:00