From d6628cffd1d192b506aa99eda080971bfb3a8f52 Mon Sep 17 00:00:00 2001 From: Randy Eckenrode Date: Sun, 28 May 2023 19:51:58 -0400 Subject: [PATCH] gettext: 0.21 -> 0.21.1 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Unfortunately, there’s no release announcement for this release. From the [NEWS][1]. > Version 0.21.1 - October 2022 > > * Runtime behaviour: > - On AIX, locale names with a script or with an uppercase language are now > supported. > For example, sr_Cyrl_RS.UTF-8 is treated like sr_RS.UTF-8@cyrillic, and > EN_US.UTF-8 is treated like en_US.UTF-8. > > * The base Unicode standard is now updated to 14.0.0. > > * Portability: > - Building on macOS 11/arm64 is now supported. > - Building on Linux/powerpc64le with glibc ≥ 2.35 is now supported. The vendored gnulib was also updated, which indirectly fixes a build failure with clang 16. The version in 0.20 fails to build because it attempts to assign an incompatible function pointer that should have but does not have `__attribute__((noreturn))`. On clang 16, this is an error by default. [1]: https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=blob_plain;f=NEWS;hb=8b38ee827251cadbb90cb6cb576ae98702566288 --- pkgs/development/libraries/gettext/default.nix | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/pkgs/development/libraries/gettext/default.nix b/pkgs/development/libraries/gettext/default.nix index 5443f1eeac0d..a8e8fde96f63 100644 --- a/pkgs/development/libraries/gettext/default.nix +++ b/pkgs/development/libraries/gettext/default.nix @@ -9,11 +9,11 @@ stdenv.mkDerivation rec { pname = "gettext"; - version = "0.21"; + version = "0.21.1"; src = fetchurl { url = "mirror://gnu/gettext/${pname}-${version}.tar.gz"; - sha256 = "04kbg1sx0ncfrsbr85ggjslqkzzb243fcw9nyh3rrv1a22ihszf7"; + sha256 = "sha256-6MNlDh2M7odcTzVWQjgsHfgwWL1aEe6FVcDPJ21kbUU="; }; patches = [ ./absolute-paths.diff @@ -47,14 +47,6 @@ stdenv.mkDerivation rec { '' + lib.optionalString stdenv.hostPlatform.isCygwin '' sed -i -e "s/\(cldr_plurals_LDADD = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in - '' + - # This change to gettext's vendored copy of gnulib is already - # merged upstream; we can drop this patch on the next version - # bump. It must be applied twice because gettext vendors gnulib - # not once, but twice! - '' - patch -p2 -d gettext-tools/gnulib-lib/ < ${gnulib.passthru.longdouble-redirect-patch} - patch -p2 -d gettext-tools/libgrep/ < ${gnulib.passthru.longdouble-redirect-patch} ''; strictDeps = true;