Bugzilla will be upgraded to version 5.0 on a still to be determined date in the near future. The original upgrade date has been delayed.
Bug 79663 - cannot build rpm from kernel-source if use of kernel modules deactivated
cannot build rpm from kernel-source if use of kernel modules deactivated
Product: Red Hat Linux
Classification: Retired
Component: kernel (Show other bugs)
i386 Linux
medium Severity medium
: ---
: ---
Assigned To: Arjan van de Ven
Brian Brock
Depends On:
  Show dependency treegraph
Reported: 2002-12-14 14:09 EST by manuel wolfshant
Modified: 2007-04-18 12:49 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Last Closed: 2004-09-30 11:40:17 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---

Attachments (Terms of Use)

  None (edit)
Description manuel wolfshant 2002-12-14 14:09:29 EST
Description of problem:
I want to build a kernel with modules deactivated and transfer it in rpm form.
After the 'make bzImage' step, the make rpm process crashes.

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

How reproducible:

Steps to Reproduce:
1.rpm -i kernel-source-2.4.18-18.8.0
2.choose any way to create /usr/src/linux-2.4/.config, but deselect use of modules
3.replace rpm with rpmbuild in Makefile, under the rpm: label
4.make rpm

Actual Results:  Boot sector 512 bytes.
Setup is 4797 bytes.
System is 812 kB
make[2]: Leaving directory

The present kernel configuration has modules disabled.
Type 'make config' and enable loadable module support.
Then build a kernel with module support enabled.

make[1]: *** [modules] Error 1
make[1]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.4.1818.8.0custom'
error: Bad exit status from /var/tmp/rpm-tmp.68538 (%build)
RPM build errors:
    Bad exit status from /var/tmp/rpm-tmp.68538 (%build)
make: *** [rpm] Error 1

Expected Results:  kernel build + binary rpm of kernel

Additional info:
Comment 1 Alan Cox 2002-12-16 08:21:14 EST
Actually I should add a footnote to this

To rebuild RH kernels it is handled by the spec file - and

      rpmbuild --install kernel-blah.src.rpm
      rpmbuild -ba SPEC/kernel.spec

Comment 2 manuel wolfshant 2002-12-17 08:42:01 EST
just a sidenote:
#rpm -qa|grep kern
# cp configs/kernel-2.4.18-athlon.config .config
# make spec
. scripts/mkspec >kernel.spec
# mv kernel.spec /usr/src/redhat/SPECS/
# rpmbuild -bb /usr/src/redhat/SPECS/kernel.spec
error: File /usr/src/redhat/SOURCES/kernel-2.4.1818.7.xcustom.tar.gz: No such
file or directory

as a matter of fact, I do not think rpmbuild would work as proposed in the
previous comment if more patches are to be applied by external scripts (as in
adding freeswan for instance)
Comment 3 Bugzilla owner 2004-09-30 11:40:17 EDT
Thanks for the bug report. However, Red Hat no longer maintains this version of
the product. Please upgrade to the latest version and open a new bug if the problem

The Fedora Legacy project (http://fedoralegacy.org/) maintains some older releases, 
and if you believe this bug is interesting to them, please report the problem in
the bug tracker at: http://bugzilla.fedora.us/

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