| Summary: | device-mapper-multipath: standard rpm cflags not used during build [rhel-6] | |||
|---|---|---|---|---|
| Product: | Red Hat Enterprise Linux 6 | Reporter: | Tomas Hoger <thoger> | |
| Component: | device-mapper-multipath | Assignee: | Ben Marzinski <bmarzins> | |
| Status: | CLOSED ERRATA | QA Contact: | Gris Ge <fge> | |
| Severity: | unspecified | Docs Contact: | ||
| Priority: | unspecified | |||
| Version: | 6.2 | CC: | agk, bdonahue, bmarzins, dwysocha, fge, heinzm, mbroz, prajnoha, prockai, zkabelac | |
| Target Milestone: | rc | |||
| Target Release: | --- | |||
| Hardware: | Unspecified | |||
| OS: | Unspecified | |||
| Whiteboard: | ||||
| Fixed In Version: | device-mapper-multipath-0.4.9-49.el6 | Doc Type: | Bug Fix | |
| Doc Text: |
No Documentation needed
|
Story Points: | --- | |
| Clone Of: | ||||
| : | 798543 (view as bug list) | Environment: | ||
| Last Closed: | 2012-06-20 14:37:51 UTC | Type: | --- | |
| Regression: | --- | Mount Type: | --- | |
| Documentation: | --- | CRM: | ||
| Verified Versions: | Category: | --- | ||
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | ||
| Cloudforms Team: | --- | Target Upstream Version: | ||
|
Description
Tomas Hoger
2012-02-29 08:24:46 UTC
How do I explicitly add the default rpm cflags? the device-mapper-multipath package doesn't use autoconf or automake so there's not much point in using %configure Is it possible to run the %configure macro without actually needing it to do any of the autotools work? It looks like all I need to do is pass "$RPM_OPT_FLAGS" to make from the spec file. Something like %build make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" and then make sure that the Makefiles include those with the other CFLAGS. Or is there something else that needs to be done? (In reply to comment #4) > %build > make RPM_OPT_FLAGS="$RPM_OPT_FLAGS" Right, passing in RPM_OPT_FLAGS and adding them to CFLAGS in Makefile.inc should to the trick. device-mapper-multipath.spec now passes in RPM_OPT_FLAGS, and the Makefiles use it. It did flush out a couple of issues, and I've cleaned up the code so that it doesn't issue warnings about some more things.
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.
New Contents:
No Documentation needed
No issue found in errata TPS test (include compile test). No regression found in device-mapper-multipath-0.4.9-56.el6.x86_64. VERIFY. 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/RHBA-2012-0946.html |