Fix make rpm in 2.6 when using RH9 or Fedora..
PATCH 1/1 Fix make rpm in 2.6 when using RH9 or Fedora..
Doing a 'make rpm' with any linux-2.6 (or probably, even linux-2.4 kernel) will fail with the current RH/Fedora RPM macros.
The failure message is this:
Processing files: kernel-debuginfo-2.6.3rc1mm1-12
error: Could not open %files file /usr/src/redhat/BUILD/kernel-2.6.3rc1mm1/debugfiles.list: No such file or directory
RPM build errors:
Could not open %files file /usr/src/redhat/BUILD/kernel-2.6.3rc1mm1/debugfiles.list: No such file or directory
make: *** [rpm] Error 1
The fix is this patch:
scripts/mkspec 2004-02-12 00:02:55.000000000 -0800 renamed from scripts/mkspec 2004-01-08 22:59:04.000000000 -0800 +0 -0
@@ -37,6 +37,7 @@
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"
Quoted 19 lines · Thomas Davis
Doing a 'make rpm' with any linux-2.6 (or probably, even linux-2.4 kernel) will fail with the current RH/Fedora RPM macros.
The failure message is this:
Processing files: kernel-debuginfo-2.6.3rc1mm1-12
error: Could not open %files file/usr/src/redhat/BUILD/kernel-2.6.3rc1mm1/debugfiles.list: No such file or directoryRPM build errors:
Could not open %files file/usr/src/redhat/BUILD/kernel-2.6.3rc1mm1/debugfiles.list: No such file or directory
make: *** [rpm] Error 1The fix is this patch:
scripts/mkspec 2004-02-12 00:02:55.000000000 -0800 renamed from scripts/mkspec 2004-01-08 22:59:04.000000000 -0800 +0
-0@@ -37,6 +37,7 @@
Quoted 7 lines
echo "BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root" echo "Provides: $PROVIDES"
echo "%define__spec_install_post/usr/lib/rpm/brp-compress|| :" +echo "%definedebug_package%{nil}"
echo ""
echo "%description"
echo "The Linux Kernel, the operating system core itself"
Why do you want to disable the missing file check? As opposed to providing the file?
I personally fix ther problem instead of disabling the check, the list can be empty, of course.
Signature · 3 lines
bill davidsen <[email protected]> CTO TMR Associates, Inc Doing interesting things with small computers since 1979
Quoted 6 lines · Bill Davidsen
Why do you want to disable the missing file check? As opposed to providing the file?
I personally fix ther problem instead of disabling the check, the list can be empty, of course.
There is four options to fix this problem.
1) Change the RH9/Fedora macros.
2) Add a global entry into my .rpmmacros
3) Find and create the missing file (empty, in this case) (ie, do a 'touch /usr/src/linux-2.6.3/debugfiles.list' and it will proceed without making the debugfile RPM.)
4) Disable it in the specfile, since only RH9/Fedora does this, and Mandrake/SuSE probably doesn't.
I'm not going to do #1, and I'm not going to do #2, I'll settle for #3 or #4, but #3 now means another file to ship around or create, even if it's empty.
This simply gets it working again.
thomas
Quoted 8 lines · Thomas Davis
Quoted 7 lines · Bill Davidsen
Why do you want to disable the missing file check? As opposed to providing the file?
I personally fix ther problem instead of disabling the check, the list can be empty, of course.
There is enough files that needs to be cleaned up after a build, no reason to add more of them.
Quoted 12 lines
Quoted 1 line
There is four options to fix this problem.
1) Change the RH9/Fedora macros.
2) Add a global entry into my .rpmmacros
3) Find and create the missing file (empty, in this case) (ie, do a 'touch/usr/src/linux-2.6.3/debugfiles.list' and it will proceed without making the debugfile RPM.)
4) Disable it in the specfile, since only RH9/Fedora does this, and Mandrake/SuSE probably doesn't.
Quoted 3 lines
I'm not going to do #1, and I'm not going to do #2, I'll settle for #3 or #4, but #3 now means another file to ship around or create, even if it's empty.
Since this is a fedora/RH9 issue go for option #4. If we need this file in the future we will add it.
Please forward the original patch to Andrew for inclusion.
Sam
Quoted 4 lines · Sam Ravnborg
Please forward the original patch to Andrew for inclusion.
Sam
Andrew; Sam asked me to forward this to you for inclusion into the next 2.6 kernel.
thanks!
Short description:
Doing a 'make rpm' with any linux-2.6 (or probably, even linux-2.4 kernel) will fail with the current RH9/Fedora RPM macros.
The failure message is this:
Processing files: kernel-debuginfo-2.6.3rc1mm1-12
error: Could not open %files file /usr/src/redhat/BUILD/kernel-2.6.3rc1mm1/debugfiles.list: No such file or directory
RPM build errors:
Could not open %files file /usr/src/redhat/BUILD/kernel-2.6.3rc1mm1/debugfiles.list: No such file or directory
make: *** [rpm] Error 1
The fix is this patch:
scripts/mkspec 2004-02-12 00:02:55.000000000 -0800 renamed from scripts/mkspec 2004-01-08 22:59:04.000000000 -0800 +0 -0
@@ -37,6 +37,7 @@
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"
Quoted 33 lines · Thomas Davis
Quoted 4 lines · Sam Ravnborg
Please forward the original patch to Andrew for inclusion.
Sam
Andrew; Sam asked me to forward this to you for inclusion into the next 2.6 kernel.
thanks!
Short description:
Doing a 'make rpm' with any linux-2.6 (or probably, even linux-2.4 kernel) will fail with the current RH9/Fedora RPM macros.
The failure message is this:
Processing files: kernel-debuginfo-2.6.3rc1mm1-12
error: Could not open %files file/usr/src/redhat/BUILD/kernel-2.6.3rc1mm1/debugfiles.list: No such file or directoryRPM build errors:
Could not open %files file/usr/src/redhat/BUILD/kernel-2.6.3rc1mm1/debugfiles.list: No such file or directory
make: *** [rpm] Error 1The fix is this patch:
scripts/mkspec 2004-02-12 00:02:55.000000000 -0800 renamed from scripts/mkspec 2004-01-08 22:59:04.000000000 -0800 +0
-0@@ -37,6 +37,7 @@
Quoted 7 lines
echo "BuildRoot: /var/tmp/%{name}-%{PACKAGE_VERSION}-root" echo "Provides: $PROVIDES"
echo "%define__spec_install_post/usr/lib/rpm/brp-compress|| :" +echo "%definedebug_package%{nil}"
echo ""
echo "%description"
echo "The Linux Kernel, the operating system core itself"
Am I missing something? Won't this completely break the creation of the debug rpm?
Signature · 3 lines
bill davidsen <[email protected]> CTO TMR Associates, Inc Doing interesting things with small computers since 1979