summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJanneke Nieuwenhuizen <janneke@gnu.org>2024-12-05 08:30:11 +0100
committerAndreas Enge <andreas@enge.fr>2025-07-18 20:17:11 +0200
commit7d85f941576189d30cb26dc0d7ecf3c4a0235994 (patch)
treeb631e2991ed62fb39ae2211e96dcdcf4708b7410
parent3fd95c21c33eeded95ea2a3a0979cc96f462bc2b (diff)
gnu: gettext: Update to 0.23.
* gnu/packages/patches/gettext-libunicode-update.patch: Remove file. * gnu/local.mk (dist_patch_DATA): Unregister. * gnu/packages/gettext.scm (gettext-minimal): Update to 0.23. [source]: Remove patch. [arguments]: In phase "patch-tests", skip gnulib test "test-execute.sh". Change-Id: Ibac01c139e135c3a9c13f9077b4fbc6a7db93207
-rw-r--r--gnu/local.mk1
-rw-r--r--gnu/packages/gettext.scm19
-rw-r--r--gnu/packages/patches/gettext-libunicode-update.patch99
3 files changed, 8 insertions, 111 deletions
diff --git a/gnu/local.mk b/gnu/local.mk
index 3d9006c3db4..4eb4e1526ec 100644
--- a/gnu/local.mk
+++ b/gnu/local.mk
@@ -1431,7 +1431,6 @@ dist_patch_DATA = \
1431 %D%/packages/patches/gemrb-remove-ifdef-and-externalize-path-setting-to-cmake.patch \ 1431 %D%/packages/patches/gemrb-remove-ifdef-and-externalize-path-setting-to-cmake.patch \
1432 %D%/packages/patches/genimage-mke2fs-test.patch \ 1432 %D%/packages/patches/genimage-mke2fs-test.patch \
1433 %D%/packages/patches/geoclue-config.patch \ 1433 %D%/packages/patches/geoclue-config.patch \
1434 %D%/packages/patches/gettext-libunicode-update.patch \
1435 %D%/packages/patches/ghc-8.0-fall-back-to-madv_dontneed.patch \ 1434 %D%/packages/patches/ghc-8.0-fall-back-to-madv_dontneed.patch \
1436 %D%/packages/patches/ghc-9.2-cabal-support-package-path.patch \ 1435 %D%/packages/patches/ghc-9.2-cabal-support-package-path.patch \
1437 %D%/packages/patches/ghc-9-StgCRunAsm-only-when-needed.patch \ 1436 %D%/packages/patches/ghc-9-StgCRunAsm-only-when-needed.patch \
diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm
index 4c6fef6be62..9d562cb05c3 100644
--- a/gnu/packages/gettext.scm
+++ b/gnu/packages/gettext.scm
@@ -55,15 +55,14 @@
55(define-public gettext-minimal 55(define-public gettext-minimal
56 (package 56 (package
57 (name "gettext-minimal") 57 (name "gettext-minimal")
58 (version "0.21") 58 (version "0.23")
59 (source (origin 59 (source (origin
60 (method url-fetch) 60 (method url-fetch)
61 (uri (string-append "mirror://gnu/gettext/gettext-" 61 (uri (string-append "mirror://gnu/gettext/gettext-"
62 version ".tar.gz")) 62 version ".tar.gz"))
63 (sha256 63 (sha256
64 (base32 64 (base32
65 "04kbg1sx0ncfrsbr85ggjslqkzzb243fcw9nyh3rrv1a22ihszf7")) 65 "19h717qnmg01499gi3494z9l2ss12cp60405ml473p82580dfpcl"))))
66 (patches (search-patches "gettext-libunicode-update.patch"))))
67 (build-system gnu-build-system) 66 (build-system gnu-build-system)
68 (outputs '("out" 67 (outputs '("out"
69 "doc")) ;9 MiB of HTML 68 "doc")) ;9 MiB of HTML
@@ -89,13 +88,13 @@
89 (substitute* '("gettext-tools/src/project-id" 88 (substitute* '("gettext-tools/src/project-id"
90 "gettext-tools/projects/KDE/trigger" 89 "gettext-tools/projects/KDE/trigger"
91 "gettext-tools/projects/GNOME/trigger") 90 "gettext-tools/projects/GNOME/trigger")
92 (("/bin/pwd") "pwd")) 91 (("/bin/pwd") "pwd"))))
93 #t))
94 (add-before 'check 'patch-tests 92 (add-before 'check 'patch-tests
95 (lambda* (#:key inputs #:allow-other-keys) 93 (lambda* (#:key inputs #:allow-other-keys)
96 ;; This test fails 94 ;;libgettextlib-0.23.so => not found
97 (substitute* "gettext-tools/tests/xgettext-javascript-6" 95 (substitute* "gettext-tools/gnulib-tests/test-execute.sh"
98 (("^#!.*" all) (string-append all "exit 77;\n"))) 96 (("^#!.*" all)
97 (string-append all "exit 77;\n")))
99 (let* ((bash (which "sh"))) 98 (let* ((bash (which "sh")))
100 ;; Some of the files we're patching are 99 ;; Some of the files we're patching are
101 ;; ISO-8859-1-encoded, so choose it as the default 100 ;; ISO-8859-1-encoded, so choose it as the default
@@ -131,9 +130,7 @@
131 "gettext-tools/gnulib-tests/Makefile.in" 130 "gettext-tools/gnulib-tests/Makefile.in"
132 ;; See 'coreutils' for the rationale. 131 ;; See 'coreutils' for the rationale.
133 ((" test-tls\\$\\(EXEEXT\\) ") " "))) 132 ((" test-tls\\$\\(EXEEXT\\) ") " ")))
134 '()) 133 '())))))
135
136 #t))))
137 #$@(if (%current-target-system) 134 #$@(if (%current-target-system)
138 #~((add-after 'install 'patch-cross-shebangs 135 #~((add-after 'install 'patch-cross-shebangs
139 (lambda _ 136 (lambda _
diff --git a/gnu/packages/patches/gettext-libunicode-update.patch b/gnu/packages/patches/gettext-libunicode-update.patch
deleted file mode 100644
index 2a67f4803ab..00000000000
--- a/gnu/packages/patches/gettext-libunicode-update.patch
+++ /dev/null
@@ -1,99 +0,0 @@
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