Created attachment 178935 [details]
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.
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).
So, and as a general best practice to increase reproducability, let's
set LC_COLLATE=C when building ports and packages per the attached.
I verified this fixes building the lang/gcc* ports when the current
workaround is removed.
See also bug #215882
*** This bug has been marked as a duplicate of bug 215882 ***