Description of problem:
Rebuild of curl if libnih-devel package installed fails:
FAILED to rebuild /mnt/redhat/brewroot/packages/curl/7.19.7/17.el6/src/curl-7.19.7-17.el6.src.rpm -- return code 256
REBUILD: FAIL for curl-7.19.7-17.el6.src.rpm
BUILDLOG: curl-7.19.7-17.el6.src.rpm-x86_64-rebuild.log contains full details. Reports from make and rpmbuild, with line numbers:
859-+ sed -i -e 's,-L/usr/lib ,,g;s,-L/usr/lib64 ,,g;s,-L/usr/lib$,,g;s,-L/usr/lib64$,,g' Makefile libcurl.pc
860-+ sed -i -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
861-+ make -j2
862-Makefile:234: *** missing separator. Stop.
863:error: Bad exit status from /var/tmp/rpm-tmp.LnOI1n (%build)
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rebuild curl with libnih-devel installed
curl can be rebuilt
If this is a bug in curl I can modify RHTS test /CoreOS/curl/Sanity/selftest to require libnih-devel to have this covered
This is a bug of the libnih package, now tracked separately as bug 669059 . I'll try to come with a workaround for curl.
Created attachment 473285 [details]
change of curl.spec to work around bug #669059
It should cover the following three cases:
1) libnih-devel not installed
2) broken libnih-devel installed
3) fixed libnih-devel installed
now builts curl with and without libnih-devel installed
Technical note added. If any revisions are required, please edit the "Technical Notes" field
accordingly. All revisions will be proofread by the Engineering Content Services team.
A rebuild operation for curl failed if the libnih-devel package was installed. This is now fixed to allow a rebuild whether libnih-devel is installed, not installed or has a broken installation.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.