Package: libpod-tests-perl
Version: 0.18-1
Severity: serious
Tags: patch
Justification: Policy 7.5.1

Pod::Tests was created upstream to split out the Pod::* module namespace
from Test::Inline in the new major version 2.  libtest-inline-perl
2.103-1 depends on libpod-tests-perl to provide these modules for
backwards compatibility.

However, when the user has libtest-inline-perl 0.16-1 (or older)
installed, and the new libtest-inline-perl 2.103-1 and libpod-tests-perl
0.18-1 are to be installed, the following happens:

| Selecting previously deselected package libpod-tests-perl.
| Unpacking libpod-tests-perl (from .../libpod-tests-perl_0.18-1_all.deb) ...
| dpkg: error processing 
/var/cache/apt/archives/libpod-tests-perl_0.18-1_all.deb (--unpack):
|  trying to overwrite `/usr/share/perl5/Pod/Tests.pm', which is also in 
package libtest-inline-perl
| Preparing to replace libtest-inline-perl 0.16-1 (using 
.../libtest-inline-perl_2.103-1_all.deb) ...
| Unpacking replacement libtest-inline-perl ...
| Errors were encountered while processing:
|  /var/cache/apt/archives/libpod-tests-perl_0.18-1_all.deb

libpod-tests-perl should now conflict with (and replace) old versions of
libtest-inline-perl.

Patch attached.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (600, 'testing'), (90, 'unstable')
Architecture: i386 (i686)
diff -ruN libpod-tests-perl-0.18.org/debian/control 
libpod-tests-perl-0.18/debian/control
--- libpod-tests-perl-0.18.org/debian/control   2006-01-29 12:49:46.000000000 
+0000
+++ libpod-tests-perl-0.18/debian/control       2006-01-29 12:59:54.000000000 
+0000
@@ -9,6 +9,8 @@
 Package: libpod-tests-perl
 Architecture: all
 Depends: ${perl:Depends}
+Conflicts: libtest-inline-perl (<< 2.100)
+Replaces: libtest-inline-perl (<< 2.100)
 Description: Perl extension for excts embedded tests and code examples from POD
  This is a specialized POD viewer to extract embedded tests and code examples
  from POD. It doesn't do much more than that.

Reply via email to