Use bash variable add operator
authorHugo Villeneuve <hugo@hugovil.com>
Mon, 8 Dec 2014 04:41:03 +0000 (23:41 -0500)
committerHugo Villeneuve <hugo@hugovil.com>
Sat, 27 Dec 2014 03:26:26 +0000 (22:26 -0500)
33 files changed:
stage1/pkg/e2fsprogs
stage1/pkg/gettext
stage3/pkg/Linux-PAM
stage3/pkg/OpenSP
stage3/pkg/cyrus-sasl
stage3/pkg/fcron
stage3/pkg/flac
stage3/pkg/fontconfig
stage3/pkg/iptables
stage3/pkg/openjade
stage3/pkg/openldap
stage3/pkg/openssh
stage3/pkg/reiserfsprogs
stage3/pkg/shadow
stage3/pkg/xinetd
stage4/pkg/MesaLib
stage4/pkg/dbus
stage4/pkg/glib
stage4/pkg/lesstif
stage4/pkg/libXfont
stage4/pkg/libXt
stage4/pkg/xinit
stage4/pkg/xterm
stage5/pkg/GConf
stage5/pkg/clamav
stage5/pkg/emacs
stage5/pkg/ghostscript
stage5/pkg/gnash
stage5/pkg/milter-greylist
stage5/pkg/php
stage5/pkg/sane-backends
stage5/pkg/texlive
stage5/pkg/tftp-hpa

index 94c9f1d..a864793 100644 (file)
@@ -4,8 +4,7 @@ hvconfig_pre()
 {
     export PKG_CONFIG=true
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --enable-elf-shlibs \
         --disable-libblkid \
         --disable-libuuid \
index afe372d..902439f 100644 (file)
@@ -2,9 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --disable-shared"
+    CONFIGURE_OPTS+=" --disable-shared"
 }
 
 # When cross-compiling the Gettext configure script assumes we don't have a
index 94138e8..237b0b3 100644 (file)
@@ -4,8 +4,7 @@ hvconfig_pre()
 {
     # --libdir=/lib
     #   Necessary to prevent PAM from instaling into /lib64
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --libdir=/lib \
         --sbindir=/lib/security \
         --docdir=/usr/share/doc/${PACKAGE} \
index 9ee4aef..8f899f2 100644 (file)
@@ -25,8 +25,7 @@ hvconfig_pre()
     sed -i 's:LITLEN          240 :LITLEN          8092:' \
         unicode/{gensyntax.pl,unicode.syn}
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --disable-static \
         --disable-doc-build \
         --enable-default-catalog=/etc/sgml/catalog \
index e7b84ff..0f6f5bf 100644 (file)
@@ -5,15 +5,13 @@ hvconfig_pre()
     sed -i 's/#elif WITH_DES/#elif defined(WITH_DES)/' \
         ${LFS_TMP}/${PACKAGE}/plugins/digestmd5.c
 
-    CONFIGURE_OPTS=" \
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --with-dbpath=/var/lib/sasl/sasldb2 \
         --with-saslauthd=/var/run/saslauthd \
         --with-dblib=gdbm"
 
     if [ "x${HVLABEL}" = "x${PACKAGE}-pass2" ]; then
-        CONFIGURE_OPTS=" \
-            ${CONFIGURE_OPTS} \
+        CONFIGURE_OPTS+=" \
             --with-ldap \
             --enable-ldapdb"
     fi
index ca3fa88..6ecb6d5 100644 (file)
@@ -13,7 +13,7 @@ hvconfig_pre()
         chmod 755 ${DUMMY_SM_PATH}
     fi
 
-    CONFIGURE_OPTS="${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --with-editor=/usr/bin/nano \
         --with-boot-install=no \
         --with-answer-all=no"
index 7fbde67..9b07f46 100644 (file)
@@ -5,7 +5,6 @@ hvconfig_pre()
     sed -e "s!#include <stdio.h>!&\n#include <string.h>!" -i \
         ${LFS_TMP}/${PACKAGE}/examples/cpp/encode/file/main.cpp
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --disable-thorough-test"
 }
index d7bd771..44efe34 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --localstatedir=/var \
         --disable-docs \
         --without-add-fonts \
index 38b8ea7..94bd6f1 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --bindir=/sbin \
         --sbindir=/sbin \
         --libdir=/lib \
index b2cf594..4c46bf2 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --enable-http \
         --disable-static \
         --enable-default-catalog=/etc/sgml/catalog \
index b233e6c..fab7e29 100644 (file)
@@ -5,8 +5,7 @@ hvconfig_pre()
     # --enable-spasswd: for SASL2 plugin
     # --disable-bdb --disable-hdb --with-ldbm-api=gdbm: To use GBDM
     # --disable-sql --disable-ndb: If MySQL is NOT installed
-    CONFIGURE_OPTS=" \
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --libexecdir=/usr/sbin \
         --localstatedir=/srv/ldap \
         --disable-debug \
index 23f1738..d2e9cd4 100644 (file)
@@ -9,8 +9,7 @@ hvconfig_pre()
     hv_useradd --system -c sshd-privsep -d /var/lib/sshd -g sshd \
         -s /bin/false sshd
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --sysconfdir=/etc/ssh \
         --datadir=/usr/share/sshd \
         --with-pam \
index 36c50d2..489c975 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --sbindir=/sbin"
 }
 
index a73e8a0..c544701 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --without-selinux"
 
     cd ${LFS_TMP}/${PACKAGE}
index 6267066..f871392 100644 (file)
@@ -2,9 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --with-loadavg"
+    CONFIGURE_OPTS+=" --with-loadavg"
 }
 
 hvbuild_post()
