summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/files/0001-enc2xs-Add-environment-variable-to-suppress-comments.patch
diff options
context:
space:
mode:
Diffstat (limited to 'meta/recipes-devtools/perl/files/0001-enc2xs-Add-environment-variable-to-suppress-comments.patch')
-rw-r--r--meta/recipes-devtools/perl/files/0001-enc2xs-Add-environment-variable-to-suppress-comments.patch30
1 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/files/0001-enc2xs-Add-environment-variable-to-suppress-comments.patch b/meta/recipes-devtools/perl/files/0001-enc2xs-Add-environment-variable-to-suppress-comments.patch
new file mode 100644
index 0000000000..07f153162b
--- /dev/null
+++ b/meta/recipes-devtools/perl/files/0001-enc2xs-Add-environment-variable-to-suppress-comments.patch
@@ -0,0 +1,30 @@
1From 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