Bug 211748 - Option --target seems to be broken (OS is not included)
Option --target seems to be broken (OS is not included)
Product: Fedora
Classification: Fedora
Component: rpm (Show other bugs)
All Linux
medium Severity medium
: ---
: ---
Assigned To: Paul Nasrat
Depends On:
  Show dependency treegraph
Reported: 2006-10-21 14:50 EDT by Robert Scheck
Modified: 2007-11-30 17:11 EST (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2006-10-29 17:06:13 EST
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)
rpm --rcfile /usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc --showrc (19.80 KB, text/plain)
2006-10-21 14:52 EDT, Robert Scheck
no flags Details
strace output (24.45 KB, text/plain)
2006-10-22 09:46 EDT, Robert Scheck
no flags Details

  None (edit)
Description Robert Scheck 2006-10-21 14:50:46 EDT
Description of problem:
# rpmbuild --rcfile /usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc \
           -ba --target i686 openssl.spec
Building target platforms: i686
# echo $?

# rpmbuild --rcfile /usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc \
           -ba --target i686 kernel-2.6.spec
Building target platforms: i686
error: OS is not included:
# echo $?

Version-Release number of selected component (if applicable):

How reproducible:
Everytime, see above.

Actual results:
Option --target seems to be broken (OS is not included)

Expected results:
Working stuff like in the past.

Additional info:
Expected result is FIXED UPSTREAM when done, because this bug report is not 
filed for a Fedora release but for latest RPM release.
Comment 1 Robert Scheck 2006-10-21 14:52:50 EDT
Created attachment 139065 [details]
rpm --rcfile /usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc --showrc
Comment 2 Robert Scheck 2006-10-22 06:27:55 EDT
Last working version seems to be 4.4.7-0.13, which I had to revert to for 
building kernel and openssl successfully.
Comment 3 Jeff Johnson 2006-10-22 08:36:20 EDT
Hmmm, openssl is building for me. I cannot reproduce the problem.

The rpmrc values in --showrc spew are identical to yours afaict too
(if I remove /etc/rpm/platform). My build result is invariant to whether
/etc/rpm/platform exists or not. OTOH, my machine is used for rpm
development, and might be configured rather differently. Lemme trash
and burn my installed rpm, and update to FC6 final (I'm mebbe 3 weeks back)
to see if I can reproduce.

FYI, here's what I have in /etc/rpm/platform: "i386-unknown-linux-gnu"

The issue is likely to be configuration however.

Comment 4 Robert Scheck 2006-10-22 09:28:41 EDT
Strange, a after downgrade to -0.13 and upgrade to -1, kernel-2.6.18-1.2798.fc6 
is only reproducer for me, but this with and without a /etc/rpm/platform file 
containing "i386-unknown-linux-gnu".
Comment 5 Robert Scheck 2006-10-22 09:46:41 EDT
Created attachment 139080 [details]
strace output

$ wget

$ rpm -Uvh kernel-2.6.18-1.2798.fc6.src.rpm
$ cd /usr/src/rpm/SPECS
$ rpmbuild --rcfile /usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc -ba --target
i686 kernel-2.6.spec
Building target platforms: i686
error: OS is not included:

Output of strace is attached.
Comment 6 Jeff Johnson 2006-10-22 10:59:52 EDT
Invoking a kernel build with --target i686-linux "works".

The kernel package (and 50 others in FC) have chosen to add
    ExclusiveOS: Linux

Ripping rpmrc out of 4.4.7 has change how the default value for OS is set.
Comment 7 Jeff Johnson 2006-10-29 17:03:05 EST
Fixed in rpm CVS, should be in rpm-4.4.8-0.2 when built.

Comment 8 Robert Scheck 2006-10-29 17:06:13 EST
Thank you very much, closing with expected result.

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