Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)

gettext: 0.21 -> 0.21.1

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

+2 -10
+2 -10
pkgs/development/libraries/gettext/default.nix
··· 9 9 10 10 stdenv.mkDerivation rec { 11 11 pname = "gettext"; 12 - version = "0.21"; 12 + version = "0.21.1"; 13 13 14 14 src = fetchurl { 15 15 url = "mirror://gnu/gettext/${pname}-${version}.tar.gz"; 16 - sha256 = "04kbg1sx0ncfrsbr85ggjslqkzzb243fcw9nyh3rrv1a22ihszf7"; 16 + sha256 = "sha256-6MNlDh2M7odcTzVWQjgsHfgwWL1aEe6FVcDPJ21kbUU="; 17 17 }; 18 18 patches = [ 19 19 ./absolute-paths.diff ··· 47 47 '' + lib.optionalString stdenv.hostPlatform.isCygwin '' 48 48 sed -i -e "s/\(cldr_plurals_LDADD = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in 49 49 sed -i -e "s/\(libgettextsrc_la_LDFLAGS = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in 50 - '' + 51 - # This change to gettext's vendored copy of gnulib is already 52 - # merged upstream; we can drop this patch on the next version 53 - # bump. It must be applied twice because gettext vendors gnulib 54 - # not once, but twice! 55 - '' 56 - patch -p2 -d gettext-tools/gnulib-lib/ < ${gnulib.passthru.longdouble-redirect-patch} 57 - patch -p2 -d gettext-tools/libgrep/ < ${gnulib.passthru.longdouble-redirect-patch} 58 50 ''; 59 51 60 52 strictDeps = true;