Bug 7584
Summary: | %defines enclosed by %ifarch executed unconditionally | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | Dale Elisabeth Atems <atems> |
Component: | rpm | Assignee: | Jeff Johnson <jbj> |
Status: | CLOSED DUPLICATE | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 6.1 | ||
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 1999-12-16 20:24: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: | |
Embargoed: |
Description
Dale Elisabeth Atems
1999-12-04 19:30:31 UTC
I'm resisting adding support for %define within %ifarch because I believe that %ifarch is the wrong way to package. Meanwhile, here's a nearly equivalent snippet of code that will probably work for you: %build %ifarch i386 SOUND=native %else SOUND=none %endif # Delete the originals for the patched files find . -name "*.orig" -exec rm {} \; ./configure %{_target_platform} --with-dialogs=athena --with-sound=${SOUND} \ --cflags="$RPM_OPT_FLAGS" --error-checking=none \ --debug=no --prefix=/usr --lockdir=/var/lock/xemacs \ --with-session=yes |