Bug 6647 - %define and %ifos don't work together
%define and %ifos don't work together
Status: CLOSED DUPLICATE of bug 5364
Product: Red Hat Linux
Classification: Retired
Component: rpm (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Jeff Johnson
Depends On:
  Show dependency treegraph
Reported: 1999-11-02 10:52 EST by luc.maisonobe
Modified: 2008-05-01 11:37 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 1999-12-16 15:24:22 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description luc.maisonobe 1999-11-02 10:52:18 EST
When I used the following lines in a .spec file, the
%{varrotdir} macro is set to /usr/local even on a Linux box.

%ifos Linux
%define varrootdir   /usr
%define varrootdir   /usr/local

After several trials (%ifos vs %ifnos, Linux vs solaris) it
seems the last alternative is always used, regardless of the

This occurs with rpm 3.0.3.
Comment 1 jbotha 1999-11-02 16:22:59 EST
This is similar to #5364, i.e. #defines are always executed inside if
statements in the order specified, regardless of whether that part of
the statement should be executed or not.
Comment 2 Jeff Johnson 1999-12-16 15:24:59 EST
*** This bug has been marked as a duplicate of 5364 ***

Note You need to log in before you can comment on or make changes to this bug.