Bug 515626

Summary: "rpmbuild -bb --with baseonly" fails to warn that "--with firmware" will be required
Product: [Fedora] Fedora Reporter: John Reiser <jreiser>
Component: kernelAssignee: Kernel Maintainer List <kernel-maint>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: low    
Version: rawhideCC: itamar, kernel-maint
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: 2009-09-05 00:57:07 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 John Reiser 2009-08-05 02:21:33 UTC
Description of problem: There should be an early warning that the result of a custom kernel build via
  rpmbuild -bb --target x86_64 --with baseonly kernel.spec
will not be installable because the corresponding custom kernel-firmware package will be required.  Because of no warning, then the first custom rpmbuild is a lost hour.  Add "--with firmware" to the command line.


Version-Release number of selected component (if applicable):
kernel-2.6.29.6-217.2.3.fc11.src.rpm

How reproducible: every time


Steps to Reproduce:
1. rpm --install kernel-2.6.29.6-217.2.3.fc11.src.rpm
2. edit SPECS/kernel.spec for a custom build: "%define buildid .jfr"
3. rpmbuild -bb --target x86_64 --with baseonly kernel.spec
4. rpm --install RPMS/x86_64/kernel-2.6.29.6-217.2.3.jfr.fc11.x86_64.rpm
  
Actual results:
error: Failed dependencies:
        kernel-firmware >= 2.6.29.6-217.2.3.jfr.fc11 is needed by kernel-2.6.29.6-217.2.3.jfr.fc11.x86_64


Expected results: The beginning of step 3 (the rpmbuild) should warn that kernel-firmware will be required for an install; thus the user probably should add "--with firmware" to the commandline for rpmbuild.


Additional info:

Comment 1 Chuck Ebbert 2009-08-05 05:29:00 UTC
The official way to build the firmware is with "rpmbuild -bb --target noarch". You should be able to add "--without doc" to skip the documentation build, which takes forever. The "--with firmware" option in the arch build is just a hack that got thrown in to make the build go faster for developers.

Comment 2 Chuck Ebbert 2009-09-05 00:57:07 UTC
Building using "--target noarch --without doc" should work now. It's the proper way to build the firmware and it's fast too.