[Pkg-ia32-libs-maintainers] Bug#534903: Bug#534903: ia32-apt-get+libmagick9 breaks dpkg
Goswin von Brederlow
goswin-v-b at web.de
Sun Jun 28 12:44:58 UTC 2009
tags 532903 + pending
thanks
Petr Vandrovec <petr at vandrovec.name> writes:
> Package: ia32-apt-get
> Version: 18
> Severity: important
>
> I've grabbed ia32-apt-get, ia32-libs, and ia32-libs-tools version 18,
> installed them, bumped apt-get's memory limit to 90MB, but unfortunately
> dpkg is still not quite happy:
>
> arch_all.list: deleting prelude-correlator amd64
> arch_all.list: deleting python-osd amd64
> arch_all.list: deleting rep-gtk-gnome amd64
> Ignoring ftp.us.debian.org_debian_dists_squeeze_main_binary-i386_Packages.IndexDiff
> Ignoring ftp.us.debian.org_debian_dists_squeeze_non-free_binary-i386_Packages.IndexDiff
> Ignoring www.debian-multimedia.org_dists_sid_main_binary-i386_Packages.IndexDiff
> Merging ...
> Reading package lists... Done
> Merging available information
> Replacing available packages info, using /var/cache/apt/available.
> dpkg: parse error, in file '/var/cache/apt/available' near line 969216
> package 'ia32-libmagick9':
> `Conflicts' field, reference to `ia32-libmagick5': version contains ` '
>
> update available list script returned error exit status 2.
> Press <enter> to continue.
This doesn't happen here, as in my /var/lib/dpkg/available is not
replaced with /var/cache/apt/available. You probably have some extra
software installed that keeps the two available files in sync. I
suggest checking your /etc/apt/apt.conf.d/* for something that syncs
the two and disabling that for a quick fix.
> Looking at line 969216, there is indeed a problem. Arguably it is
> problem in original package, as it has "libmagick5 (>= 4:5.5.1-1 )", but
> dpkg is apparently OK with trailing space, while it is not OK with space
> inside, like "libmagick5 (>= 4:5.5.1-1 ~18)". Could you strip trailing
> spaces from version, or just ignore such record altogether (I won't miss
> not having 32bit libmagick9, while I do miss dpkg...)
>
> Maybe severity should be grave, as now dpkg is hosed here, dunno.
> Thanks,
> Petr Vandrovec
Thanks for the report. The conflicts is indeed verry odd. But if dpkg
is happy with it then I should be too.
Fixed in svn:
--- ia32-libs-tools/mangle.cc (revision 291)
+++ ia32-libs-tools/mangle.cc (working copy)
@@ -171,7 +171,9 @@
++i;
offset = i;
while(s[i] != ')') ++i;
- version = s.substr(offset, i - offset);
+ size_t j = i;
+ while(s[j - 1] == ' ') --j;
+ version = s.substr(offset, j - offset);
++i;
} else {
version = "";
The problem should also go away if you comment out the squeeze entries
in sources.list or change the squeeze entries to deb [arch=amd64] ...
and run /usr/share/ia32-apt-get/convert-all-sources.list again. No
libmagick9 in sid packages.debian.org tells me.
MfG
Goswin
More information about the Pkg-ia32-libs-maintainers
mailing list