[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: Question re: building RPMs



Jeff Johnson <jbj@redhat.com> writes:

> On Mon, Jul 29, 2002 at 06:06:55PM -0400, John Aldrich wrote:
> > Up until the latest version of RPM, you used to be able to specify the arch 
> > you wanted to rebuild an SRPM for. Now, when you try to specify a 
> > "--target=<arch>" RPM will bomb with a "--target=i686: unknown option" error. 
> > What happened to this option? Did it get changed? 
> > Sorry if this is a FAQ, I'm not seeing it in the helpfile... as a matter of 
> > fact, the man page still shows that as a valid command-line option when 
> > building rpms....
> 
> Use rpmbuild, not rpm. The man page tells you how to configure the
> traditional behavior if desired.
Jeff, please try this using your rpm:
rpm -bb i386 --target somespec.file?

This could be bug in PLD rpm 4.0.4. My rpm builds by default for
athlon (athlon.rpm) but:

[misiek@arm SPECS]$ rpm -bb --target=i686 usbutils.spec 
--target=i686: unknown option
[misiek@arm SPECS]$ rpm -bb i386 --target usbutils.spec 
Building target platforms: i386
Building for target i386
Executing(%prep): /bin/sh -e /var/tmp/rpm-tmp.70618
Patch #0 (usbutils-no_external_getopt.patch):
Patch #1 (usbutils-hwdata_in_misc.patch):
[...]

> 73 de Jeff

-- 
Arkadiusz Miśkiewicz   IPv6 ready PLD Linux at http://www.pld.org.pl
misiek(at)pld.org.pl   AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PWr





[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index] []