[LU-15964] rpmbuild: Correctly handle CONFIGURE_ARGS Created: 23/Jun/22  Updated: 23/Jun/22  Resolved: 23/Jun/22

Status: Closed
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: None

Type: Bug Priority: Minor
Reporter: Shaun Tancheff Assignee: Shaun Tancheff
Resolution: Not a Bug Votes: 0
Labels: None

Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Currently multiple arguments passed through rpmbuild as
CONFIGURE_ARGS are interpreted as a single argument.

Ex rpmbuild argument:
   -define "configure_args '-with-o2ib=... --arg2 --arg3'"
is interpreted as:
   ./configure --with-o2ib='... --arg2 --arg3'

effectively discarding --arg2 and --arg3.

The contents of CONFIGURE_ARGS should have the quotes removed
before being forwarded to configure



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

"Shaun Tancheff <shaun.tancheff@hpe.com>" uploaded a new patch: https://review.whamcloud.com/47714
Subject: LU-15964 build: Correctly handle CONFIGURE_ARGS
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: b22b66fb1cb6d503357c7b03ed4eec30558d1e79

Comment by Shaun Tancheff [ 23/Jun/22 ]

User error, correct use of configure_args is to separate each argument with single quotes Ex:

 

rpmbuild --rebuild --with zfs --define "zfs 5" --without mpi \
    --define "configure_args '--with-o2ib=/usr/src/ofa_kernel/default\' \'--disable-dlc\' \'--disable-gss-keyring\' \'--enable-gss=no'" \
    --define "lustre_name lustre_ib" ${HOME}/lustre-release/*.src.rpm

 

Comment by Shaun Tancheff [ 23/Jun/22 ]

User error. Not a bug.

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