Package: gs-common
Version: 8.62.dfsg.1-3
Severity: serious

Upgrading gs-common from Etch fails when perl-modules is unconfigured
and out of sync with perl-base:

Preparing to replace gs-common 0.3.11 (using gs-common_8.62.dfsg.1-3_all.deb) 
...
Can't locate File/Copy.pm in @INC (@INC contains: /etc/perl 
/usr/local/lib/perl/5.10.0 /usr/local/share/perl/5.10.0 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.10 /usr/share/perl/5.10 
/usr/local/lib/site_perl .) at /usr/bin/defoma-app line 7.
BEGIN failed--compilation aborted at /usr/bin/defoma-app line 7.
dpkg: warning - old pre-removal script returned error exit status 2
dpkg - trying script from the new package instead ...
dpkg: error processing gs-common_8.62.dfsg.1-3_all.deb (--unpack):
 there is no script in the new version of the package - giving up
Errors were encountered while processing:
 gs-common_8.62.dfsg.1-3_all.deb

As discussed in #495359, the 'old-prerm upgrade' invocation is done
in the dpkg unpacking stage, and non-Essential packages (that aren't
in Pre-Depends) aren't guaranteed to be functional at that time. 
See policy 6.6:

 http://www.debian.org/doc/debian-policy/ch-maintainerscripts.html#s-unpackphase

File::Copy is in perl-modules, which is not Essential:yes.

There's no way to fix the Etch prerm or defoma-app anymore of course,
but adding a prerm script in the Lenny gs-common package that survives
'failed-upgrade' is enough to fix the upgrades.

There are several Etch packages calling defoma-app from 'prerm upgrade',
but gs-common seems to be the only one that hasn't a prerm script in
Lenny for recovering.

Steps to reproduce, starting from a clean Etch install:

 apt-get install gs-common
 perl -pi -e s/etch/lenny/  /etc/apt/sources.list
 apt-get update
 apt-get install tzdata lib6
 apt-get -d install perl-base gs-common
 dpkg --unpack /var/cache/apt/archives/perl-base_5.10.0-13_amd64.deb 
/var/cache/apt/archives/gs-common_8.62.dfsg.1-3_all.deb

or alternatively

 apt-get install gs-common
 perl -pi -e s/etch/lenny/  /etc/apt/sources.list
 apt-get update
 apt-get -d install perl-modules gs-common
 dpkg --unpack /var/cache/apt/archives/perl-modules_5.10.0-11.1_all.deb 
/var/cache/apt/archives/gs-common_8.62.dfsg.1-3_all.deb

This is happening in real dist-upgrades too, see the original report
in #495359.
-- 
Niko Tyni   [EMAIL PROTECTED]



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to