gawk: disable PIE

PIE is incompatible with gawk's new persistent memory feature.
This fixes pkgsMusl.gawk.

Fixes: 3fba3bf53f ("gawk: 5.1.1 -> 5.2.1")
Fixes: https://github.com/NixOS/nixpkgs/pull/210124
This commit is contained in:
Alyssa Ross 2023-01-11 00:43:44 +00:00
parent 33aa224777
commit 1729975ffc
No known key found for this signature in database
GPG key ID: F9DBED4859B271C0

View file

@ -16,7 +16,7 @@
assert (doCheck && stdenv.isLinux) -> glibcLocales != null;
stdenv.mkDerivation rec {
stdenv.mkDerivation (rec {
pname = "gawk" + lib.optionalString interactive "-interactive";
version = "5.2.1";
@ -83,4 +83,8 @@ stdenv.mkDerivation rec {
platforms = platforms.unix ++ platforms.windows;
maintainers = [ ];
};
}
} // lib.optionalAttrs stdenv.hostPlatform.isMusl {
# PIE is incompatible with the "persistent malloc" ("pma") feature.
# FIXME: make unconditional in staging (added to avoid rebuilds in staging-next)
hardeningDisable = [ "pie" ];
})