commit:     a1052148144e0fd22cd702e41e9db217900c0fac
Author:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
AuthorDate: Sun Sep  3 04:53:38 2017 +0000
Commit:     Robin H. Johnson <robbat2 <AT> gentoo <DOT> org>
CommitDate: Sun Sep  3 04:53:38 2017 +0000
URL:        https://gitweb.gentoo.org/proj/genkernel.git/commit/?id=a1052148

gen_compile: make LVM configure options easier to patch.

Signed-off-by: Robin H. Johnson <robbat2 <AT> gentoo.org>

 gen_compile.sh | 26 ++++++++++++++++++--------
 1 file changed, 18 insertions(+), 8 deletions(-)

diff --git a/gen_compile.sh b/gen_compile.sh
index 7df0154..30d5299 100755
--- a/gen_compile.sh
+++ b/gen_compile.sh
@@ -500,14 +500,24 @@ compile_lvm() {
                cd "${LVM_DIR}"
                apply_patches lvm ${LVM_VER}
                print_info 1 'lvm: >> Configuring...'
-                       CFLAGS="-fPIC" \
-                       ./configure --enable-static_link --prefix=/ \
-                               --enable-dmeventd --enable-cmdlib \
-                               --with-lvm1=internal --with-clvmd=none 
--with-cluster=none \
-                               --disable-readline --disable-selinux 
--with-mirrors=internal \
-                               --with-snapshots=internal --with-pool=internal \
-                               >> ${LOGFILE} 2>&1 || \
-                               gen_die 'Configure of lvm failed!'
+               LVM_CONF=(
+                       --enable-static_link
+                       --prefix=/
+                       --enable-dmeventd
+                       --enable-cmdlib
+                       --with-lvm1=internal
+                       --with-clvmd=none
+                       --with-cluster=none
+                       --disable-readline
+                       --disable-selinux
+                       --with-mirrors=internal
+                       --with-snapshots=internal
+                       --with-pool=internal
+               )
+               CFLAGS="-fPIC" \
+               ./configure "${LVM_CONF[@]}" \
+                       >> ${LOGFILE} 2>&1 || \
+                       gen_die 'Configure of lvm failed!'
                print_info 1 'lvm: >> Compiling...'
                compile_generic '' utils || gen_die "failed to build LVM"
                mkdir -p "${TEMP}/lvm/sbin"

Reply via email to