Bug#657940: perl: upgrade problem if defoma-app is called from a maintainer-script in the middle of the perl upgrade
Andreas Beckmann
debian at abeckmann.de
Sat Feb 4 23:25:16 UTC 2012
On 2012-01-30 20:11, Niko Tyni wrote:
> As it looks like defoma is finally fixed now (see #494106), I think we'd
> be fine if the wheezy perl-base had a Conflicts: defoma (<< 0.11.12).
> I don't think a Breaks: entry would be enough.
I just tried it and added
perl-modules: Breaks: defoma (<< 0.11.12)
and rebuilt this as 5.14.2-7.1 and tested it - this is already
sufficient to get a working upgrade path:
I manually rerun the failed piuparts test:
sudo pbuilder login --basetgz .../piuparts-squeeze.tgz
apt-get -y install libgraphics-magick-perl
sed -i -e s/squeeze/wheezy/ /etc/apt/sources.list
apt-get update
apt-get -y dist-upgrade
which still failed as expected.
The next time I inserted before apt-get update:
echo 'deb $URL_TO_PATCHED_PERL ./' > /etc/apt/sources.list.d/perl.list
and so I performed a successful dist-upgrade from squeeze to wheezy but
with the patched perl 5.14.2-7.1 instead of 5.14.2-6.
This time defoma was upgraded before perl-modules was unpacked and
everything went smooth afterwards, no more problems in the old prerm of
both fontconfig and libwmf0.2-7.
> OTOH, there are only a handful of packages depending on defoma left,
> so it might actually be feasible to check them all. For comparison,
> quoting myself in 2008 (#495359):
>
>> I have now gone through all the packages in Etch depending on defoma.
>> The only one that fails upgrades is gs-common. I found 14 packages whose
>> 'old-prerm upgrade' fails, but 'new-prerm failed-upgrade' succeeds.
>
> I doubt the problem is more widespread now.
"Fixing" perl, we could fix all possible defoma related errors at one
point and get a less noisy upgrade path because there will be no more
perl errors "Can't locate File/Copy.pm ..." caused by defoma.
A short grep listed about 20 packages that passed the squeeze2wheezy
test, but have some 'Can't locate' error message in the logfile. At a
first glance I've seen 2 with defoma-app, the other have
Can't locate File/Basename.pm in @INC (@INC contains: /etc/perl
/usr/local/lib/perl/5.10.1 /usr/local/share/perl/5.10.1 /usr/lib/perl5
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10
/usr/local/lib/site_perl .) at /usr/share/perl5/XML/SAX.pm line 15.
But that seems to be something completely different.
Andreas
More information about the Perl-maintainers
mailing list