Skip to content

Commit c08e4b9

Browse files
committedFeb 5, 2018
boost: Don't store absolute path in #line
This causes packages to have boost.dev in their runtime closures, via assertion messages. Fixes #34462.
1 parent b1273f2 commit c08e4b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎pkgs/development/libraries/boost/generic.nix

+1-1
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ stdenv.mkDerivation {
144144

145145
postFixup = ''
146146
# Make boost header paths relative so that they are not runtime dependencies
147-
find "$dev/include" \( -name '*.hpp' -or -name '*.h' -or -name '*.ipp' \) \
147+
cd "$dev" && find include \( -name '*.hpp' -or -name '*.h' -or -name '*.ipp' \) \
148148
-exec sed '1i#line 1 "{}"' -i '{}' \;
149149
'' + optionalString (hostPlatform.libc == "msvcrt") ''
150150
$RANLIB "$out/lib/"*.a

0 commit comments

Comments
 (0)
Please sign in to comment.