Your message dated Tue, 27 May 2014 00:33:44 +0000
with message-id <[email protected]>
and subject line Bug#749388: fixed in kernel-package 13.013
has caused the Debian Bug report #749388,
regarding kernel-common: postinst should not call dpkg-architecture
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
749388: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=749388
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
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

--- End Message ---
--- Begin Message ---
Source: kernel-package
Source-Version: 13.013

We believe that the bug you reported is fixed in the latest version of
kernel-package, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Manoj Srivastava <[email protected]> (supplier of updated kernel-package 
package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Mon, 26 May 2014 17:19:04 -0700
Source: kernel-package
Binary: kernel-package kernel-common
Architecture: source all
Version: 13.013
Distribution: unstable
Urgency: low
Maintainer: Manoj Srivastava <[email protected]>
Changed-By: Manoj Srivastava <[email protected]>
Description: 
 kernel-common - common elements for generated kernel packages
 kernel-package - utility for building Linux kernel related Debian packages
Closes: 749318 749388
Changes: 
 kernel-package (13.013) unstable; urgency=low
 .
   * kernel-img built with the current kernel-package fails to install on
     an older system (wheezy) due to dependency on kernel-common package
     which is not available there. Based on a suggestion by Michal Hocko,
     changed the relationship to a Recommends, which is what it should have
     been in the first place.  (Closes: #749318).
   * Since the linux-image packages produced by make-kpkg recommend
     kernel-common, , development packages could be forced on to systems
     which installl kernel-common just for the man page. A patch from Sven
     Joachim fixes this oversight. (Closes: #749388).
   * Bug fix #749318: "kernel-img depends on kernel-common", thanks to
     Michal Hocko
   * Bug fix #749388: "postinst should not call dpkg-architecture", thanks
     to Sven Joachim
Checksums-Sha1: 
 0c8f1003068a91dba87e9aeb87a5ffa0f2ca9e0f 1452 kernel-package_13.013.dsc
 e28eec8570d553fc71aa3514ba1800c6802c8838 318364 kernel-package_13.013.tar.xz
 1a9d9479d053c79f6ab6073439e88cebcdf69b74 347712 kernel-package_13.013_all.deb
 80e9251a77789938cd79b1dab265f4dc7da990e2 131418 kernel-common_13.013_all.deb
Checksums-Sha256: 
 8ed85873bdfde697af14e07ce698278bf706e16a7ff809cf0f33f83de1064107 1452 
kernel-package_13.013.dsc
 6708d1b90d35684688834ebc5b2e350f5807c73e46084fed6e83392550f1194a 318364 
kernel-package_13.013.tar.xz
 eef55a275fe80c18fb333b2295b27aac6a556b7373a73efb434bd190dbd14b6b 347712 
kernel-package_13.013_all.deb
 8dc4a3d2d288f10fc5415b65c5db9b0164a632c02b18633274dea611c4fd037c 131418 
kernel-common_13.013_all.deb
Files: 
 5d2601ed0277e175f551647bc3c84d7f 347712 kernel optional 
kernel-package_13.013_all.deb
 6e0a180df690aa6fa137509191e06a9f 131418 kernel optional 
kernel-common_13.013_all.deb
 ada3aa7f23a37d4072dd44cc2bcede55 1452 kernel optional kernel-package_13.013.dsc
 c839db7e6c6aaf694bd96cad418a6e6c 318364 kernel optional 
kernel-package_13.013.tar.xz

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1

iQFtBAEBCgBXBQJTg9tjUBSAAAAAABsALHNyaXZhc3RhQGdvbGRlbi1ncnlwaG9u
LmNvbUFCQTcxMDI1QTFCNUE4OEE0RTVGNjhDMjM2QkQ3MjBGNkY1NzY0NzJfODY5
AAoJEDa9cg9vV2RycXEH/iJLnnHnB/bh0ufW+DH1t51uDERbEmseLVYabWLal6qR
Tha7IVXvMjiG/BcyZEre6VeHdwLPPMcrpniLNP2Mo7gIx9g7RbrsUACSa2ZEoTta
qdE5hgjVdgY5Nh7283bjIbHd6GvP576NSSGvUxDFexKCUzaBfuUP/z+vEHJS9Nhv
E/I3zM5qzbzpKzxMo1EJ+cbT3KAlDBX1iQNBiALfnU1e/rAfbs3heddq34jPwh/H
ZF3omPpWfkfNLJChmUmCn2P1wXyLsoJuNIRNmMmptTu78sh1eBqVRh9f0ckLbm0C
yjHGW9hqn6Gymr2wcnWiICSAv1DUTH9MBMimQM7ufzQ=
=e1Hd
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to