blob: 07f153162b041278d9e5ac7e7c3ec07a48c9b446 [file] [log] [blame]
Brad Bishopc8f47122019-06-24 09:36:18 -04001From 31a2c5555f9ef32f35d7d5ce1fd09a010ba5f5c6 Mon Sep 17 00:00:00 2001
2From: Joshua Watt <JPEWhacker@gmail.com>
3Date: Mon, 17 Jun 2019 10:47:15 -0500
4Subject: [PATCH 1/2] enc2xs: Add environment variable to suppress comments
5
6Comment generation in enc2xs can now be suppressed by setting the
7ENC2XS_NO_COMMENTS environment variable. This allows enc2xs to produce
8reproducible output by omitting the name of the generating program.
9
10Signed-off-by: Joshua Watt <JPEWhacker@gmail.com>
11Upstream-status: Accepted [https://github.com/dankogai/p5-encode/pull/145]
12---
13 cpan/Encode/bin/enc2xs | 1 +
14 1 file changed, 1 insertion(+)
15
16diff --git a/cpan/Encode/bin/enc2xs b/cpan/Encode/bin/enc2xs
17index 619b64b757..bfce9ee735 100644
18--- a/cpan/Encode/bin/enc2xs
19+++ b/cpan/Encode/bin/enc2xs
20@@ -144,6 +144,7 @@ getopts('CM:SQqOo:f:n:v',\%opt);
21 $opt{M} and make_makefile_pl($opt{M}, @ARGV);
22 $opt{C} and make_configlocal_pm($opt{C}, @ARGV);
23 $opt{v} ||= $ENV{ENC2XS_VERBOSE};
24+$opt{q} ||= $ENV{ENC2XS_NO_COMMENTS};
25
26 sub verbose {
27 print STDERR @_ if $opt{v};
28--
292.21.0
30