LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   building kernel RPM problems (https://www.linuxquestions.org/questions/linux-software-2/building-kernel-rpm-problems-216283/)

mindcry 08-11-2004 12:43 PM

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.

Code:

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 System.map /var/tmp/kernel-2.4.2115.0.4.EL.RU-root/boot/System.map-2.4.21-15.0.4.EL.RU
+ 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


mindcry 08-12-2004 08:39 AM

Actually found that there is a patch to fix that issue. Just in case anyone else has the same problem.

---Snip---
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"
---Snip---


All times are GMT -5. The time now is 11:32 AM.