# HG changeset patch # User Rob Landley # Date 1406492389 18000 # Node ID 43c98def61ccf503e6aa7dbd2ac9981826d58171 # Parent ffc7f606ce5bf5e53770d60d880eae40fa4864a4 Patch from Isaac Dunham to work around the deficiencies in musl's regex engine (which break building under alpine linux). Musl's regex engine doesn't support \| which changes the behavior of busybox sed, breaks toybox grep... I need to come up with a musl patch, in the meantime here's a workaround. diff -r ffc7f606ce5b -r 43c98def61cc scripts/single.sh --- a/scripts/single.sh Sat Jul 26 13:30:40 2014 -0500 +++ b/scripts/single.sh Sun Jul 27 15:19:49 2014 -0500 @@ -10,10 +10,14 @@ NAME=$(echo $1 | tr a-z- A-Z_) export KCONFIG_CONFIG=.singleconfig +USET="is not set" make allnoconfig > /dev/null && -sed -i -e "s/\(CONFIG_TOYBOX\)=y/# \1 is not set/" \ - -e "s/# CONFIG_\($NAME\|${NAME}_[^ ]*\|TOYBOX_HELP[^ ]*\|TOYBOX_I18N\|TOYBOX_FLOAT\) is not set/CONFIG_\1=y/" \ +sed -i -e "s/\(CONFIG_TOYBOX\)=y/# \1 $USET/" \ + -e "s/# \(CONFIG_$NAME\) $USET/\1=y/" \ + -e "s/# \(CONFIG_TOYBOX_HELP\) $USET/\1=y/" \ + -e "s/# \(CONFIG_TOYBOX_I18N\) $USET/\1=y/" \ + -e "s/# \(CONFIG_TOYBOX_FLOAT\) $USET/\1=y/" \ "$KCONFIG_CONFIG" && make && mv toybox $PREFIX$1