Merge branch 'hardened-stdenv' into staging

Closes #12895

Amazing work by @globin & @fpletz getting hardened compiler flags by
enabled default on the whole package set
This commit is contained in:
obadz
2016-08-22 01:19:35 +01:00
468 changed files with 1777 additions and 1453 deletions

View File

@@ -21,12 +21,14 @@ perlPackages.buildPerlPackage rec {
sed -i 's/ doc / /g' wml_backend/p2_mp4h/Makefile.in
sed -i '/p2_mp4h\/doc/d' Makefile.in
'';
buildInputs = with perlPackages;
[ perl TermReadKey GD BitVector ncurses lynx makeWrapper ImageSize ];
patches = [ ./redhat-with-thr.patch ./dynaloader.patch ./no_bitvector.patch ];
hardeningDisable = [ "format" ];
postPatch = ''
substituteInPlace wml_frontend/wml.src \
--replace "File::PathConvert::realpath" "Cwd::realpath" \