RHEL Engineering is moving the tracking of its product development work on RHEL 6 through RHEL 9 to Red Hat Jira (issues.redhat.com). If you're a Red Hat customer, please continue to file support cases via the Red Hat customer portal. If you're not, please head to the "RHEL project" in Red Hat Jira and file new tickets here. Individual Bugzilla bugs in the statuses "NEW", "ASSIGNED", and "POST" are being migrated throughout September 2023. Bugs of Red Hat partners with an assigned Engineering Partner Manager (EPM) are migrated in late September as per pre-agreed dates. Bugs against components "kernel", "kernel-rt", and "kpatch" are only migrated if still in "NEW" or "ASSIGNED". If you cannot log in to RH Jira, please consult article #7032570. That failing, please send an e-mail to the RH Jira admins at rh-issues@redhat.com to troubleshoot your issue as a user management inquiry. The email creates a ServiceNow ticket with Red Hat. Individual Bugzilla bugs that are migrated will be moved to status "CLOSED", resolution "MIGRATED", and set with "MigratedToJIRA" in "Keywords". The link to the successor Jira issue will be found under "Links", have a little "two-footprint" icon next to it, and direct you to the "RHEL project" in Red Hat Jira (issue links are of type "https://issues.redhat.com/browse/RHEL-XXXX", where "X" is a digit). This same link will be available in a blue banner at the top of the page informing you that that bug has been migrated.
Bug 613568 - kernel src rpm package won't be built with %define signmodules 0
Summary: kernel src rpm package won't be built with %define signmodules 0
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Red Hat Enterprise Linux 6
Classification: Red Hat
Component: kernel
Version: 6.0
Hardware: All
OS: Linux
low
low
Target Milestone: rc
: ---
Assignee: Jarod Wilson
QA Contact: Red Hat Kernel QE team
URL:
Whiteboard:
: 614351 (view as bug list)
Depends On:
Blocks: 846704
TreeView+ depends on / blocked
 
Reported: 2010-07-12 10:01 UTC by Eryu Guan
Modified: 2014-01-20 16:58 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2013-03-20 14:20:26 UTC
Target Upstream Version:
Embargoed:


Attachments (Terms of Use)

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.


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