svn commit: r420055 - head/lang/gcc49

Gerald Pfeifer gerald at FreeBSD.org
Thu Aug 11 09:40:59 UTC 2016


Author: gerald
Date: Thu Aug 11 09:40:58 2016
New Revision: 420055
URL: https://svnweb.freebsd.org/changeset/ports/420055

Log:
  GCC uses an AWK script to generate source code that helps process
  command-line options.  According to POSIX, string comparisons (and
  hence sorting) are to be performed based on the locale's collating
  order.  Alas GNU AWK only does so in POSIX mode, whereas starting
  with FreeBSD 11 we do so by default, running into a bug (or false
  assumption) with that script used by GCC.
  
  Setting MAKE_ARGS such that AWK is always invoked in the C locale
  works around this bug.
  
  PR:		211742
  Submitted by:	jkim

Modified:
  head/lang/gcc49/Makefile

Modified: head/lang/gcc49/Makefile
==============================================================================
--- head/lang/gcc49/Makefile	Thu Aug 11 09:01:05 2016	(r420054)
+++ head/lang/gcc49/Makefile	Thu Aug 11 09:40:58 2016	(r420055)
@@ -102,7 +102,10 @@ CONFIGURE_ARGS+=--disable-nls \
 		${ICONV_CONFIGURE_ARG} \
 		--with-pkgversion="FreeBSD Ports Collection" \
 		--with-system-zlib
-MAKE_ARGS+=	MAKEINFOFLAGS="--no-split"
+# On FreeBSD 11 and above AWK uses the locale's collating order which
+# runs into a bug in GCC (PR 211742).
+MAKE_ARGS+=	MAKEINFOFLAGS="--no-split" \
+		AWK="${SETENV} LC_ALL=C ${AWK:Q}"
 USE_LDCONFIG=	${TARGLIB}
 PLIST_SUB=	GCC_VERSION=${GCC_VERSION} \
 		GNU_HOST=${CONFIGURE_TARGET} \


More information about the svn-ports-all mailing list