Skip to content

Commit d46e78e

Browse files
committedMay 4, 2017
libseccomp: Fix RPATH
Ensure that bin/scmp_sys_resolver doesn't have $TMPDIR in its RPATH. I can't reproduce the issue reported in 98edb24 that required the addition of a wrapper script. It seems to work fine without.
1 parent 77fba4a commit d46e78e

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed
 

‎pkgs/development/libraries/libseccomp/default.nix

+2-4
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,8 @@ stdenv.mkDerivation rec {
1515
patchShebangs .
1616
'';
1717

18-
postInstall = ''
19-
wrapProgram $out/bin/scmp_sys_resolver --prefix LD_LIBRARY_PATH ":" $out/lib
20-
'';
18+
# Hack to ensure that patchelf --shrink-rpath get rids of a $TMPDIR reference.
19+
preFixup = "rm -rfv src";
2120

2221
meta = with stdenv.lib; {
2322
description = "High level library for the Linux Kernel seccomp filter";
@@ -27,4 +26,3 @@ stdenv.mkDerivation rec {
2726
maintainers = with maintainers; [ thoughtpolice wkennington ];
2827
};
2928
}
30-

1 commit comments

Comments
 (1)

dezgeg commented on May 4, 2017

@dezgeg
Contributor

We could avoid this specific problem (RPATHs) with a new patchelf release: NixOS/patchelf@4814341

Please sign in to comment.