Bug 613568

Summary: kernel src rpm package won't be built with %define signmodules 0
Product: Red Hat Enterprise Linux 6 Reporter: Eryu Guan <eguan>
Component: kernelAssignee: Jarod Wilson <jarod>
Status: CLOSED NOTABUG QA Contact: Red Hat Kernel QE team <kernel-qe>
Severity: low Docs Contact:
Priority: low    
Version: 6.0CC: ashish_bunkar, guse1, jarod, nawaz_patel
Target Milestone: rc   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2013-03-20 14:20:26 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:
Bug Depends On:    
Bug Blocks: 846704    

Description Eryu Guan 2010-07-12 10:01:33 UTC
Description of problem:
When set signmodules to 0, kernel source won't be built.

crypto/signature/ksign-publickey.c:2:17: error: key.h: No such file or directory
crypto/signature/ksign-publickey.c: In function 'ksign_init':
crypto/signature/ksign-publickey.c:10: error: 'ksign_def_public_key' undeclared (first use in this function)
crypto/signature/ksign-publickey.c:10: error: (Each undeclared identifier is reported only once
crypto/signature/ksign-publickey.c:10: error: for each function it appears in.)
crypto/signature/ksign-publickey.c:11: error: 'ksign_def_public_key_size' undeclared (first use in this function)
make[2]: *** [crypto/signature/ksign-publickey.o] Error 1
make[1]: *** [crypto/signature] Error 2
make: *** [crypto] Error 2
make: *** Waiting for unfinished jobs....
error: Bad exit status from /var/tmp/rpm-tmp.rxP9wE (%build)


RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.rxP9wE (%build)

Version-Release number of selected component (if applicable):
kernel-2.6.32-44.el6.src.rpm

How reproducible:
always

Steps to Reproduce:
1.download and install kernel-2.6.32-44.el6.src.rpm
2.edit kernel.spec, change signmodules 1 to 0
3.rpmbuild -bb --target=`uname -m` --with baseonly /path/to/kernel.spec
  
Actual results:
make error

Expected results:
kernel built successfully

Additional info:

Comment 2 Bill Nottingham 2010-07-14 15:08:50 UTC
*** Bug 614351 has been marked as a duplicate of this bug. ***

Comment 3 RHEL Program Management 2010-07-15 14:34:43 UTC
This issue has been proposed when we are only considering blocker
issues in the current Red Hat Enterprise Linux release. It has
been denied for the current Red Hat Enterprise Linux release.

** If you would still like this issue considered for the current
release, ask your support representative to file as a blocker on
your behalf. Otherwise ask that it be considered for the next
Red Hat Enterprise Linux release. **

Comment 4 RHEL Program Management 2011-10-07 15:08:16 UTC
Since RHEL 6.2 External Beta has begun, and this bug remains
unresolved, it has been rejected as it is not proposed as
exception or blocker.

Red Hat invites you to ask your support representative to
propose this request, if appropriate and relevant, in the
next release of Red Hat Enterprise Linux.

Comment 5 Ashish 2012-09-13 20:25:03 UTC
Following steps can be done to by pass this error :

run make menuconfig.
1) Select "Enable loadable module support", then "Module signature verification (EXPERIMENTAL)". Disable it.
2) Then go back to the main menu, select "Cryptographic API" then "In-kernel signature checker (EXPERIMENTAL)" and disable that one too.
Then go back again, save your config and make your kernel. At least, it will pass this phase successfully.

Comment 6 Jarod Wilson 2013-03-20 14:20:26 UTC
We don't support custom rebuilds. Changing signmodules to 0 constitutes a custom rebuild. Closing NOTABUG.

Comment 7 guse1 2014-01-18 01:33:15 UTC
I do not believe this "bug" is "NOTABUG" or limited to the specific circumstances described.

I downloaded sources for workstation 2.6.32-431.3.1-el6
rpmbuild -bp /home/$USER/rpmbuild/SPECS/kernel.spec
cd /home/$USER/rpmbuild/BUILD/kernel-2.6.32-71.29.1.el6/linux-2.6.32-71.29.1.el6.x86_64/ && make menuconfig
[and exited with no changes] then:
make rpm

and got the exact same error.  Thus it appears in default config/builds without changing anything, and not just a particular custom rebuild.  Request that the bug be reopened and fixed.

Comment 8 guse1 2014-01-18 02:03:55 UTC
NOTE:  The commands above aren't exactly right, but refer to the 431.3.1 kernel.  Note that there is no "signmodules" even in kernel.spec, but the Asish workaround above works.  Why doesn't the standard kernel build work?

Comment 9 Jarod Wilson 2014-01-20 16:58:18 UTC
Only rpmbuild --rebuild or -bb using the srpm or spec we provide is supported. You're doing something different. Still NOTABUG.