Package: kernel-common
Version: 13.012
Tags: patch

This version of kernel-common depends on dpkg-dev, with the following
rationale in the changelog:

,----
|   * Add a dependency on dpkg-dev for the kernel-common package, since the
|     maintainer scripts use dpkg-architecture. Alsom kernel-package can't
|     really do anything useful without pkg-dev, so added there as well.
|     (Closes: #748862).
`----

Since the linux-image packages produced by make-kpkg depend on
kernel-common (this may be an oversight, the changelog for version
13.009 says they should only recommend it), development packages are now
forced into every system where you want to install (as opposed to build)
a custom kernel.  The following patch fixes this.

--8<---------------cut here---------------start------------->8---
diff --git a/debian/control b/debian/control
index f6b5438..2ed8e06 100644
--- a/debian/control
+++ b/debian/control
@@ -28,7 +28,7 @@ Description: utility for building Linux kernel related Debian 
packages
 
 Package: kernel-common
 Architecture: all
-Depends: ${misc:Depends}, dpkg-dev
+Depends: ${misc:Depends}
 Suggests: kernel-package
 Enhances: kernel-package, linux-image
 Replaces: kernel-package (<= 13.008)
diff --git a/debian/kernel-common.postinst b/debian/kernel-common.postinst
index 012e0bb..8a581db 100755
--- a/debian/kernel-common.postinst
+++ b/debian/kernel-common.postinst
@@ -67,7 +67,7 @@ case "$1" in
     configure)
         # Configure this package.  If the package must prompt the user for
         # information, do it here.
-        my_arch=$(dpkg-architecture -qDEB_HOST_ARCH)
+        my_arch=$(dpkg --print-architecture)
         new_config=/etc/kernel-img.conf.ucf-new
         
sample_config=/usr/share/doc/kernel-common/examples/etc/sample.kernel-img.conf
         cp -f "$sample_config" "$new_config"
--8<---------------cut here---------------end--------------->8---

For kernel-package it is certainly appropriate to depend on dpkg-dev,
but it has effectively done so since version 12.001 where a dependency
on build-essential was introduced.


-- System Information:
Debian Release: jessie/sid
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'stable'), (101, 'experimental')
Architecture: i386 (x86_64)

Kernel: Linux 3.14.4-nouveau+ (SMP w/2 CPU cores)
Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages kernel-common depends on:
ii  dpkg-dev  1.17.10
ii  ucf       3.0029

kernel-common recommends no packages.

Versions of packages kernel-common suggests:
ii  kernel-package  13.012

-- no debconf information


-- 
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]

Reply via email to