Description of problem: # rpmbuild --rcfile /usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc \ -ba --target i686 openssl.spec Building target platforms: i686 # # echo $? 1 # # 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 $? 1 # Version-Release number of selected component (if applicable): rpm-4.4.7-1 openssl-0.9.8b-8 kernel-2.6.18-1.2798 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.
Created attachment 139065 [details] rpm --rcfile /usr/lib/rpm/rpmrc:/usr/lib/rpm/redhat/rpmrc --showrc
Last working version seems to be 4.4.7-0.13, which I had to revert to for building kernel and openssl successfully.
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.
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".
Created attachment 139080 [details] strace output $ wget http://download.fedora.redhat.com/pub/fedora/linux/core/development/source/SRPMS/kernel-2.6.18-1.2798.fc6.src.rpm $ 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.
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.
Fixed in rpm CVS, should be in rpm-4.4.8-0.2 when built. UPSTREAM
Thank you very much, closing with expected result.