mcde: message catalogues in NetBSD's format (nbgencat from the tooldir)

configure took the build host's gencat; on Linux it wrote glibc catalogues
(magic 0x960408de, dtfile.cat in the makronix set) which NetBSD's catopen(3)
rejects (src/lib/libc/nls/catopen.c:183, _NLS_MAGIC 0xff88ff89): catgets()
always returned the built-in English, translations never showed.  The
tooldir's nbgencat writes the NetBSD format; a native NetBSD host keeps its
own gencat.
This commit is contained in:
lotherk committed 2026-11-18 06:38:20 +00:00
1 parent ecaba781e0
commit 6f27882115
1 file changed
+8
+8
View File
@@ -54,6 +54,14 @@ CONFIGURE_ENV+= ac_cv_path_XRDB=${X11BASE}/bin/xrdb
# with `exec sessreg': on NetBSD sessreg is in the X11 base, the login found
# no such program and went back to the greeter (2026-11-18, Xerrors).
CONFIGURE_ENV+= ac_cv_prog_SESSREG=${X11BASE}/bin/sessreg
# The message catalogues must be in NetBSD's format (catopen(3) wants the
# magic 0xff88ff89). configure found the build host's gencat; on Linux that
# writes glibc catalogues (magic 0x960408de) and every catgets() fell back to
# the built-in English text -- no translation ever showed (2026-11-18). The
# NetBSD tooldir has nbgencat; a native NetBSD host's /usr/bin/gencat is right.
.if !empty(TOOLDIR:U) && exists(${TOOLDIR}/bin/nbgencat)
CONFIGURE_ENV+= ac_cv_prog_GENCAT=${TOOLDIR}/bin/nbgencat
.endif
# configure.ac: AC_PATH_PROG(GO, go) finds the BUILD host's go, and
# programs/dtchat then builds the WhatsApp adapter with it: a host binary
# (no GOOS for the target), from modules that pkgsrc's build phase may not