Bug#620636: problems with dpkg 1.16.0
On Mon, 04 Apr 2011, Craig Sanders wrote: > any chance of dpkg being less spammy about it? i guess some kind of > notification is required but it's not a major problem, so doesn't need > a couple of lines of output per package. perhaps a single summary line > mentioning the problem and listing the packages comma separated. Not very likely, the warnings are printed on the fly while we're parsing the database. And I don't feel like doing important changes just for this (maybe Guillem will, but I doubt it). Cheers, -- Raphaël Hertzog ◈ Debian Developer Follow my Debian News ▶ http://RaphaelHertzog.com (English) ▶ http://RaphaelHertzog.fr (Français) -- To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#620636: problems with dpkg 1.16.0
On Sun, Apr 03, 2011 at 03:16:33PM +0200, Raphael Hertzog wrote: > Hi, > > On Sun, 03 Apr 2011, Craig Sanders wrote: > > 1. it segfaulted! (fortunately, /var/lib/dpkg/status wasn't corrupted) > > > > 2. it claimed it was installing a package called 'x)' which does > >not exist. probably related to #1 above (buffer overrun or similar, > >perhaps?) > > > >(in case those 8-bit chars get mangled by an MTA, that's '788C 9729' > >in hex) > > Both problems are related. And I just pushed a fix for this. cool, thanks. > > 3. version numbers which have been valid for years are now being > >complained about as if they are invalid. > > That's not a mistake. Version numbers are supposed to start with a digit. > > dpkg still accepts them for installed packages but forbids them in .deb. ah, okay. i've been making kernel packages with version numbering like that for years with make-kpkg (which complains about hyphens in the --revision arg, but not about the version starting with a letter). i'll start making them as version.hostname rather than hostname.version. any chance of dpkg being less spammy about it? i guess some kind of notification is required but it's not a major problem, so doesn't need a couple of lines of output per package. perhaps a single summary line mentioning the problem and listing the packages comma separated. craig -- craig sanders -- To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#620636: problems with dpkg 1.16.0
Hi, On Sun, 03 Apr 2011, Craig Sanders wrote: > 1. it segfaulted! (fortunately, /var/lib/dpkg/status wasn't corrupted) > > 2. it claimed it was installing a package called 'x)' which does >not exist. probably related to #1 above (buffer overrun or similar, >perhaps?) > >(in case those 8-bit chars get mangled by an MTA, that's '788C 9729' >in hex) Both problems are related. And I just pushed a fix for this. > 3. version numbers which have been valid for years are now being >complained about as if they are invalid. That's not a mistake. Version numbers are supposed to start with a digit. dpkg still accepts them for installed packages but forbids them in .deb. Cheers, -- Raphaël Hertzog ◈ Debian Developer Follow my Debian News ▶ http://RaphaelHertzog.com (English) ▶ http://RaphaelHertzog.fr (Français) -- To UNSUBSCRIBE, email to debian-dpkg-bugs-requ...@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org
Bug#620636: problems with dpkg 1.16.0
Package: dpkg Version: 1.16.0 I just upgraded dpkg to 1.16.0 today and noticed the following three problems: 1. it segfaulted! (fortunately, /var/lib/dpkg/status wasn't corrupted) 2. it claimed it was installing a package called 'x)' which does not exist. probably related to #1 above (buffer overrun or similar, perhaps?) (in case those 8-bit chars get mangled by an MTA, that's '788C 9729' in hex) 3. version numbers which have been valid for years are now being complained about as if they are invalid. i reverted to 1.15.8.10 and all three problems went away. system is a quad-core AMD Phenom II 940 with 8GB RAM, running a custom 2.6.38.1 amd64 kernel. i saw the same complaints about version numbers on another system with an AMD quad-core Phenom 9950 (but hadn't installed anything to trigger the segfault on that box before downgrading to 1.15.8.10) the following example shows all three problems while i was installing the latest version of unofficial wine-unstable packages from http://dev.carbon-project.org/debian/wine-unstable/ with dpkg 1.16.0: ganesh:/home/cas/Download/wine-unstable/1.3.17-0.1# dpkg -iGROEB *.deb dpkg: warning: parsing file '/var/lib/dpkg/status' near line 19677 package 'linux-headers-2.6.37.3': error in Version string 'ganesh.2.6.37.3': version number does not start with digit dpkg: warning: parsing file '/var/lib/dpkg/status' near line 19700 package 'linux-headers-2.6.37.2': error in Version string 'ganesh.2.6.37.2': version number does not start with digit dpkg: warning: parsing file '/var/lib/dpkg/status' near line 55488 package 'linux-headers-2.6.35.9': error in Version string 'ganesh.2.6.35.9': version number does not start with digit dpkg: warning: parsing file '/var/lib/dpkg/status' near line 84726 package 'linux-image-2.6.38': error in Version string 'ganesh.2.6.38': version number does not start with digit dpkg: warning: parsing file '/var/lib/dpkg/status' near line 85885 package 'linux-image-2.6.38.1': error in Version string 'ganesh.2.6.38.1': version number does not start with digit dpkg: warning: parsing file '/var/lib/dpkg/status' near line 107184 package 'linux-headers-2.6.38.1': error in Version string 'ganesh.2.6.38.1': version number does not start with digit dpkg: warning: parsing file '/var/lib/dpkg/status' near line 139020 package 'linux-headers-2.6.38': error in Version string 'ganesh.2.6.38': version number does not start with digit dpkg: warning: parsing file '/var/lib/dpkg/status' near line 156118 package 'linux-image-2.6.37.2': error in Version string 'ganesh.2.6.37.2': version number does not start with digit dpkg: warning: parsing file '/var/lib/dpkg/status' near line 156146 package 'linux-image-2.6.37.3': error in Version string 'ganesh.2.6.37.3': version number does not start with digit (Reading database ... 866518 files and directories currently installed.) Preparing to replace libwine-alsa-unstable 1.3.16-0.2 (using libwine-alsa-unstable_1.3.17-0.1_amd64.deb) ... Unpacking replacement libwine-alsa-unstable ... dpkg: error processing x) (--install): cannot access archive: No such file or directory Preparing to replace libwine-bin-unstable 1.3.16-0.2 (using libwine-bin-unstable_1.3.17-0.1_amd64.deb) ... Unpacking replacement libwine-bin-unstable ... Segmentation fault and here's the same install after downgrading to dpkg 1.5.8.10: ganesh:/home/cas/Download/wine-unstable/1.3.17-0.1# dpkg -iGROEB *.deb (Reading database ... 866519 files and directories currently installed.) Preparing to replace libwine-alsa-unstable 1.3.17-0.1 (using libwine-alsa-unstable_1.3.17-0.1_amd64.deb) ... Unpacking replacement libwine-alsa-unstable ... Preparing to replace libwine-bin-unstable 1.3.17-0.1 (using libwine-bin-unstable_1.3.17-0.1_amd64.deb) ... Unpacking replacement libwine-bin-unstable ... Skipping deselected package libwine-capi-unstable. Preparing to replace libwine-cms-unstable 1.3.16-0.2 (using libwine-cms-unstable_1.3.17-0.1_amd64.deb) ... Unpacking replacement libwine-cms-unstable ... Skipping deselected package libwine-dbg-unstable. Skipping deselected package libwine-dev-unstable. Skipping deselected package libwine-esd-unstable. Preparing to replace libwine-gl-unstable 1.3.16-0.2 (using libwine-gl-unstable_1.3.17-0.1_amd64.deb) ... Unpacking replacement libwine-gl-unstable ... Preparing to replace libwine-gphoto2-unstable 1.3.16-0.2 (using libwine-gphoto2-unstable_1.3.17-0.1_amd64.deb) ... Unpacking replacement libwine-gphoto2-unstable ... Skipping deselected package libwine-jack-unstable. Preparing to replace libwine-ldap-unstable 1.3.16-0.2 (using libwine-ldap-unstable_1.3.17-0.1_amd64.deb) ... Unpacking replacement libwine-ldap-unstable ... Skipping deselected package libwine-nas-unstable. Preparing to replace libwine-openal-unstable 1.3.16-0.2 (using libwine-openal-unstable_1.3.17-0.1_amd64.deb) ... Unpacking replacement libwine-openal-unstable ... Skipping deselected package libwine-oss-u