Red Hat Bugzilla – Bug 708528
fails to build without downstream patches
Last modified: 2017-12-06 07:37:58 EST
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1. rpmbuild --define '__patch /bin/true' --rebuild iscsi-initiator-utils-188.8.131.522-21.el6.src.rpm
DEBUG: /usr/bin/ld: cannot find -lc
DEBUG: collect2: ld returned 1 exit status
DEBUG: make: Leaving directory `/builddir/build/BUILD/open-iscsi-2.0-872-rc4-bnx2i/usr'
DEBUG: make: *** [iscsistart] Error 1
DEBUG: error: Bad exit status from /var/tmp/rpm-tmp.NUW1pm (%build)
DEBUG: RPM build errors:
DEBUG: Bad exit status from /var/tmp/rpm-tmp.NUW1pm (%build)
The proposed change is required for Coverity to scan defects in downstream
Created attachment 501400 [details]
Comment on attachment 501400 [details]
I cannot explain why the fix worked when I was testing it, but it did not solve the problem because iscsi-initiator-utils-dont-use-static.patch depends on the iscsi-initiator-utils-sync-iscsi.patch:
DEBUG: Patch #7 (iscsi-initiator-utils-dont-use-static.patch):
DEBUG: + echo 'Patch #7 (iscsi-initiator-utils-dont-use-static.patch):'
DEBUG: + /bin/cat /builddir/build/SOURCES/iscsi-initiator-utils-dont-use-static.patch
DEBUG: + /var/spool/abrt-retrace/coverity/tmp/cov-mockbuild.LTW0Ct/pwrap/patch -s -p1 -b --suffix _RAWBUILD --fuzz=0
DEBUG: /var/spool/abrt-retrace/coverity/tmp/cov-mockbuild.LTW0Ct/pwrap/patch: applying a patch annotated by _RAWBUILD
DEBUG: 1 out of 1 hunk FAILED -- saving rejects to file usr/Makefile.rej
DEBUG: error: Bad exit status from /var/tmp/rpm-tmp.TmEkxz (%prep)
DEBUG: RPM build errors:
DEBUG: Bad exit status from /var/tmp/rpm-tmp.TmEkxz (%prep)
I will prepare a better fix.
Not fully related to this bug, but I noticed that iscsi-initiator-utils-dcb.patch creates a new file ./open-iscsi-2.0-872-rc4-bnx2i/usr/Makefile.orig. Is that intentionally?
Created attachment 501992 [details]
proposed fix V2
The patch should not anyhow affect a regular build.
(In reply to comment #4)
> Not fully related to this bug, but I noticed that
> iscsi-initiator-utils-dcb.patch creates a new file
> ./open-iscsi-2.0-872-rc4-bnx2i/usr/Makefile.orig. Is that intentionally?
No. A bug. will clean that up.
(In reply to comment #5)
> Created attachment 501992 [details]
> proposed fix V2
> The patch should not anyhow affect a regular build.
Patch looks ok. Will merge it up. Thanks.
Since RHEL 6.3 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.
Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.
Red Hat Enterprise Linux 6 is in the Production 3 Phase. During the Production 3 Phase, Critical impact Security Advisories (RHSAs) and selected Urgent Priority Bug Fix Advisories (RHBAs) may be released as they become available.
The official life cycle policy can be reviewed here:
This issue does not meet the inclusion criteria for the Production 3 Phase and will be marked as CLOSED/WONTFIX. If this remains a critical requirement, please contact Red Hat Customer Support to request a re-evaluation of the issue, citing a clear business justification. Note that a strong business justification will be required for re-evaluation. Red Hat Customer Support can be contacted via the Red Hat Customer Portal at the following URL: