[LU-9812] Source rpm does not cleanly build with --rebuild Created: 31/Jul/17  Updated: 23/Jun/20  Resolved: 23/Jun/20

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: Lustre 2.10.0
Fix Version/s: Lustre 2.14.0

Type: Bug Priority: Major
Reporter: Nathaniel Clark Assignee: Nathaniel Clark
Resolution: Fixed Votes: 0
Labels: None

Issue Links:
Duplicate
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Doing rpmbuild --rebuild lustre-2.10.0-1.src.rpm
results in the following issue:

+ ln -s Lustre.ha_v2 /home/build/rpmbuild/BUILDROOT/lustre-2.10.50-1.x86_64/etc/ha.d/resource.d/Lustre
ln: failed to create symbolic link '/home/build/rpmbuild/BUILDROOT/lustre-2.10.50-1.x86_64/etc/ha.d/resource.d/Lustre': No such file or directory
error: Bad exit status from /var/tmp/rpm-tmp.HpX1JT (%install)

Doing make rpms from within source works, but the user should be able to rebuild rpms from source.



 Comments   
Comment by Gerrit Updater [ 31/Jul/17 ]

Nathaniel Clark (nathaniel.l.clark@intel.com) uploaded a new patch: https://review.whamcloud.com/28282
Subject: LU-9812 spec: Create all install directories for rpmbuild
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: 8e7268ad9854e7384506893907f4975969c17240

Comment by James A Simmons [ 22/Mar/18 ]

Please when fixing the rpm build handling don't do parsing in the spec file !!!!! The proper way is to do the parsing in lustre/conf/lustre-buiild.m4 to adjust the RPMBINARGS. Please do it this way.

Comment by Gerrit Updater [ 23/Jun/20 ]

Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/28282/
Subject: LU-9812 spec: Fail rpmbuild if with servers but unconfigured
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: a619dc940784cc610f4148e51feed5d52c499413

Comment by Peter Jones [ 23/Jun/20 ]

Landed for 2.14

Generated at Sat Feb 10 02:29:30 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.