Bug 1509757 - Don't rely on GNU regex extension for character classes. r=froydnj a=lizzard
authorJan Beich <jbeich@FreeBSD.org>
Sun, 25 Nov 2018 16:53:00 +0200
changeset 498696 460fc055455eee173a13d73f7f9cf44609f7576c
parent 498695 6fcd1d505c808bd7e14aaefecb9759cd7194bb87
child 498697 390cd25cecd6b5c73d33b842522a0a789affbe00
push id10277
push userarchaeopteryx@coole-files.de
push dateWed, 28 Nov 2018 17:55:51 +0000
treeherdermozilla-beta@3a87f2a3619a [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersfroydnj, lizzard
bugs1509757
milestone64.0
Bug 1509757 - Don't rely on GNU regex extension for character classes. r=froydnj a=lizzard $ 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
@@ -4389,17 +4389,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'"