gettext: apply gnulib.passthru.longdouble-redirect-patch

+11 -1
+11 -1
pkgs/development/libraries/gettext/default.nix
··· 1 - { stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash }: 1 + { stdenv, lib, fetchurl, fetchpatch, libiconv, xz, bash 2 + , gnulib 3 + }: 2 4 3 5 # Note: this package is used for bootstrapping fetchurl, and thus 4 6 # cannot use fetchpatch! All mutable patches (generated by GitHub or ··· 45 47 '' + lib.optionalString stdenv.hostPlatform.isCygwin '' 46 48 sed -i -e "s/\(cldr_plurals_LDADD = \)/\\1..\/gnulib-lib\/libxml_rpl.la /" gettext-tools/src/Makefile.in 47 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} 48 58 ''; 49 59 50 60 strictDeps = true;