Bug 1509757 - Don't rely on GNU regex extension for character classes. r=froydnj
authorJan Beich <jbeich@FreeBSD.org>
Sun, 25 Nov 2018 16:53:00 +0200
changeset 507225 79b57272e805a27451a9ace83ee3cfed172ff8d5
parent 507224 94f4e5b42ac7db98cb56a6d40ab475ef368d4280
child 507226 c766f7eaa9f940c6bd075fb0e87c2ee9b19fcb57
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj
bugs1509757
milestone65.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 1509757 - Don't rely on GNU regex extension for character classes. r=froydnj $ echo --with-system-nspr --with-system-nss | gnused -e 's/--with-system-nspr\S* *//' --with-system-nss $ echo --with-system-nspr --with-system-nss | bsdsed -e 's/--with-system-nspr\S* *//' sed: 1: "s/--with-system-nspr\S* ...": RE error: trailing backslash (\)
old-configure.in
--- a/old-configure.in
+++ b/old-configure.in
@@ -4382,17 +4382,17 @@ HOST_LDFLAGS="$_SUBDIR_HOST_LDFLAGS"
 RC=
 
 # Run the SpiderMonkey 'configure' script.
 dist=$MOZ_BUILD_ROOT/dist
 ac_configure_args="$_SUBDIR_CONFIG_ARGS"
 
 # --with-system-nspr will have been converted into the relevant $NSPR_CFLAGS
 # and $NSPR_LIBS.
-ac_configure_args="`echo $ac_configure_args | sed -e 's/--with-system-nspr\S* *//'`"
+ac_configure_args="`echo $ac_configure_args | sed -e 's/--with-system-nspr[[^[:space:]]]* *//'`"
 
 if test "$_INTL_API" = no; then
     ac_configure_args="$ac_configure_args --without-intl-api"
 fi
 
 if test -n "$NSPR_CFLAGS" -o -n "$NSPR_LIBS"; then
     ac_configure_args="$ac_configure_args --with-nspr-cflags='$NSPR_CFLAGS'"
     ac_configure_args="$ac_configure_args --with-nspr-libs='$NSPR_LIBS'"