* [PATCH] Fix make rpm in 2.6 when using RH9 or Fedora..
@ 2004-02-12 19:33 Thomas Davis
2004-02-15 3:02 ` Bill Davidsen
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Davis @ 2004-02-12 19:33 UTC (permalink / raw)
To: lkml
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:
--- linux-2.6/scripts/mkspec 2004-01-08 22:59:04.000000000 -0800
+++ linux-2.6.3-rc1-mm1/scripts/mkspec 2004-02-12 00:02:55.000000000 -0800
@@ -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"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Fix make rpm in 2.6 when using RH9 or Fedora..
2004-02-12 19:33 [PATCH] Fix make rpm in 2.6 when using RH9 or Fedora Thomas Davis
@ 2004-02-15 3:02 ` Bill Davidsen
2004-02-16 0:03 ` Thomas Davis
0 siblings, 1 reply; 6+ messages in thread
From: Bill Davidsen @ 2004-02-15 3:02 UTC (permalink / raw)
To: Thomas Davis; +Cc: lkml
Thomas Davis wrote:
> 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:
>
> --- linux-2.6/scripts/mkspec 2004-01-08 22:59:04.000000000 -0800
> +++ linux-2.6.3-rc1-mm1/scripts/mkspec 2004-02-12 00:02:55.000000000 -0800
> @@ -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"
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.
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Fix make rpm in 2.6 when using RH9 or Fedora..
2004-02-15 3:02 ` Bill Davidsen
@ 2004-02-16 0:03 ` Thomas Davis
2004-02-16 21:01 ` Sam Ravnborg
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Davis @ 2004-02-16 0:03 UTC (permalink / raw)
To: Bill Davidsen; +Cc: lkml
Bill Davidsen wrote:
>
>
> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Fix make rpm in 2.6 when using RH9 or Fedora..
2004-02-16 0:03 ` Thomas Davis
@ 2004-02-16 21:01 ` Sam Ravnborg
2004-02-17 4:14 ` Thomas Davis
0 siblings, 1 reply; 6+ messages in thread
From: Sam Ravnborg @ 2004-02-16 21:01 UTC (permalink / raw)
To: Thomas Davis, Andrew Morton; +Cc: Bill Davidsen, lkml
On Sun, Feb 15, 2004 at 04:03:12PM -0800, Thomas Davis wrote:
> Bill Davidsen wrote:
> >
> >
> >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.
> >
>
> 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.
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Fix make rpm in 2.6 when using RH9 or Fedora..
2004-02-16 21:01 ` Sam Ravnborg
@ 2004-02-17 4:14 ` Thomas Davis
2004-02-18 14:31 ` Bill Davidsen
0 siblings, 1 reply; 6+ messages in thread
From: Thomas Davis @ 2004-02-17 4:14 UTC (permalink / raw)
To: Andrew Morton; +Cc: Sam Ravnborg, lkml
Sam Ravnborg wrote:
>
> 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:
--- linux-2.6/scripts/mkspec 2004-01-08 22:59:04.000000000 -0800
+++ linux-2.6.3-rc1-mm1/scripts/mkspec 2004-02-12 00:02:55.000000000 -0800
@@ -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"
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: [PATCH] Fix make rpm in 2.6 when using RH9 or Fedora..
2004-02-17 4:14 ` Thomas Davis
@ 2004-02-18 14:31 ` Bill Davidsen
0 siblings, 0 replies; 6+ messages in thread
From: Bill Davidsen @ 2004-02-18 14:31 UTC (permalink / raw)
To: Thomas Davis; +Cc: Andrew Morton, Sam Ravnborg, lkml
Thomas Davis wrote:
> Sam Ravnborg wrote:
>
>>
>> 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:
>
> --- linux-2.6/scripts/mkspec 2004-01-08 22:59:04.000000000 -0800
> +++ linux-2.6.3-rc1-mm1/scripts/mkspec 2004-02-12 00:02:55.000000000 -0800
> @@ -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"
Am I missing something? Won't this completely break the creation of the
debug rpm?
--
bill davidsen <davidsen@tmr.com>
CTO TMR Associates, Inc
Doing interesting things with small computers since 1979
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2004-02-18 14:49 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-12 19:33 [PATCH] Fix make rpm in 2.6 when using RH9 or Fedora Thomas Davis
2004-02-15 3:02 ` Bill Davidsen
2004-02-16 0:03 ` Thomas Davis
2004-02-16 21:01 ` Sam Ravnborg
2004-02-17 4:14 ` Thomas Davis
2004-02-18 14:31 ` Bill Davidsen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox