develooper Front page | perl.perl5.porters | Postings from June 2019

[perl #134203] [PATCH 2/2] Constant: Fix up shebang

From:
Tony Cook via RT
Date:
June 18, 2019 05:47
Subject:
[perl #134203] [PATCH 2/2] Constant: Fix up shebang
Message ID:
rt-4.0.24-28309-1560836836-1934.134203-15-0@perl.org
On Mon, 17 Jun 2019 11:14:50 -0700, jpewhacker@gmail.com wrote:
> The instructions indicate that the script should be explicitly passed
> to
> "perl -x", so automatically setting the #! to be ^X is unnecessary and
> makes the file non-reproducible when building because ^X could be the
> absolute path to miniperl.
> 
> Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
> ---
> cpan/ExtUtils-Constant/lib/ExtUtils/Constant/XS.pm | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/XS.pm
> b/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/XS.pm
> index 14eb809714..d4d074e121 100644
> --- a/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/XS.pm
> +++ b/cpan/ExtUtils-Constant/lib/ExtUtils/Constant/XS.pm
> @@ -219,7 +219,7 @@ sub dogfood {
>       Regenerate these constant functions by feeding this entire
> source file to
>       perl -x
> 
> -#!$^X -w
> +#!/usr/bin/env perl -x -w
>  use ExtUtils::Constant qw (constant_types C_constant XS_constant);
> 
> EOT

This is also maintained upstream, the best place to submit changes is probably via rt.cpan.org:

https://rt.cpan.org/Public/Dist/Display.html?Name=ExtUtils-Constant

Tony


---
via perlbug:  queue: perl5 status: new
https://rt.perl.org/Ticket/Display.html?id=134203



nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About