Package: perl-modules
Version: 5.10.0-9
Severity: normal

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I just stumbled over a lintian warning about a
"manpage-section-mismatch .. 3pm != 3" for a package using
Module::Build when building with perl 5.10.

I guess the reason is that /usr/share/perl/5.10.0/Module/Build/Base.pm
uses sections 1 and 3 (lines 2555/2579) -
/usr/share/perl5/Module/Build/Base.pm (from libmodule-build-perl,
otherwise identical) has those lines patched to use 1p and 3pm respectively.

I guess applying the same patch (attached) would be a good idea.

Cheers,
gregor

- -- System Information:
Debian Release: lenny/sid
  APT prefers unstable
  APT policy: (990, 'unstable'), (500, 'oldstable'), (500, 'experimental'), 
(500, 'testing'), (500, 'stable')
Architecture: i386 (i686)

Kernel: Linux 2.6.25.200805041514
Locale: LANG=C, [EMAIL PROTECTED] (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

Versions of packages perl-modules depends on:
ii  perl                          5.10.0-9   Larry Wall's Practical Extraction 

perl-modules recommends no packages.

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIHjIlOzKYnQDzz+QRAgqfAJ4ihIip3WSDAtY+77EvaMzCj2YPaACgycgk
R03KVG4E3PdIFZPspw/qed8=
=YIj5
-----END PGP SIGNATURE-----
Fix manual page extensions for Debian.

--- libmodule-build-perl.orig/lib/Module/Build/Base.pm
+++ libmodule-build-perl/lib/Module/Build/Base.pm
@@ -2552,7 +2552,7 @@
   foreach my $file (keys %$files) {
     # Pod::Simple based parsers only support one document per instance.
     # This is expected to change in a future version (Pod::Simple > 3.03).
-    my $parser  = Pod::Man->new( section => 1 ); # binaries go in section 1
+    my $parser  = Pod::Man->new( section => '1p' ); # binaries go in section 1
     my $manpage = $self->man1page_name( $file ) . '.' .
                  $self->config( 'man1ext' );
     my $outfile = File::Spec->catfile($mandir, $manpage);
@@ -2576,7 +2576,7 @@
   while (my ($file, $relfile) = each %$files) {
     # Pod::Simple based parsers only support one document per instance.
     # This is expected to change in a future version (Pod::Simple > 3.03).
-    my $parser  = Pod::Man->new( section => 3 ); # libraries go in section 3
+    my $parser  = Pod::Man->new( section => '3pm' ); # libraries go in section 
3
     my $manpage = $self->man3page_name( $relfile ) . '.' .
                  $self->config( 'man3ext' );
     my $outfile = File::Spec->catfile( $mandir, $manpage);

Reply via email to