Bug 14737 - %ifarch sparc doesn't work...
Summary: %ifarch sparc doesn't work...
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: rpm   
(Show other bugs)
Version: 6.2
Hardware: sparc64
OS: Linux
Target Milestone: ---
Assignee: Jeff Johnson
QA Contact:
Depends On:
TreeView+ depends on / blocked
Reported: 2000-07-27 17:32 UTC by Scott Bambrough
Modified: 2008-05-01 15:37 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2000-07-27 17:32:15 UTC
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

Description Scott Bambrough 2000-07-27 17:32:13 UTC
$ cat /etc redhat-release
Red Hat Linux release 6.2 (Zoot)

$ uname -a
Linux sparc-os 2.2.14-5.0 #1 Mon Jul 17 14:02:06 EDT 2000 sparc64 unknown

$ rpm --version
RPM version 3.0.4

RPM is from package rpm-3.0.4-0.48.

I'm trying to build the gcc-2.96 RPM from Rawhide.  I have copied the spec file and source files to the appropriate places.  If I run rpm -bp 
gcc.spec, patches in an ifarch sparc clause are not applied.

To investigate, I added the following to the spec file in the patches section:

echo $RPM_ARCH
%ifarch sparc
echo "Its a sparc"
%ifnarch sparc
echo "Its not a sparc"

Running rpm -bp on the spec file gives the following output fragment.

Its not a sparc

This doesn't seem right.

Comment 1 Jeff Johnson 2000-07-27 17:44:42 UTC
Both sparc and sparc64 are distinguished (and therfore exclusive) architectures
for rpm

What you need to do is prefix your build command thusly
	sparc32 rpm -ba ...
if you wish to produce sparc packages on a sparc64.

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