Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 15 Jan 2017 21:20:27 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-ports-bugs@FreeBSD.org
Subject:   [Bug 216124] Mk/bsd.port.mk: set LC_COLLATE=C for CONFIGURE_ENV and MAKE_ENV
Message-ID:  <bug-216124-13@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D216124

            Bug ID: 216124
           Summary: Mk/bsd.port.mk: set LC_COLLATE=3DC for CONFIGURE_ENV and
                    MAKE_ENV
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: Ports Framework
          Assignee: portmgr@FreeBSD.org
          Reporter: gerald@FreeBSD.org
                CC: andreast@FreeBSD.org, dim@FreeBSD.org,
                    freebsd-ports-bugs@FreeBSD.org, jkim@FreeBSD.org,
                    portmgr@FreeBSD.org
 Attachment #178935 maintainer-approval?(portmgr@FreeBSD.org)
             Flags:
                CC: portmgr@FreeBSD.org

Created attachment 178935
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D178935&action=
=3Dedit
Proposed patch to set LC_COLLATE in CONFIGURE_ENV and MAKE_ENV

Starting with FreeBSD 11, awk follows "natural", but unexpected (to many
of us and existing programs) sorting and string comparisons when used in
a locale different than the C locale.

This hit us when building GCC under the new version, cf.
  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D210122=20
  https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D211742

It quite likely is going to hit us in many other cases, not the least
since the behavior of GNU awk matches the original FreeBSD awk behavior
(unless POSIXLY_CORRECT is set in the environment).=20

So, and as a general best practice to increase reproducability, let's
set LC_COLLATE=3DC when building ports and packages per the attached.

I verified this fixes building the lang/gcc* ports when the current
workaround is removed.

--=20
You are receiving this mail because:
You are on the CC list for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-216124-13>