index ed54cb7..95e4634 100644 (file)
@@ -8,18 +8,17 @@ hvconfig_pre()
     if [ -n "${XORG_VIDEO_DRIVER}" ]; then
         case "${XORG_VIDEO_DRIVER}" in
            nouveau)
-               DRI_OPTS="${DRI_OPTS},nouveau"
-               GAL_OPTS="${GAL_OPTS},nouveau"
+               DRI_OPTS+=",nouveau"
+               GAL_OPTS+=",nouveau"
                ;;
            intel)
-               DRI_OPTS="${DRI_OPTS},i915,i965"
-               GAL_OPTS="${GAL_OPTS},i915"
+                DRI_OPTS+=",i915,i965"
+                GAL_OPTS+=",i915"
                ;;
        esac
     fi
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --enable-texture-float \
         --enable-gles1 \
         --enable-gles2 \
index 58f7e56..1da1f86 100644 (file)
@@ -6,8 +6,7 @@ hvconfig_pre()
     hv_useradd --system -c D-BUS-Message-Daemon-User -d /dev/null \
         -g messagebus -s /bin/false messagebus
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --libexecdir=/usr/lib/dbus-1.0 \
         --localstatedir=/var"
 }
index 4d0b925..4849c91 100644 (file)
@@ -2,9 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --with-pcre=system"
+    CONFIGURE_OPTS+=" --with-pcre=system"
 }
 
 hvbuild_post()
index 7fbe368..2c9db5b 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --prefix=/usr \
         --sysconfdir=/etc/X11 \
         --disable-debug \
index ab23d47..eff77f9 100644 (file)
@@ -2,7 +2,5 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --disable-devel-docs"
+    CONFIGURE_OPTS+=" --disable-devel-docs"
 }
index 8a884e6..6e9e863 100644 (file)
@@ -2,7 +2,5 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --with-appdefaultdir=/etc/X11/app-defaults"
+    CONFIGURE_OPTS+=" --with-appdefaultdir=/etc/X11/app-defaults"
 }
index 78bd1e4..91b79f0 100644 (file)
@@ -2,7 +2,5 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
-        --with-xinitdir=/etc/X11/app-defaults"
+    CONFIGURE_OPTS+=" --with-xinitdir=/etc/X11/app-defaults"
 }
index 5e7aed8..aaa8051 100644 (file)
@@ -6,8 +6,7 @@ hvconfig_pre()
     echo -e '\tkbs=\\177,' >> ${LFS_TMP}/${PACKAGE}/terminfo
 
     export TERMINFO=/usr/share/terminfo
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --enable-luit \
         --enable-wide-chars \
         --with-app-defaults=/usr/share/X11/app-defaults \
index 8e4e022..0e16848 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS=" \
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --disable-orbit \
         --disable-static"
 }
index be12b2d..311c6e8 100644 (file)
@@ -8,8 +8,7 @@ hvconfig_pre()
     # Is this really necessary?
     export SENDMAIL="/usr/sbin/sendmail"
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --with-dbdir=/srv/clamav \
         --enable-milter"
 }
index fd4e956..265ba66 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS=" \
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --libexecdir=/usr/sbin \
         --with-x-toolkit=gtk"
 }
index 6b4adaf..a501228 100644 (file)
@@ -16,8 +16,7 @@ hvconfig_pre()
     # To use the system-installed copy of libtiff:
     rm -rf tiff
 
-    CONFIGURE_OPTS=" \
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --enable-dynamic \
         --with-system-libtiff \
         --with-fontpath=${GS_FONTS_PATH}"
index b71ca0d..c3d8294 100644 (file)
@@ -2,8 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS=" \
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --enable-gui=gtk \
         --enable-media=gst \
         --enable-renderer=cairo,agg \
index 3e679ce..89561cb 100644 (file)
@@ -2,9 +2,7 @@
 
 hvconfig_pre()
 {
-    CONFIGURE_OPTS=" \
-        ${CONFIGURE_OPTS} \
-        --localstatedir=/var/run"
+    CONFIGURE_OPTS+=" --localstatedir=/var/run"
 }
 
 hvbuild_post()
index 0c0fed3..9944ca0 100644 (file)
@@ -11,8 +11,7 @@ hvconfig_pre()
     # --mandir:
     #   If not specified, php installs some man pages under /usr/php
     #   (phpize.1, php.1 and php-config.1)
-    CONFIGURE_OPTS=" \
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --with-apxs2 \
         --with-config-file-path=/etc \
         --mandir=/usr/share/man \
index 689970b..639fc43 100644 (file)
@@ -19,9 +19,7 @@ hvconfig_pre()
     # Fixes an obsolete udev parameter:
     sed -i 's/SYSFS/ATTRS/g' ${LFS_TMP}/${PACKAGE}/tools/sane-desc.c
 
-    CONFIGURE_OPTS=" \
-        ${CONFIGURE_OPTS} \
-        --with-x=${USE_X_OPTION}"
+    CONFIGURE_OPTS+=" --with-x=${USE_X_OPTION}"
 }
 
 hvbuild_post()
index 6da9240..17b83e8 100644 (file)
@@ -17,8 +17,7 @@ hvconfig_pre()
         -e 's|\$TEXMFVAR/fonts|/var/lib/livetex/fonts|'    \
         ${LFS_TMP}/${PACKAGE}/texk/kpathsea/texmf.cnf
 
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --disable-native-texlive-build \
         --enable-build-in-source-tree  \
         --without-luatex               \
index 5e31df3..351c429 100644 (file)
@@ -3,8 +3,7 @@
 hvconfig_pre()
 {
     # Need to specify mandir manually because of a stupid programming error.
-    CONFIGURE_OPTS="\
-        ${CONFIGURE_OPTS} \
+    CONFIGURE_OPTS+=" \
         --mandir=/usr/man \
         --without-tcpwrappers"
 }