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

[perl #134204] [PATCH 1/2] enc2xs: Add environment variable tosuppress comments

From:
Tony Cook via RT
Date:
June 18, 2019 05:45
Subject:
[perl #134204] [PATCH 1/2] enc2xs: Add environment variable tosuppress comments
Message ID:
rt-4.0.24-25405-1560836716-26.134204-15-0@perl.org
On Mon, 17 Jun 2019 11:14:51 -0700, jpewhacker@gmail.com wrote:
> Comment generation in enc2xs can now be suppressed by setting the
> ENC2XS_NO_COMMENTS environment variable. This allows enc2xs to produce
> reproducible output by omitting the name of the generating program.
> 
> Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
> ---
>  cpan/Encode/bin/enc2xs | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/cpan/Encode/bin/enc2xs b/cpan/Encode/bin/enc2xs
> index 619b64b757..bfce9ee735 100644
> --- a/cpan/Encode/bin/enc2xs
> +++ b/cpan/Encode/bin/enc2xs
> @@ -144,6 +144,7 @@ getopts('CM:SQqOo:f:n:v',\%opt);
>  $opt{M} and make_makefile_pl($opt{M}, @ARGV);
>  $opt{C} and make_configlocal_pm($opt{C}, @ARGV);
>  $opt{v} ||= $ENV{ENC2XS_VERBOSE};
> +$opt{q} ||= $ENV{ENC2XS_NO_COMMENTS};
>  
>  sub verbose {
>      print STDERR @_ if $opt{v};

Encode is maintained elsewhere, I suspect the best place to submit patches is:

https://github.com/dankogai/p5-encode/pulls

Tony

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



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