Bug 8941 - make deb-pkg should 'Provides: linux-image-$version' (as well)
Summary: make deb-pkg should 'Provides: linux-image-$version' (as well)
Status: CLOSED CODE_FIX
Alias: None
Product: Other
Classification: Unclassified
Component: Configuration (show other bugs)
Hardware: All Linux
: P1 low
Assignee: Sam Ravnborg
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-26 07:08 UTC by paolo
Modified: 2007-10-19 20:54 UTC (History)
0 users

See Also:
Kernel Version: 2.6.22.5
Subsystem:
Regression: ---
Bisected commit-id:


Attachments

Description paolo 2007-08-26 07:08:23 UTC
Most recent kernel where this bug did not occur:
Distribution: Debian Sarge/Etch
Hardware Environment: x86
Software Environment:
Problem Description: 

Debian's modules explicitly depend on 'linux-image-_KVERS_'
while the in-tree .deb kernel packager sets the 'Provides:' field to 'kernel-image-_KVERS_'. Hence kernels packaged by deb-pkg fail dependencies check for Debian's modules .deb.

I suggest to apply the following patch:

--- scripts/package/builddeb.orig       2007-08-26 16:02:07.000000000 +0200
+++ scripts/package/builddeb    2007-08-26 15:58:47.000000000 +0200
@@ -83,7 +83,7 @@
 Standards-Version: 3.6.1
 
 Package: $packagename
-Provides: kernel-image-$version
+Provides: kernel-image-$version, linux-image-$version
 Architecture: any
 Description: User Mode Linux kernel, version $version
  User-mode Linux is a port of the Linux kernel to its own system call
@@ -105,7 +105,7 @@
 Standards-Version: 3.6.1
 
 Package: $packagename
-Provides: kernel-image-$version
+Provides: kernel-image-$version, linux-image-$version
 Architecture: any
 Description: Linux kernel, version $version
  This package contains the Linux kernel, modules and corresponding other
Comment 1 Sam Ravnborg 2007-08-28 11:41:51 UTC
> 
> I suggest to apply the following patch:

I do not keep much track of this.
Care so sent me a proper signed-off patch then I will apply it.

	Sam
Comment 2 paolo 2007-08-29 07:57:41 UTC
noproblem, but is that really needed even for a 1word patch copied from a 
Debian package src?

#----------------
Current Debian's kernel-modules depend on matching linux-image-$version, though
Linux's make deb-pkg build a .deb that 'Provides: kernel-image-$version' only.
The following patch adds the Debian-compliant 'Provides', leaving the default one; hopely this will make way all happy.

Signed-off-by: paolo <oopla@users.sf.net>

--- a/linux/scripts/package/builddeb       2007-08-26 16:02:07.000000000 +0200
+++ b/linux/scripts/package/builddeb    2007-08-26 15:58:47.000000000 +0200
@@ -83,7 +83,7 @@
 Standards-Version: 3.6.1

 Package: $packagename
-Provides: kernel-image-$version
+Provides: kernel-image-$version, linux-image-$version
 Architecture: any
 Description: User Mode Linux kernel, version $version
  User-mode Linux is a port of the Linux kernel to its own system call
@@ -105,7 +105,7 @@
 Standards-Version: 3.6.1

 Package: $packagename
-Provides: kernel-image-$version
+Provides: kernel-image-$version, linux-image-$version
 Architecture: any
 Description: Linux kernel, version $version
  This package contains the Linux kernel, modules and corresponding other
Comment 3 Sam Ravnborg 2007-10-18 06:25:34 UTC
On Wed, Aug 29, 2007 at 07:57:41AM -0700, bugme-daemon@bugzilla.kernel.org wrote:
> http://bugzilla.kernel.org/show_bug.cgi?id=8941
> 
> 
> 
> 
> 
> ------- Comment #2 from oopla@users.sf.net  2007-08-29 07:57 -------
> noproblem, but is that really needed even for a 1word patch copied from a 
> Debian package src?
> 
> #----------------
> Current Debian's kernel-modules depend on matching linux-image-$version,
> though
> Linux's make deb-pkg build a .deb that 'Provides: kernel-image-$version'
> only.
> The following patch adds the Debian-compliant 'Provides', leaving the default
> one; hopely this will make way all happy.
> 
> Signed-off-by: paolo <oopla@users.sf.net>

There were no Provides: line in -linus kernel tree so
I just added the full line.

	Sam
Comment 5 Sam Ravnborg 2007-10-19 20:54:52 UTC
The above link is no longer valid.
This is better:
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=6f67a00498abf8f0b29c2cecfce188c70be309d0

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