Bug 257921 - RPM needs secondary arch macro files
Summary: RPM needs secondary arch macro files
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: rpm
Version: 5.1
Hardware: All
OS: All
medium
low
Target Milestone: ---
: ---
Assignee: Panu Matilainen
QA Contact:
URL:
Whiteboard:
Depends On: 454887
Blocks:
TreeView+ depends on / blocked
 
Reported: 2007-08-27 20:18 UTC by Doug Ledford
Modified: 2009-01-20 20:48 UTC (History)
2 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2009-01-20 20:48:36 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2009:0079 0 normal SHIPPED_LIVE rpm bug fix update 2009-01-20 16:04:16 UTC

Description Doug Ledford 2007-08-27 20:18:23 UTC
Description of problem:
When trying to run rpmbuild --ba --target=%{secondary_arch} $package.spec on a
multiarch capable machine (aka, i386 on x86_64, ppc64 on ppc, etc), the
necessary /usr/lib/rpm/arch-linux/macros files do not exist to set the proper
paths and compile options.  For example, to compile i386 on x86_64, %{_libdir}
needs to change to /usr/lib instead of /usr/lib64 and RPM_OPT_FLAGS/CFLAGS needs
to have -m32 added to the compiler options to compile properly, as well as
proper linking options.  Since the secondary arch macro files are contained in
the base rpm package, and the base rpm package is not multilib installable (you
get conflicts if you try), it becomes impossible to compile an rpm for a
secondary arch on the primary arch without hand munging the spec file.

Version-Release number of selected component (if applicable):
4.4.2-37.el5

Comment 1 Denise Dumas 2008-07-16 14:20:16 UTC
The RPM rebase in 5.3 / Fedora 9 includes a fix for this issue.

Comment 2 RHEL Program Management 2008-07-16 14:31:24 UTC
This request was evaluated by Red Hat Product Management for inclusion in a Red
Hat Enterprise Linux maintenance release.  Product Management has requested
further review of this request by Red Hat Engineering, for potential
inclusion in a Red Hat Enterprise Linux Update release for currently deployed
products.  This request is not yet committed for inclusion in an Update
release.

Comment 7 errata-xmlrpc 2009-01-20 20:48:36 UTC
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHBA-2009-0079.html


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