Skip Menu |

This queue is for tickets about the Module-Build CPAN distribution.

Report information
The Basics
Id: 76559
Status: open
Priority: 0/
Queue: Module-Build

People
Owner: Nobody in particular
Requestors: JARIAALTO [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 0.3800
Fixed in: (no value)



Subject: Add new Module::Build->new() configuration variable: man1ext
Module::Build uses hardcoded manpage extension *.1p at: grep -B 2 -rn man1ext /usr/share/perl/5.14.2/Module /usr/share/perl/5.14.2/Module/Build/Base.pm-3249- my $parser = Pod::Man->new( section => '1p' ); # binaries go in section 1p /usr/share/perl/5.14.2/Module/Build/Base.pm-3250- my $manpage = $self->man1page_name( $file ) . '.' . /usr/share/perl/5.14.2/Module/Build/Base.pm:3251: $self- Show quoted text
>config( 'man1ext' );
However, the Build.PL can be used also for software that does not consist solely of Perl Modules, but standard scripts. For this, it is desirable to be able to specify different manual page extension; files in /usr/bin/ files and their *.1 manual pages. Please add new configuration variable 'man1ext' to the new() method' input hash and pass it to the call mentioned above: section => $man1ext # the configuration variable's value
On Sun Apr 15 02:49:56 2012, JARIAALTO wrote: Show quoted text
> Module::Build uses hardcoded manpage extension *.1p at: > > grep -B 2 -rn man1ext /usr/share/perl/5.14.2/Module > /usr/share/perl/5.14.2/Module/Build/Base.pm-3249- my $parser = > Pod::Man->new( section => '1p' ); # binaries go in section 1p > /usr/share/perl/5.14.2/Module/Build/Base.pm-3250- my $manpage = > $self->man1page_name( $file ) . '.' . > /usr/share/perl/5.14.2/Module/Build/Base.pm:3251: $self-
> >config( 'man1ext' );
> > However, the Build.PL can be used also for software that does not > consist solely of Perl Modules, but standard scripts. For this, it is > desirable to be able to specify different manual page extension; files > in /usr/bin/ files and their *.1 manual pages. > > Please add new configuration variable 'man1ext' to the new() method' > input hash and pass it to the call mentioned above: > > section => $man1ext # the configuration variable's value
It seems your perl has been patched, because Module::Build does build for section 1, not section 1p by default. Also, perl already has a man1ext and man3ext configuration variable, perhaps that should be used for the section anyway instead of a hardcoded value. I'm not enough of a man/troff expect to be sure. Leon