| Summary: | fails to build without downstream patches | ||||||
|---|---|---|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Kamil Dudka <kdudka> | ||||
| Component: | virt-what | Assignee: | Richard W.M. Jones <rjones> | ||||
| Status: | CLOSED ERRATA | QA Contact: | Virtualization Bugs <virt-bugs> | ||||
| Severity: | unspecified | Docs Contact: | |||||
| Priority: | medium | ||||||
| Version: | 6.1 | CC: | jzheng, leiwang, pcao, qwan | ||||
| Target Milestone: | rc | Keywords: | EasyFix, Patch | ||||
| Target Release: | --- | ||||||
| Hardware: | Unspecified | ||||||
| OS: | Unspecified | ||||||
| Whiteboard: | |||||||
| Fixed In Version: | virt-what-1.11-1.1.el6 | Doc Type: | Bug Fix | ||||
| Doc Text: | Story Points: | --- | |||||
| Clone Of: | Environment: | ||||||
| Last Closed: | 2011-12-06 09:57:59 UTC | Type: | --- | ||||
| Regression: | --- | Mount Type: | --- | ||||
| Documentation: | --- | CRM: | |||||
| Verified Versions: | Category: | --- | |||||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
| Cloudforms Team: | --- | Target Upstream Version: | |||||
| Attachments: |
|
||||||
|
Description
Kamil Dudka
2011-05-27 20:33:51 UTC
Created attachment 501384 [details]
proposed fix
(In reply to comment #1) > Created attachment 501384 [details] > proposed fix I'm unhappy about this fix because those lines could fail silently during a normal build which would indicate a serious build/configuration problem. Is it possible instead to have an RPM variable set when coverity testing without patches is being done, so that the code can be disabled conditionally? eg: rpm --define '__patch /bin/true' --define '__coverity_no_patches 1' ... (In reply to comment #3) > Is it possible instead to have an RPM variable set > when coverity testing without patches is being done, > so that the code can be disabled conditionally? eg: > > rpm --define '__patch /bin/true' --define '__coverity_no_patches 1' ... Sure thing. The '_with_vanilla 1' RPM macro definition seems to be a good candidate for that since it is already being used by kernel.spec and some other packages. The only difference there is that it also excludes the patches when specified. OK, dev-ack'd for 6.2. I will add a bit of conditional code to make sure it compiles when _with_vanilla is defined. In fact the test in comment 0 just works fine with the rebased package. I reproduced this on virt-what-1.3-4.4.el6.src.rpm, running: rpmbuild --define '__patch /bin/true' --rebuild virt-what-1.3-4.4.el6.src.rpm the script fails to build. Verfied on the virt-what-1.11-1.1.el6.src.rpm. The script succeeds to build and returns with exit status 0. Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHEA-2011-1556.html |