[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#279232: Perl related upgrade problems woody -> sarge



Moin,

as I am not subscribed to debian-perl, I found your message asking for logs 
only now via the l.d.o mailarchive (as it seems low-traffic, I will subscribe
now). In the meantime, I investigated the problem a bit further and found a 
possible, but ugly fix (which I use in locally hosted perl packages on my
machines at work).

> If you could provide a log that would be useful, I'm particularly
> interested to see the sequence of unpack/configure events which tickles
> this bug.

The complete log is attached, but here is a summary (Note: perl-base isn't
touched at all, so perl from perl-base 5.6.1 fails to locate its modules,
because they updated too early).

------- Interesting parts of apt-get dist-upgrade log -------
[...]
Preparing to replace perl-modules 5.6.1-8.7 (using .../perl-modules_5.8.4-3_all.deb) ...
Unpacking replacement perl-modules ...
Selecting previously deselected package libdb4.2.
Unpacking libdb4.2 (from .../libdb4.2_4.2.52-17_i386.deb) ...
Selecting previously deselected package libgdbm3.
Unpacking libgdbm3 (from .../gdbm/libgdbm3_1.8.3-2_i386.deb) ...
Preparing to replace perl-doc 5.6.1-8.7 (using .../perl/perl-doc_5.8.4-3_all.deb) ...
Leaving `diversion of /usr/bin/perldoc to /usr/bin/perldoc.stub by perl-doc'
Unpacking replacement perl-doc ...
[...]
Preparing to replace perl 5.6.1-8.7 (using .../p/perl/perl_5.8.4-3_i386.deb) ...
Unpacking replacement perl ...
[doc-base error in old xfree86-common.prerm, caught by new maintainer script]
[...]
[doc-base error in gnome-control-center, dpkg fails with it the dist-upgrade]
-------------------------------------------------------------

My update-proof perl packages (based on the version in SID, but the same
changes should work for the SARGE version) use the following changes (Note:
there must be a better solution than introducing a pre-depends, which tends
to be rather fragile). 

------------- excerpt from debian/changelog -----------------
perl (5.8.4-5.1) sarge-workarounds; urgency=low

  * Non-maintainer upload.
  * Changes in package control files to force apt-get into the right
    installation order (Closes: #279232):
    - perl-base conflicts with perl (<< 5.8.0-1) and 
      perl-modules (<< 5.8.0-1)
    - perl pre-depends on perl-base (= ${Source-Version})

-------------------------------------------------------------

This leads to the following apt-get dist-upgrade log:

-------------------------------------------------------------
[...]
Preparing to replace perl-modules 5.6.1-8.7 (using .../perl-modules_5.8.4-5.1_all.deb) ...
Unpacking replacement perl-modules ...
Selecting previously deselected package libdb4.2.
Unpacking libdb4.2 (from .../libdb4.2_4.2.52-17_i386.deb) ...
Selecting previously deselected package libgdbm3.
Unpacking libgdbm3 (from .../gdbm/libgdbm3_1.8.3-2_i386.deb) ...
Preparing to replace perl-doc 5.6.1-8.7 (using .../perl-doc_5.8.4-5.1_all.deb) ...
Leaving `diversion of /usr/bin/perldoc to /usr/bin/perldoc.stub by perl-doc'
Unpacking replacement perl-doc ...
[a bunch of libperl-foo packages]
dpkg: perl: dependency problems, but removing anyway as you request:
 [bunch of packages depening on perl]
Removing perl ...
(Reading database ... 138738 files and directories currently installed.)
Preparing to replace perl-base 5.6.1-8.7 (using .../perl-base_5.8.4-5.1_i386.deb) ...
Unpacking replacement perl-base ...
Setting up perl-base (5.8.4-5.1) ...
Selecting previously deselected package perl.
(Reading database ... 138732 files and directories currently installed.)
Unpacking perl (from .../perl_5.8.4-5.1_i386.deb) ...
[...]
-------------------------------------------------------------

-- 
c u
henning

Attachment: signature.asc
Description: Digital signature


Reply to: