RPM Community Forums

Mailing List Message of <rpm-users>

Re: rpm-4.4.8 selects a wrong build target

From: Tim Mooney <mooney@dogbert.cc.ndsu.NoDak.edu>
Date: Thu 12 Jul 2007 - 22:50:19 CEST
Message-ID: <Pine.SOC.4.64.0707121545570.5210@dogbert.cc.ndsu.NoDak.edu>
In regard to: rpm-4.4.8 selects a wrong build target, Eric MSP Veith said...:

> Is there a way to force rpmbuild to use a certain target architecture, save
> the "--target=foo-bar-baz" switch?

Create a file called

 	/etc/rpm/platform

In it put something like

i686-unknown-linux-gnu

or

i686-redhat-linux

or whatever default target you want to use.  platform can actually hold
multiple patterns.  For my Opteron Solaris workstation, I've been using

x86_64-sun-solaris
x86_64-sun-solaris2.10
x86_64-[^-]*-solaris.*
noarch-[^-]*-.*

Tim
-- 
Tim Mooney                              mooney@dogbert.cc.ndsu.NoDak.edu
Information Technology Services         (701) 231-1076 (Voice)
Room 242-J6, IACC Building              (701) 231-8541 (Fax)
North Dakota State University, Fargo, ND 58105-5164
Received on Thu Jul 12 23:19:58 2007
Driven by Jeff Johnson and the RPM project team.
Hosted by OpenPKG and Ralf S. Engelschall.
Powered by FreeBSD and OpenPKG.