Whamcloud - gitweb
LU-15908 build: fix debian rules 71/47671/3
authorSebastien Buisson <sbuisson@ddn.com>
Fri, 24 Jun 2022 04:43:11 +0000 (21:43 -0700)
committerOleg Drokin <green@whamcloud.com>
Tue, 5 Jul 2022 22:14:51 +0000 (22:14 +0000)
A comment in debian/rules file breaks a commands-line continuation,
causing exported env vars to be dropped.

Lustre-change: https://review.whamcloud.com/47512
Lustre-commit: 81fde14387e0b352ea8211fa74cec37171ea08fb

Fixes: a5084c2f2e ("LU-14937 build: re-use config cache in 'make rpms/debs'")
Test-Parameters: trivial
Signed-off-by: Ake Sandgren <ake.sandgren@hpc2n.umu.se>
Signed-off-by: Sebastien Buisson <sbuisson@ddn.com>
Change-Id: I0894199301c489b1961e043651c74d7c6c0089d2
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Jian Yu <yujian@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/47671
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
debian/rules

index dce9dc6..ab0d36e 100755 (executable)
@@ -199,8 +199,6 @@ configure-stamp: autogen-stamp debian/control.main debian/control.modules.in
        elif echo "$${DEB_BUILD_PROFILES}" | grep -qw "nocrypto"; then \
                export EXTRAFLAGS="$${EXTRAFLAGS} --disable-crypto"; \
        fi; \
-       # remove env variables from config cache built by initial configure,
-       # and create dedicated cache in temporary build directory
        if [ -f "$${CONFIG_CACHE_FILE}" ]; then \
                export TMP_CACHE_FILE=$$(mktemp); \
                sed -e "/ac_cv_env/d" \
@@ -497,8 +495,6 @@ kdist_config: prep-deb-files patch-stamp
        elif echo "$${DEB_BUILD_PROFILES}" | grep -qw "nocrypto"; then \
                export EXTRAFLAGS="$${EXTRAFLAGS} --disable-crypto"; \
        fi; \
-       # remove env variables from config cache built by initial configure,
-       # and create dedicated cache in temporary build directory
        if [ -f "$${CONFIG_CACHE_FILE}" ]; then \
                export TMP_CACHE_FILE=$$(mktemp --tmpdir newconfig-XXXXXXXX.cache); \
                sed -e "/ac_cv_env/d" \