[LU-15908] Ubuntu build broken Created: 02/Jun/22  Updated: 05/Jul/22  Resolved: 11/Jun/22

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.15.0
Fix Version/s: Lustre 2.16.0, Lustre 2.15.1

Type: Bug Priority: Minor
Reporter: Sebastien Buisson Assignee: Sebastien Buisson
Resolution: Fixed Votes: 0
Labels: build, ubuntu

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

As reported by Ake Sandgren from HPC2N:

In master debian/rules there is a comment that breaks a commands -line continuation causing exported env vars to be dropped.

Simple fix is (configure-stamp rule):

===
diff --git a/debian/rules b/debian/rules
index df80c077ba..14b1892fbf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -199,8 +203,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 "/ac_cv_env/d" "$${CONFIG_CACHE_FILE}" > $${TMP_CACHE_FILE}; \
===

Same bug exists in the kdist_config rule.



 Comments   
Comment by Gerrit Updater [ 02/Jun/22 ]

"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/47512
Subject: LU-15908 build: fix debian rules
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: d1d5b35306bc164afe444164a40fdd3940a2abcd

Comment by Gerrit Updater [ 11/Jun/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47512/
Subject: LU-15908 build: fix debian rules
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 81fde14387e0b352ea8211fa74cec37171ea08fb

Comment by Peter Jones [ 11/Jun/22 ]

Landed for 2.16

Comment by Gerrit Updater [ 17/Jun/22 ]

"Sebastien Buisson <sbuisson@ddn.com>" uploaded a new patch: https://review.whamcloud.com/47671
Subject: LU-15908 build: fix debian rules
Project: fs/lustre-release
Branch: b2_15
Current Patch Set: 1
Commit: b884a36ff36a80cd62f1fcf25b4d7177a15dd04a

Comment by Gerrit Updater [ 05/Jul/22 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/47671/
Subject: LU-15908 build: fix debian rules
Project: fs/lustre-release
Branch: b2_15
Current Patch Set:
Commit: 6e957d1ec6d7ea26e7e051cc3186df1a56b3c6c2

Generated at Sat Feb 10 03:22:19 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.