Skip to content

Commit

Permalink
boost: Don't store absolute path in #line
Browse files Browse the repository at this point in the history
This causes packages to have boost.dev in their runtime closures, via
assertion messages.

Fixes #34462.
  • Loading branch information
edolstra committed Feb 5, 2018
1 parent b1273f2 commit c08e4b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkgs/development/libraries/boost/generic.nix
Expand Up @@ -144,7 +144,7 @@ stdenv.mkDerivation {

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

0 comments on commit c08e4b9

Please sign in to comment.