Bug 51062

Summary: --target=... is unknown argument
Product: [Retired] Red Hat Raw Hide Reporter: Nathan Owen <owenna>
Component: rpmAssignee: Jeff Johnson <jbj>
Status: CLOSED WONTFIX QA Contact: David Lawrence <dkl>
Severity: low Docs Contact:
Priority: medium    
Version: 1.0   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2001-08-06 23:11:54 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Nathan Owen 2001-08-06 23:11:49 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.6 [en] (X11; U; SunOS 5.6 sun4u)

Description of problem:
When building an rpm with "rpm -ba --target=foo bar.spec" rpm returns an
error "--target=foo: unknown option" 
If it is built with "rpm -ba --target foo bar.spec" it works as expected
rpmbuild handles both of them properly

How reproducible:
Always

Steps to Reproduce:
1. rpm -ba --target=sparc rpm.spec

Comment 1 Jeff Johnson 2001-08-06 23:17:37 UTC
If rpmbuild "works", then this is more breakage due to popt aliases,
that can't/won't be fixed until the build modes are *completely*
moved to the rpmbuild executable. This won't happen in
rpm-4.0.3, but will happen as soon thereafter as I can manage.