diff options
| author | Janneke Nieuwenhuizen <janneke@gnu.org> | 2025-01-04 10:30:27 +0100 |
|---|---|---|
| committer | Andreas Enge <andreas@enge.fr> | 2025-07-18 20:17:24 +0200 |
| commit | 5c8bd1d8372377494f7d83e1df1c482c200377bf (patch) | |
| tree | 72a6fca38061df864fc52044a7b8754f1ad2c281 /gnu | |
| parent | 15209c78f2a559d2742019802a39de755365572e (diff) | |
gnu: Add gettext-minimal-0.21.
* gnu/packages/patches/gettext-libunicode-update.patch: New file.
* gnu/local.mk (dist_patch_DATA): Register it.
* gnu/packages/gettext.scm (gettext-minimal-0.21): Use it in new variable.
Change-Id: Ie4cb151229b9a69bec90d50f56618b4ae7c6ca12
Diffstat (limited to 'gnu')
| -rw-r--r-- | gnu/local.mk | 1 | ||||
| -rw-r--r-- | gnu/packages/gettext.scm | 27 | ||||
| -rw-r--r-- | gnu/packages/patches/gettext-libunicode-update.patch | 99 |
3 files changed, 126 insertions, 1 deletions
diff --git a/gnu/local.mk b/gnu/local.mk index ddfa5268a21..80dbbcbb752 100644 --- a/gnu/local.mk +++ b/gnu/local.mk | |||
| @@ -1433,6 +1433,7 @@ dist_patch_DATA = \ | |||
| 1433 | %D%/packages/patches/gemrb-remove-ifdef-and-externalize-path-setting-to-cmake.patch \ | 1433 | %D%/packages/patches/gemrb-remove-ifdef-and-externalize-path-setting-to-cmake.patch \ |
| 1434 | %D%/packages/patches/genimage-mke2fs-test.patch \ | 1434 | %D%/packages/patches/genimage-mke2fs-test.patch \ |
| 1435 | %D%/packages/patches/geoclue-config.patch \ | 1435 | %D%/packages/patches/geoclue-config.patch \ |
| 1436 | %D%/packages/patches/gettext-libunicode-update.patch \ | ||
| 1436 | %D%/packages/patches/ghc-8.0-fall-back-to-madv_dontneed.patch \ | 1437 | %D%/packages/patches/ghc-8.0-fall-back-to-madv_dontneed.patch \ |
| 1437 | %D%/packages/patches/ghc-9.2-cabal-support-package-path.patch \ | 1438 | %D%/packages/patches/ghc-9.2-cabal-support-package-path.patch \ |
| 1438 | %D%/packages/patches/ghc-9-StgCRunAsm-only-when-needed.patch \ | 1439 | %D%/packages/patches/ghc-9-StgCRunAsm-only-when-needed.patch \ |
diff --git a/gnu/packages/gettext.scm b/gnu/packages/gettext.scm index 9d562cb05c3..334e533c370 100644 --- a/gnu/packages/gettext.scm +++ b/gnu/packages/gettext.scm | |||
| @@ -9,7 +9,7 @@ | |||
| 9 | ;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org> | 9 | ;;; Copyright © 2017 Eric Bavier <bavier@member.fsf.org> |
| 10 | ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> | 10 | ;;; Copyright © 2018, 2019, 2020 Tobias Geerinckx-Rice <me@tobias.gr> |
| 11 | ;;; Copyright © 2019 Miguel <rosen644835@gmail.com> | 11 | ;;; Copyright © 2019 Miguel <rosen644835@gmail.com> |
| 12 | ;;; Copyright © 2020, 2023, 2024 Janneke Nieuwenhuizen <janneke@gnu.org> | 12 | ;;; Copyright © 2020, 2023, 2024, 2025 Janneke Nieuwenhuizen <janneke@gnu.org> |
| 13 | ;;; Copyright © 2020 EuAndreh <eu@euandre.org> | 13 | ;;; Copyright © 2020 EuAndreh <eu@euandre.org> |
| 14 | ;;; Copyright © 2022, 2024, 2025 gemmaro <gemmaro.dev@gmail.com> | 14 | ;;; Copyright © 2022, 2024, 2025 gemmaro <gemmaro.dev@gmail.com> |
| 15 | ;;; Copyright © 2023 Maxim Cournoyer maxim.cournoyer@gmail.com> | 15 | ;;; Copyright © 2023 Maxim Cournoyer maxim.cournoyer@gmail.com> |
| @@ -158,6 +158,31 @@ translated messages from the catalogs. Nearly all GNU packages use Gettext.") | |||
| 158 | (cpe-name . "gettext"))) | 158 | (cpe-name . "gettext"))) |
| 159 | (license gpl3+))) ;some files are under GPLv2+ | 159 | (license gpl3+))) ;some files are under GPLv2+ |
| 160 | 160 | ||
| 161 | (define-public gettext-minimal-0.21 | ||
| 162 | (package/inherit gettext-minimal | ||
| 163 | (version "0.21") | ||
| 164 | (source (origin | ||
| 165 | (method url-fetch) | ||
| 166 | (uri (string-append "mirror://gnu/gettext/gettext-" | ||
| 167 | version ".tar.gz")) | ||
| 168 | (sha256 | ||
| 169 | (base32 | ||
| 170 | "04kbg1sx0ncfrsbr85ggjslqkzzb243fcw9nyh3rrv1a22ihszf7")) | ||
| 171 | (patches (search-patches "gettext-libunicode-update.patch")))) | ||
| 172 | (arguments | ||
| 173 | (substitute-keyword-arguments (package-arguments gettext-minimal) | ||
| 174 | ((#:phases phases) | ||
| 175 | #~(modify-phases #$phases | ||
| 176 | (add-after 'unpack 'touch-test | ||
| 177 | (lambda _ | ||
| 178 | (with-output-to-file "gettext-tools/gnulib-tests/test-execute.sh" | ||
| 179 | (lambda _ (display ""))))) | ||
| 180 | (add-before 'check 'patch-test | ||
| 181 | (lambda _ | ||
| 182 | ;; This test fails with ggc-14. | ||
| 183 | (substitute* "gettext-tools/tests/xgettext-javascript-6" | ||
| 184 | (("^#!.*" all) (string-append all "exit 77;\n"))))))))))) | ||
| 185 | |||
| 161 | ;; Use that name to avoid clashes with Guile's 'gettext' procedure. | 186 | ;; Use that name to avoid clashes with Guile's 'gettext' procedure. |
| 162 | ;; | 187 | ;; |
| 163 | ;; We used to resort to #:renamer on the user side, but that prevented | 188 | ;; We used to resort to #:renamer on the user side, but that prevented |
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 @@ | |||
| 1 | https://git.savannah.gnu.org/gitweb/?p=gettext.git;a=commit;h=56dc658db752c2894861ee574866d507f12a17f8 | ||
| 2 | Due to the encoding it needs to be retrieved from a git clone. | ||
| 3 | |||
| 4 | commit 56dc658db752c2894861ee574866d507f12a17f8 | ||
| 5 | Author: Bruno Haible <bruno@clisp.org> | ||
| 6 | Date: 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 | |||
| 16 | diff --git a/gettext-tools/tests/msgcat-17 b/gettext-tools/tests/msgcat-17 | ||
| 17 | index 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} | ||
| 33 | diff --git a/gettext-tools/tests/msgfilter-sr-latin-1 b/gettext-tools/tests/msgfilter-sr-latin-1 | ||
| 34 | index 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" | ||
| 59 | diff --git a/gettext-tools/tests/msgmerge-11 b/gettext-tools/tests/msgmerge-11 | ||
| 60 | index 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 | ||
| 85 | diff --git a/gettext-tools/tests/xgettext-python-1 b/gettext-tools/tests/xgettext-python-1 | ||
| 86 | index 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 | ||
