Repository navigation
glibc-locale-c-utf8, libidn: C.UTF-8 for sessions; ruby + postgres use it - #989
Conversation
…e it Split out of #848. Sessions run with LANG=C.UTF-8, which glibc's locale-archive lacks, so setlocale fails: initdb aborts and Ruby falls back to US-ASCII. glibc-locale-c-utf8 ships the locale in directory form (no glibc rebuild); ruby and postgres declare it, libidn's IDNA test uses it. postgres's initdb test no longer passes on a locale-only fallback when it cannot run initdb: no passwd entry and a read-only /etc/passwd now fails, naming the reason. The TODO records that the package retires when glibc itself ships C.UTF-8 (same usr/lib/locale/** paths). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Warning Review limit reached
This review includes 6 billable files and costs up to $1.50.
Reviews can continue after your included limit without a manual trigger. An admin must approve usage-based billing. Or wait 47 minutes for your next included review. View limit details
Comment |
There was a problem hiding this comment.
LGTM. My #848 points are addressed:
- The retirement TODO is at
glibc-locale-c-utf8/build.ncl:14-18. - The postgres test now fails loudly, and the CI log shows
initdb_c_utf8passing. - libidn has no man/info pages under
--disable-doc, which is confirmed in v1.44'sMakefile.am.
I'm accepting the fresh session --rebuild + min check runs as evidence for the packages CI skips because they've never been built.
Nit: glibc-locale-c-utf8/build.ncl:24 has glibc in both build_deps and runtime_deps. The build_deps entry is redundant.
Please merge this before #992.
Generated by Claude Code
…ominimal#989) (gominimal#992) * glibc-locale-c-utf8, libidn: C.UTF-8 for sessions; ruby + postgres use it Split out of gominimal#848. Sessions run with LANG=C.UTF-8, which glibc's locale-archive lacks, so setlocale fails: initdb aborts and Ruby falls back to US-ASCII. glibc-locale-c-utf8 ships the locale in directory form (no glibc rebuild); ruby and postgres declare it, libidn's IDNA test uses it. postgres's initdb test no longer passe 80AE s on a locale-only fallback when it cannot run initdb: no passwd entry and a read-only /etc/passwd now fails, naming the reason. The TODO records that the package retires when glibc itself ships C.UTF-8 (same usr/lib/locale/** paths). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ruby-3.2, ruby-3.3, ruby-3.4: versioned Ruby lines Split out of gominimal#848. Drop-in copies of `ruby` pinned to each line, with main's ca-certificates trust store + test, the mkmf.log/gem_make.out cleanup, and the C.UTF-8 locale (depends on the glibc-locale-c-utf8 PR). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> * ruby-3.x: drop EOL ruby-3.2; add a ruby-flavor guard (no closure with two Ruby lines) Review on gominimal#992. ruby-3.2 went EOL upstream on 2026-04-01, so it goes. `ruby`, `ruby-3.3` and `ruby-3.4` install the same paths, and closure members are hardlinked first-writer-wins per file. The new blocking ruby-flavor-guard workflow mirrors node-runtime-guard: over both arches' catalog dumps it rejects a package built or run on a versioned line (those are user opt-ins), and any package or stack whose runtime or build closure holds more than one Ruby line. AGENTS.md gains a Ruby pattern note next to the Node one. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Split out of #848, as suggested in review. This PR is the C.UTF-8 locale and the packages whose programs read it.
Why. Minimal sessions run with
LANG=C.UTF-8, but glibc'slocale-archiveonly carriesen_US, sosetlocale(LC_ALL, "")fails. Two visible effects:initdbaborts with "invalid locale settings".Encoding.default_externalfalls back to US-ASCII.What
glibc-locale-c-utf8(new):localedef --no-archive -i C -f UTF-8into/usr/lib/locale/C.utf8(Debian's layout), so glibc and everything above it do not rebuild. It rebuilds whenever glibc does.ruby: a runtime dep on it, plus autf8_default_externaltest.postgres: a runtime dep on it, plus aninitdb_c_utf8test.libidn(new, 1.44): GNU libidn 1.x, which bindings such as the idn-ruby gem still link against (they won't build against libidn2). Its IDNA test runs under C.UTF-8.Review points from #848
localedef -i C -f UTF-8into glibc's own build, since its output sits under glibc'susr/lib/locale/**. That change must also drop the edges from ruby, postgres and libidn./etc/passwdis read-only, it fails with exit 2, naming the reason.min checkthis never triggers. A diagnostic run (exit-code bitmask) showed the test user has a passwd entry:id -unworks, while/etc/passwdis read-only and there's nonobodyorunshare. So initdb really runs there.glibctest dep and import are dropped.idn.1, the function man pages andlibidn.infoonly fromdoc/, andMakefile.amaddsdoctoSUBDIRSonly underENABLE_DOC. The build uses--disable-doc. The tarball sha256 matches the pin. Sooutputscovers the whole install tree.Verification. A fresh remote session (
pkgbuildloadout, activated after the last commit) ranmin package build --rebuild glibc-locale-c-utf8 libidn postgres ruby, which built all four, thenmin check --packages glibc-locale-c-utf8 libidn postgres ruby. Every check is Pass for all four, with no Skip, including enumerate bins, output types, missing runtime_deps and the standalone tests (c_utf8_loads,to_ascii,initdb_c_utf8,utf8_default_external,trust_store).nickel format --check,bash -n, andMINIMAL_SCIENCE_MODE=1 mip dump --packages(amd64 and arm64) are clean.Order. The ruby-3.x PR depends on this one, because those packages carry the same locale edge.
🤖 Generated with Claude Code