summaryrefslogtreecommitdiff
path: root/gnu
diff options
context:
space:
mode:
authorEfraim Flashner <efraim@flashner.co.il>2022-05-28 21:57:49 +0300
committerEfraim Flashner <efraim@flashner.co.il>2022-05-28 22:01:10 +0300
commit039f364bb8711702b8d3ba3108dccd492b389993 (patch)
tree101e519daf2dc96b41b33d2680b1551d3de95962 /gnu
parenta81ac55a68110b2c703e79f835fec010b0b3fb8c (diff)
gnu: gettext-minimal: Fix build with new libunistring.
* gnu/packages/gettext.scm (gettext-minimal)[source]: Add patch. * gnu/packages/patches/gettext-libunicode-update.patch: New file. * gnu/local.mk (dist_patch_DATA): Register it.
Diffstat (limited to 'gnu')
-rw-r--r--gnu/local.mk3
-rw-r--r--gnu/packages/gettext.scm5
-rw-r--r--gnu/packages/patches/gettext-libunicode-update.patch99
3 files changed, 104 insertions, 3 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 0297a9a3806..14cb3cf1c14 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -10,7 +10,7 @@
10# Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net> 10# Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Ricardo Wurmus <rekado@elephly.net>
11# Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com> 11# Copyright © 2016 Ben Woodcroft <donttrustben@gmail.com>
12# Copyright © 2016, 2017, 2018, 2019 Alex Vong <alexvong1995@gmail.com> 12# Copyright © 2016, 2017, 2018, 2019 Alex Vong <alexvong1995@gmail.com>
13# Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Efraim Flashner <efraim@flashner.co.il> 13# Copyright © 2016, 2017, 2018, 2019, 2020, 2021, 2022 Efraim Flashner <efraim@flashner.co.il>
14# Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org> 14# Copyright © 2016, 2017, 2018, 2019, 2020, 2021 Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
15# Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> 15# Copyright © 2017, 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr>
16# Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org> 16# Copyright © 2017, 2018 Clément Lassieur <clement@lassieur.org>
@@ -1137,6 +1137,7 @@ dist_patch_DATA = \
1137 %D%/packages/patches/geeqie-clutter.patch \ 1137 %D%/packages/patches/geeqie-clutter.patch \
1138 %D%/packages/patches/genimage-mke2fs-test.patch \ 1138 %D%/packages/patches/genimage-mke2fs-test.patch \
1139 %D%/packages/patches/geoclue-config.patch \ 1139 %D%/packages/patches/geoclue-config.patch \
1140 %D%/packages/patches/gettext-libunicode-update.patch \
1140 %D%/packages/patches/ghc-4.patch \ 1141 %D%/packages/patches/ghc-4.patch \
1141 %D%/packages/patches/ghc-8.0-fall-back-to-madv_dontneed.patch \ 1142 %D%/packages/patches/ghc-8.0-fall-back-to-madv_dontneed.patch \
1142 %D%/packages/patches/ghc-testsuite-dlopen-pie.patch \ 1143 %D%/packages/patches/ghc-testsuite-dlopen-pie.patch \
diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm
index d606acf798f..bf4c98e36c0 100644
--- a/gnu/packages/gettext.scm
+++ b/gnu/packages/gettext.scm
@@ -2,7 +2,7 @@
2;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org> 2;;; Copyright © 2012 Nikita Karetnikov <nikita@karetnikov.org>
3;;; Copyright © 2014 Mark H Weaver <mhw@netris.org> 3;;; Copyright © 2014 Mark H Weaver <mhw@netris.org>
4;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net> 4;;; Copyright © 2015, 2017 Ricardo Wurmus <rekado@elephly.net>
5;;; Copyright © 2016, 2019 Efraim Flashner <efraim@flashner.co.il> 5;;; Copyright © 2016, 2019, 2022 Efraim Flashner <efraim@flashner.co.il>
6;;; Copyright © 2016 Alex Kost <alezost@gmail.com> 6;;; Copyright © 2016 Alex Kost <alezost@gmail.com>
7;;; Copyright © 2017, 2019, 2020 Marius Bakke <marius@gnu.org> 7;;; Copyright © 2017, 2019, 2020 Marius Bakke <marius@gnu.org>
8;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com> 8;;; Copyright © 2017 Mathieu Othacehe <m.othacehe@gmail.com>
@@ -60,7 +60,8 @@
60 version ".tar.gz")) 60 version ".tar.gz"))
61 (sha256 61 (sha256
62 (base32 62 (base32
63 "04kbg1sx0ncfrsbr85ggjslqkzzb243fcw9nyh3rrv1a22ihszf7")))) 63 "04kbg1sx0ncfrsbr85ggjslqkzzb243fcw9nyh3rrv1a22ihszf7"))
64 (patches (search-patches "gettext-libunicode-update.patch"))))
64 (build-system gnu-build-system) 65 (build-system gnu-build-system)
65 (outputs '("out" 66 (outputs '("out"
66 "doc")) ;9 MiB of HTML 67 "doc")) ;9 MiB of HTML
diff --git a/gnu/packages/patches/gettext-libunicode-update.patch b/gnu/packages/patches/gettext-libunicode-update.patch
new file mode 100644
index 00000000000..2a67f4803ab
--- /dev/null
+++ b/gnu/packages/patches/gettext-libunicode-update.patch
@@ -0,0 +1,99 @@
1https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commit;h=56dc658db752c2894861ee574866d507f12a17f8
2Due to the encoding it needs to be retrieved from a git clone.
3
4commit 56dc658db752c2894861ee574866d507f12a17f8
5Author: Bruno Haible <bruno@clisp.org>
6Date: Sun Jan 2 15:43:41 2022 +0100
7
8 Update after gnulib changed.
9
10 * gettext-tools/tests/msgcat-17: Update test for changed libunistring line
11 breaking behaviour.
12 * gettext-tools/tests/msgfilter-sr-latin-1: Likewise.
13 * gettext-tools/tests/msgmerge-11: Likewise.
14 * gettext-tools/tests/xgettext-python-1: Likewise.
15
16diff --git a/gettext-tools/tests/msgcat-17 b/gettext-tools/tests/msgcat-17
17index 8fecc4039..c4aa220b9 100755
18--- a/gettext-tools/tests/msgcat-17
19+++ b/gettext-tools/tests/msgcat-17
20@@ -39,9 +39,9 @@ msgstr ""
21 #, c-format
22 msgid "write error of a big result on a too small disk% s% s"
23 msgstr ""
24-"Fehler beim Schreiben eines großen Ergebnisses auf eine zu kleine Platte% s"
25-"% smit der jederzeitigen Möglichkeit eines Fehlers in jedem Moment und an "
26-"jeder Stelle"
27+"Fehler beim Schreiben eines großen Ergebnisses auf eine zu kleine "
28+"Platte% s% smit der jederzeitigen Möglichkeit eines Fehlers in jedem Moment "
29+"und an jeder Stelle"
30 EOF
31
32 : ${DIFF=diff}
33diff --git a/gettext-tools/tests/msgfilter-sr-latin-1 b/gettext-tools/tests/msgfilter-sr-latin-1
34index c1cc97875..29e68c04f 100755
35--- a/gettext-tools/tests/msgfilter-sr-latin-1
36+++ b/gettext-tools/tests/msgfilter-sr-latin-1
37@@ -20,8 +20,8 @@ msgstr ""
38 "MIME-Version: 1.0\n"
39 "Content-Type: text/plain; charset=CP1251\n"
40 "Content-Transfer-Encoding: 8bit\n"
41-"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : (n%10>=2 && n"
42-"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
43+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : (n%10>=2 && "
44+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
45
46 #: ../gettext-tools/lib/closeout.c:64
47 msgid "write error"
48@@ -332,8 +332,8 @@ msgstr ""
49 "MIME-Version: 1.0\n"
50 "Content-Type: text/plain; charset=UTF-8\n"
51 "Content-Transfer-Encoding: 8bit\n"
52-"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : (n%10>=2 && n"
53-"%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
54+"Plural-Forms: nplurals=3; plural=n%10==1 && n%100!=11 ? 0 : (n%10>=2 && "
55+"n%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2);\n"
56
57 #: ../gettext-tools/lib/closeout.c:64
58 msgid "write error"
59diff --git a/gettext-tools/tests/msgmerge-11 b/gettext-tools/tests/msgmerge-11
60index ed49db95a..888855940 100755
61--- a/gettext-tools/tests/msgmerge-11
62+++ b/gettext-tools/tests/msgmerge-11
63@@ -19,8 +19,8 @@ msgstr ""
64 "MIME-Version: 1.0\n"
65 "Content-Type: text/plain; charset=ISO-8859-1\n"
66 "Content-Transfer-Encoding: 8bit\n"
67-"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
68-"%100==4 ? 2 : 3);\n"
69+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || "
70+"n%100==4 ? 2 : 3);\n"
71
72 #:foobar.c:29
73 #, c-format
74@@ -72,8 +72,8 @@ msgstr ""
75 "MIME-Version: 1.0\n"
76 "Content-Type: text/plain; charset=ISO-8859-1\n"
77 "Content-Transfer-Encoding: 8bit\n"
78-"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || n"
79-"%100==4 ? 2 : 3);\n"
80+"Plural-Forms: nplurals=4; plural=(n%100==1 ? 0 : n%100==2 ? 1 : n%100==3 || "
81+"n%100==4 ? 2 : 3);\n"
82
83 #: foobar.c:32
84 #, fuzzy, c-format
85diff --git a/gettext-tools/tests/xgettext-python-1 b/gettext-tools/tests/xgettext-python-1
86index 4901c71e3..9695abda4 100755
87--- a/gettext-tools/tests/xgettext-python-1
88+++ b/gettext-tools/tests/xgettext-python-1
89@@ -61,8 +61,8 @@ msgstr ""
90 #. interpret_ansic = false, interpret_unicode = false
91 msgid ""
92 "abc\\\n"
93-"\\\\def\\'ghi\\\"jkl\\a\\b\\f\\n\\r\\t\\v x\\040x\\x7ey"
94-"\\u0142\\U00010123\\N{LATIN SMALL LETTER Z}"
95+"\\\\def\\'ghi\\\"jkl\\a\\b\\f\\n\\r\\t\\v "
96+"x\\040x\\x7ey\\u0142\\U00010123\\N{LATIN SMALL LETTER Z}"
97 msgstr ""
98
99 #. interpret_ansic = true, interpret_unicode = true