Re: CVS commit: src/external/bsd/libarchive/dist/libarchive
Thomas Klausner <[email protected]>
| Newsgroups | gmane.os.netbsd.devel.userlevel |
|---|---|
| Message-ID | <[email protected]> |
On Mon, Aug 24, 2026 at 02:52:11PM +0100, Taylor R Campbell wrote: > > b) do something about LANG=C in pkgsrc/mk > > I suggest we set LC_CTYPE to a UTF-8 locale in EXTRACT_ENV for these > packages, if not also in ALL_ENV and/or likewise in all packages. > > Previously discussed on tech-pkg@ in 2022, leading us to set > EXTRACT_ENV+= LC_CTYPE=en_US.UTF-8 in all packages on NetBSD<=8: > > https://mail-index.NetBSD.org/tech-pkg/2022/05/05/msg026252.html > https://mail-index.netbsd.org/pkgsrc-changes/2022/05/21/msg254803.html > > For NetBSD>=10, we can use C.UTF-8 instead of en_US.UTF-8 (though if > it's only for LC_CTYPE, using en_US.UTF-8 won't hurt, distressingly > angloyankocentric though that may be). I'm testing the attached diff - so far it looks good, I'll commit it once my bulk build is done. Thomas
mk.diff
(text/plain, 594 B)
Index: platform/NetBSD.mk
===================================================================
RCS file: /cvsroot/pkgsrc/mk/platform/NetBSD.mk,v
retrieving revision 1.89
diff -u -r1.89 NetBSD.mk
--- platform/NetBSD.mk 9 Jan 2026 15:59:38 -0000 1.89
+++ platform/NetBSD.mk 24 Aug 2026 18:23:24 -0000
@@ -16,8 +16,10 @@
# pax-as-tar, found on <=8, and optionally later, fails on many archives.
EXTRACT_USING?= bsdtar
-.if ${OPSYS_VERSION} < 090000
+.if ${OPSYS_VERSION} < 100000
EXTRACT_ENV+= LC_CTYPE=en_US.UTF-8
+.else
+EXTRACT_ENV+= LC_CTYPE=C.UTF-8
.endif
USERADD?= /usr/sbin/useradd