From: "Sam James" <sam@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: sys-apps/locale-gen/
Date: Sat, 23 Aug 2025 01:42:24 +0000 (UTC) [thread overview]
Message-ID: <1755913229.c449d4d9c56a636d032f6b33abfb6fb4b89874d3.sam@gentoo> (raw)
commit: c449d4d9c56a636d032f6b33abfb6fb4b89874d3
Author: Kerin Millar <kfm <AT> plushkava <DOT> net>
AuthorDate: Fri Aug 22 23:54:42 2025 +0000
Commit: Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Aug 23 01:40:29 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c449d4d9
sys-apps/locale-gen: add 3.4
Kerin Millar (31):
Introduce the mkconfig utility
mkconfig: protect against BASH_ENV being set
mkconfig: capture basename directly in map_locale_attributes()
mkconfig: don't transliterate paths in map_locale_attributes()
mkconfig: marginally simplify the territory cleanup code
mkconfig: replace "Russian Federation" with "Russia"
mkconfig: don't operate on refs of $language and $territory
locale-gen.8: replace "-d, --prefix" with "-p, --prefix"
Let the config be set by LOCALEGEN_CONFIG in the environment
Ensure that locales/charmaps are opened relative to the prefix
Report the file from which the locales are chosen
mkconfig: capitalise first letter of territory *after* decoding
Claim to be compiling "locales" rather than "locale definition files"
mkconfig: always decode the locale files as UTF-8
mkconfig: ensure column(1) considers its input stream as US-ASCII
mkconfig: use read_lines() to read the SUPPORTED file
Support charmaps compressed with bzip2
Clarify the behaviour of the --prefix option in run_localedef()
Clarify a comment preceding the setting of I18NPATH
Simplify an exit call
Simplify the render_printable() subroutine
Don't bother loading and using List::Util
Reduce the extent to which render_printable() is used
Refrain from calling POSIX::setlocale()
Specify the /n regex modifier where appropriate
Have render_printable() load JSON::PP on demand
Compose an array of canonicals before passing to generate_archive()
Refine the wording of the comment preceding I18NPATH assignment
locale-gen.8: mention locales and charmaps under FILES
locale-gen.8: document the behaviour of "-" as a -c option-arg
Bump $VERSION to 3.4
Closes: https://bugs.gentoo.org/785406
Closes: https://bugs.gentoo.org/961109
Signed-off-by: Kerin Millar <kfm <AT> plushkava.net>
Signed-off-by: Sam James <sam <AT> gentoo.org>
sys-apps/locale-gen/Manifest | 1 +
sys-apps/locale-gen/locale-gen-3.4.ebuild | 57 +++++++++++++++++++++++++++++++
2 files changed, 58 insertions(+)
diff --git a/sys-apps/locale-gen/Manifest b/sys-apps/locale-gen/Manifest
index 5137f6637102..c05e0307f1e4 100644
--- a/sys-apps/locale-gen/Manifest
+++ b/sys-apps/locale-gen/Manifest
@@ -1,3 +1,4 @@
DIST locale-gen-2.23.tar.bz2 7664 BLAKE2B a529b62fbb840c9352f06e8f5c80fc764425a2619dc69cc820f550a026d391788d5e2cfeeb46a8b5b9716da63340b4fce57a5b523edd4196ee1219c1200cb752 SHA512 c1245caadb04403c535a836f19bc410d0f04b5c0e297ea5be9852e6d71e08e528071ae769d63d31a677dda8fdd618b4c4d581ed525cf8786b82d8f37636db754
DIST locale-gen-3.2.tar.bz2 16340 BLAKE2B a0558a0f84da3ea6a66903a632f261fe9cf63e21ccb32411f827367699fefd3e2e627ee018c2720dce3901e3801089c3aca6a487f2f075a9b6831529b160a0e2 SHA512 76655947a1d28cbda5be75454a3cc38e75d2914ab987bd59359f70acc6e3a3f2961675280ee8a52ada4724fb6393f1d5b6712077a89ebd3511a49c43cf459adf
DIST locale-gen-3.3.tar.bz2 19815 BLAKE2B be46b2bedfc876900998fb1a4af3c6e5b04a0005caf0590052bda3f46a532c93ead62d44a6d0b4d6d0ef4bc01df1c2916c9ffac8dd8322278b2f3d21da0aaeb1 SHA512 3f55c0fe2fc0c434dc26538366238463798fde7e9367f6dc1c824531b6bff326ad0e6f62d3b599a8c2b92a6b974fa8ef8c46e58acf80d50820cc1987c20da7cb
+DIST locale-gen-3.4.tar.bz2 21116 BLAKE2B 97739bd3be34407639fbe77b9538e792dd1b94ba9a0612262f8df0a0cb70c3b513e1348470d5350a2ad0a2e92ac7287921c62b32c72815c82f43a271a8d3cdda SHA512 38ec6801142be282e25ff913e78ca48dce5faecd5bfa0187cd85065622195c746b63ccc05b9818b7a1240b8d01f38c8ca8fa45737d6ac5ae0ac41675c1b49584
diff --git a/sys-apps/locale-gen/locale-gen-3.4.ebuild b/sys-apps/locale-gen/locale-gen-3.4.ebuild
new file mode 100644
index 000000000000..c380120ac933
--- /dev/null
+++ b/sys-apps/locale-gen/locale-gen-3.4.ebuild
@@ -0,0 +1,57 @@
+# Copyright 2023-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Generate locales based upon the config file /etc/locale.gen"
+HOMEPAGE="https://gitweb.gentoo.org/proj/locale-gen.git/"
+
+if [[ ${PV} == 9999 ]] ; then
+ EGIT_REPO_URI="https://anongit.gentoo.org/git/proj/locale-gen.git"
+ inherit git-r3
+else
+ SRC_URI="https://gitweb.gentoo.org/proj/locale-gen.git/snapshot/${P}.tar.bz2"
+
+ KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~loong ~m68k ~mips ~ppc ~ppc64 ~riscv ~s390 ~sparc ~x86"
+fi
+
+LICENSE="GPL-2"
+SLOT="0"
+
+BDEPEND="
+ >=dev-lang/perl-5.36
+ dev-perl/File-Slurper
+"
+RDEPEND="
+ >=dev-lang/perl-5.36
+ !<sys-libs/glibc-2.37-r3
+"
+
+src_prepare() {
+ # EPREFIX is readonly.
+ local -x MY_EPREFIX=${EPREFIX}
+
+ eapply_user
+
+ perl -pi -e '$f //= ($. == 1 && s/^#!\h*\K/$ENV{MY_EPREFIX}/); END { exit !$f }' "${PN}" \
+ || die "Failed to prefixify ${PN}"
+}
+
+src_install() {
+ dosbin locale-gen
+ doman *.[0-8]
+ insinto /etc
+ {
+ cat <<-'EOF' &&
+ # This file defines which locales to incorporate into the glibc locale archive.
+ # See the locale.gen(5) and locale-gen(8) man pages for more details.
+
+ EOF
+ # Run the interpreter by name so as not to have to prefixify mkconfig.
+ perl mkconfig "${EROOT}"
+ } | newins - locale.gen
+ if (( PIPESTATUS[0] || PIPESTATUS[1] )); then
+ die "Failed to generate and/or install locale.gen"
+ fi
+ keepdir /usr/lib/locale
+}
next reply other threads:[~2025-08-23 1:42 UTC|newest]
Thread overview: 43+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-08-23 1:42 Sam James [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-10-21 16:16 [gentoo-commits] repo/gentoo:master commit in: sys-apps/locale-gen/ Sam James
2025-10-17 21:22 Sam James
2025-10-04 18:50 Sam James
2025-10-04 18:50 Sam James
2025-10-04 18:50 Sam James
2025-10-04 18:50 Sam James
2025-10-04 18:50 Sam James
2025-10-04 18:17 Arthur Zamarin
2025-10-03 1:53 Sam James
2025-09-19 8:19 Sam James
2025-09-14 4:50 Sam James
2025-09-14 4:50 Sam James
2025-09-14 0:28 Sam James
2025-09-14 0:11 Sam James
2025-09-12 20:31 Sam James
2025-09-12 20:31 Sam James
2025-08-23 1:42 Sam James
2025-08-19 0:46 Sam James
2025-08-18 15:55 Sam James
2025-08-14 2:13 Sam James
2025-08-08 17:56 Sam James
2025-08-08 11:04 Sam James
2025-08-08 11:04 Sam James
2025-08-08 11:04 Sam James
2025-08-08 5:23 Sam James
2025-08-08 5:23 Sam James
2025-07-01 21:08 Andreas K. Hüttel
2023-07-15 12:12 Arthur Zamarin
2023-07-15 12:12 Arthur Zamarin
2023-07-15 12:12 Arthur Zamarin
2023-07-09 19:07 Arthur Zamarin
2023-07-09 19:07 Arthur Zamarin
2023-07-09 19:07 Arthur Zamarin
2023-07-02 14:57 Sam James
2023-06-28 22:30 Sam James
2023-06-28 21:23 Sam James
2023-05-27 9:59 Andreas K. Hüttel
2023-05-10 19:15 Andreas K. Hüttel
2023-05-09 21:50 Andreas K. Hüttel
2023-05-09 20:59 Andreas K. Hüttel
2023-05-07 0:02 Andreas K. Hüttel
2023-05-06 23:40 Andreas K. Hüttel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1755913229.c449d4d9c56a636d032f6b33abfb6fb4b89874d3.sam@gentoo \
--to=sam@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox