3
0
Fork 0
forked from mirrors/nixpkgs

Merge #233312: gawk: 5.2.1 -> 5.2.2

...into staging
This commit is contained in:
Vladimír Čunát 2023-06-11 09:21:38 +02:00
commit fadcdd1263
No known key found for this signature in database
GPG key ID: E747DF1F9575A3AA
2 changed files with 2 additions and 39 deletions

View file

@ -1,31 +0,0 @@
https://git.savannah.gnu.org/cgit/gawk.git/patch/?id=e0b7737930f8a677d3c509f8ce72b9130965ec0a
--- a/m4/pma.m4
+++ b/m4/pma.m4
@@ -23,15 +23,18 @@ then
[LDFLAGS="${LDFLAGS} -no-pie"
export LDFLAGS])
;;
- *darwin*)
- # 23 October 2022: See README_d/README.macosx for
- # the details on what's happening here. See also
- # the manual.
-
- # Compile as Intel binary all the time, even on M1.
- CFLAGS="${CFLAGS} -arch x86_64"
- LDFLAGS="${LDFLAGS} -Xlinker -no_pie"
- export CFLAGS LDFLAGS
+ *darwin*)
+ # 27 November 2022: PMA only works on Intel.
+ case $host in
+ x86_64-*)
+ LDFLAGS="${LDFLAGS} -Xlinker -no_pie"
+ export LDFLAGS
+ ;;
+ *)
+ # disable on all other macOS systems
+ use_persistent_malloc=no
+ ;;
+ esac
;;
*cygwin* | *CYGWIN* | *solaris2.11* | freebsd13.* | openbsd7.* )
true # nothing do, exes on these systems are not PIE

View file

@ -18,19 +18,13 @@ assert (doCheck && stdenv.isLinux) -> glibcLocales != null;
stdenv.mkDerivation rec {
pname = "gawk" + lib.optionalString interactive "-interactive";
version = "5.2.1";
version = "5.2.2";
src = fetchurl {
url = "mirror://gnu/gawk/gawk-${version}.tar.xz";
hash = "sha256-ZzVTuR+eGMxXku1RB1341RDJBA9VCm904Jya3SQ6fk8=";
hash = "sha256-PB/OFEa0y+4c0nO9fsZLyH2J9hU3RxzT4F4zqWWiUOk=";
};
patches = [
# Pull upstream fix for aarch64-darwin where pma does not work.
# Can be removed after next gawk release.
./darwin-no-pma.patch
];
# PIE is incompatible with the "persistent malloc" ("pma") feature.
# While build system attempts to pass -no-pie to gcc. nixpkgs' `ld`
# wrapped still passes `-pie` flag to linker and breaks linkage.