1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-20 12:42:24 +00:00

xorg.*: disable relro/bindnow hardening

Breaks the module system at runtime otherwise.
This commit is contained in:
Robin Gloster 2016-08-14 02:13:16 +00:00
parent 8071cafe66
commit 27b9f5d65e
3 changed files with 3 additions and 5 deletions

View file

@ -46,7 +46,4 @@ fi
enableParallelBuilding=1
# breaks module loading
hardeningDisable="bindnow"
genericBuild

View file

@ -9,7 +9,9 @@ let
mkDerivation = name: attrs:
let newAttrs = (overrides."${name}" or (x: x)) attrs;
stdenv = newAttrs.stdenv or args.stdenv;
in stdenv.mkDerivation (removeAttrs newAttrs [ "stdenv" ]);
in stdenv.mkDerivation ((removeAttrs newAttrs [ "stdenv" ]) // {
hardeningDisable = [ "bindnow" "relro" ];
});
overrides = import ./overrides.nix {inherit args xorg;};

View file

@ -430,7 +430,6 @@ in
# and there are no fonts in this package anyway
"--enable-glamor"
];
hardeningDisable = [ "relro" ];
postInstall = ''
rm -fr $out/share/X11/xkb/compiled
ln -s /var/tmp $out/share/X11/xkb/compiled