develooper Front page | perl.perl5.porters | Postings from January 2016

Re: podlators 4.04 released

Thread Previous | Thread Next
Craig A. Berry
January 4, 2016 22:00
Re: podlators 4.04 released
Message ID:
On Mon, Jan 4, 2016 at 1:51 PM, Russ Allbery <> wrote:
> "Craig A. Berry" <> writes:

>> I think core integration would be easier if we just stuck with .PL
>> files under cpan/podlators/scripts. That way they'll get built
>> correctly for the target platform and there should be less
>> customization to bring a new version into core.  Is there any reason
>> to prefer distributing Unix-specific scripts under bin/?
> My understanding was that it's no longer necessary to use .PL scripts and
> all of their machinery just to replace the #! line (and that's all
> podlators needs done), and that ExtUtils::MakeMaker now knows how to
> replace the #! lines properly without requiring that be written out
> manually in every package.

You can't spell shebang without the "sh". The .PL files for the
utilities are primarily to generate shebang emulation on non-Unix
systems.  Yes, on unixy systems, what they do will reduce to just
editing the shebang line, but on non-Unix systems they prepend the
value of $Config{startperl}, which contains a native command to invoke
perl and pass along its parameters, and then they add a suffix to the
script name so the script will be recognized as a command by the
command processor (.bat on Windows, .com on VMS).

> Is that not the case?  If not, I can restore the previous wrappers, but I
> was really hoping that was a thing of the past.
> ExtUtils::MakeMaker's documentation for EXE_FILES says:
>    If your executables start with something like #!perl or #!/usr/bin/perl
>    MakeMaker will change this to the path of the perl 'Makefile.PL' was
>    invoked with so the programs will be sure to run properly even if perl
>    is not in /usr/bin/perl.

I'm sure that's true if all you need to do is tweak the path to perl
on the shebang line.  But that's not all we need to do.  We could (and
used to) maintain the wrappers separately in core, but that seems like
extra work for folks upgrading core to new versions of podlators.

Thread Previous | Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About