Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 08-11-2004, 01:43 PM   #1
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Rep: Reputation: 15
building kernel RPM problems

I am trying to build a custom kernel RPM on a RHEL 3.0 AS system. Here is part of the output I am getting towards the end.

make[1]: Leaving directory `/usr/src/redhat/BUILD/kernel-2.4.2115.0.4.EL.RU'
+ cp arch/i386/boot/bzImage /var/tmp/kernel-2.4.2115.0.4.EL.RU-root/boot/vmlinuz-2.4.21-15.0.4.EL.RU
+ cp /var/tmp/kernel-2.4.2115.0.4.EL.RU-root/boot/
+ cp .config /var/tmp/kernel-2.4.2115.0.4.EL.RU-root/boot/config-2.4.21-15.0.4.EL.RU
+ /usr/lib/rpm/brp-compress
Processing files: kernel-2.4.2115.0.4.EL.RU-2
Provides: kernel-2.4.21-15.0.4.EL.RU kernel-drm
Requires(rpmlib): rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1
Processing files: kernel-debuginfo-2.4.2115.0.4.EL.RU-2
error: Could not open %files file /usr/src/redhat/BUILD/kernel-2.4.2115.0.4.EL.RU/debugfiles.list: No such file or directory

RPM build errors:
    Could not open %files file /usr/src/redhat/BUILD/kernel-2.4.2115.0.4.EL.RU/debugfiles.list: No such file or directory
make: *** [rpm] Error 1
Old 08-12-2004, 09:39 AM   #2
Registered: Nov 2002
Distribution: Libranet 2.8 Debian Solaris 9
Posts: 118

Original Poster
Rep: Reputation: 15
Actually found that there is a patch to fix that issue. Just in case anyone else has the same problem.

scripts/mkspec | 1 +
1 files changed, 1 insertion(+)

diff -puN scripts/mkspec~make-rpm-fix scripts/mkspec
--- 25/scripts/mkspec~make-rpm-fix 2004-02-16 20:50:19.000000000 -0800
+++ 25-akpm/scripts/mkspec 2004-02-16 20:50:19.000000000 -0800
@@ -37,6 +37,7 @@ echo "$EXTRAVERSION.tar.gz" | sed -e "s/
echo "BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root"
echo "Provides: $PROVIDES"
echo "%define __spec_install_post /usr/lib/rpm/brp-compress || :"
+echo "%define debug_package %{nil}"
echo ""
echo "%description"
echo "The Linux Kernel, the operating system core itself"


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
macromedia flash player rpm building problems sailajabhandaru Linux - Software 2 06-04-2005 05:14 AM
Problems building a simple kernel module for kernel 2.6.7 atticman Linux - Software 2 12-13-2004 04:35 PM
Building a kernel RPM with applying a patch barisdemiray Programming 1 08-04-2004 07:50 AM
Building kernel rpm with acl support clancyian Red Hat 2 07-27-2004 04:16 PM
RH 7.2 problems building rpm myra Linux - General 0 05-01-2002 11:36 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:09 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration