From: Niko Tyni <ntyni@debian.org>
Date: Thu, 21 Aug 2014 13:17:20 +0200
Subject: [PATCH] Fix manual page extensions for Debian.


Forwarded: not-needed
Reviewed-by: Florian Schlichting <fsfs@debian.org>
Patch-Name: man-ext
---

 lib/Module/Build/Base.pm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/lib/Module/Build/Base.pm b/lib/Module/Build/Base.pm
--- a/lib/Module/Build/Base.pm
+++ b/lib/Module/Build/Base.pm
@@ -3207,7 +3207,7 @@ sub ACTION_manpages {
 
 sub manify_bin_pods {
   my $self    = shift;
-  my %podman_args = (section =>  1, @_); # binaries go in section 1
+  my %podman_args = (section =>  '1p', @_); # binaries go in section 1
 
   my $files   = $self->_find_pods( $self->{properties}{bindoc_dirs},
                                    exclude => [ $self->file_qr('\.bat$') ] );
@@ -3234,7 +3234,7 @@ sub manify_bin_pods {
 
 sub manify_lib_pods {
   my $self    = shift;
-  my %podman_args = (section => 3, @_); # libraries go in section 3
+  my %podman_args = (section => '3pm', @_); # libraries go in section 3
 
   my $files   = $self->_find_pods($self->{properties}{libdoc_dirs});
   return unless keys %$files;
