Bug#603353: dummy dpkg status file entry causes warnings
Package: debootstrap
Version: 1.0.25
Severity: minor
Tags: patch
User: ubuntu-devel-discuss@lists.ubuntu.com
Usertags: origin-ubuntu natty ubuntu-patch
Hey
debootstrap creates a dpkg status file with a temporary dpkg entry, but
this causes some dpkg -l/dpkg-query -l warnings. These are harmless,
but it would be nice to avoid them. Attached patch fixes this.
(The dummy entry is replaced later on)
[ This was discovered while looking into some toolchain bug on armel
triggered by these warnings which will would affect dpkg/armel when
built with gcc-4.5. ]
https://bugs.launchpad.net/ubuntu/+source/debootstrap/+bug/674146
Thanks!
--
Loïc Minier
--- debootstrap-1.0.25/debian/changelog 2010-09-26 19:18:45.000000000 +0200
+++ debootstrap-1.0.25ubuntu1/debian/changelog 2010-11-13 12:36:58.000000000 +0100
@@ -1,3 +1,10 @@
+debootstrap (1.0.26) UNRELEASED; urgency=low
+
+ * scripts/gutsy, scripts/sid: add dummy Maintainer: and Description: to the
+ dpkg status file entry for dpkg as to avoid dpkg -l warnings; LP: #674146.
+
+ -- Loïc Minier <lool@debian.org> Sat, 13 Nov 2010 12:34:58 +0100
+
debootstrap (1.0.25) unstable; urgency=low
* Remove debug statement that slipped in.
--- debootstrap-1.0.25/scripts/gutsy 2010-02-18 03:20:25.000000000 +0100
+++ debootstrap-1.0.25ubuntu1/scripts/gutsy 2010-11-13 12:34:16.000000000 +0100
@@ -73,7 +73,9 @@
echo \
"Package: $pkg
Version: $ver
-Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
+Status: install ok installed
+Maintainer: debootstrap
+Description: debootstrap" >> "$TARGET/var/lib/dpkg/status"
touch "$TARGET/var/lib/dpkg/info/${pkg}.list"
}
--- debootstrap-1.0.25/scripts/sid 2010-02-18 03:20:18.000000000 +0100
+++ debootstrap-1.0.25ubuntu1/scripts/sid 2010-11-13 12:34:45.000000000 +0100
@@ -67,7 +67,9 @@
echo \
"Package: $pkg
Version: $ver
-Status: install ok installed" >> "$TARGET/var/lib/dpkg/status"
+Status: install ok installed
+Maintainer: debootstrap
+Description: debootstrap" >> "$TARGET/var/lib/dpkg/status"
touch "$TARGET/var/lib/dpkg/info/${pkg}.list"
}
Reply to: