Change-Id: If76796f156caf55c505030dbdb9da2c8d367a200
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/1604
Reviewed-by: suezzelur <anishs@vmware.com>
Tested-by: gerrit-photon <photon-checkins@vmware.com>
1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,49 +0,0 @@ |
1 |
-Submitted By: DJ Lucas <dj at linuxfromscratch dot org> |
|
2 |
-Date: 2012-06-04 |
|
3 |
-Initial Package Version: 5.16.0 |
|
4 |
-Origin: Previous Perl-libc patch |
|
5 |
-Status: Not Submitted - LFS Specific |
|
6 |
-Description: This patch adapts some hard-wired paths to the C library and gcc. |
|
7 |
- It uses the $prefix variable to locate the correct libc. |
|
8 |
- |
|
9 |
-diff -Naurp perl-5.16.0-orig/hints/linux.sh perl-5.16.0/hints/linux.sh |
|
10 |
-+++ perl-5.16.0/hints/linux.sh 2012-06-04 19:23:56.000000000 +0000 |
|
11 |
-@@ -66,9 +66,9 @@ libswanted="$libswanted gdbm_compat" |
|
12 |
- # We don't use __GLIBC__ and __GLIBC_MINOR__ because they |
|
13 |
- # are insufficiently precise to distinguish things like |
|
14 |
- # libc-2.0.6 and libc-2.0.7. |
|
15 |
--if test -L /lib/libc.so.6; then |
|
16 |
-+if test -L ${prefix}/lib/libc.so.6; then |
|
17 |
- libc=`ls -l /lib/libc.so.6 | awk '{print $NF}'` |
|
18 |
-- libc=/lib/$libc |
|
19 |
-+ libc=${prefix}/lib/$libc |
|
20 |
- fi |
|
21 |
- |
|
22 |
- # Configure may fail to find lstat() since it's a static/inline |
|
23 |
-@@ -167,11 +167,11 @@ esac |
|
24 |
- # we don't want its libraries. So we try to prefer the system gcc |
|
25 |
- # Still, as an escape hatch, allow Configure command line overrides to |
|
26 |
- # plibpth to bypass this check. |
|
27 |
--if [ -x /usr/bin/gcc ] ; then |
|
28 |
-- gcc=/usr/bin/gcc |
|
29 |
--else |
|
30 |
-+#if [ -x /usr/bin/gcc ] ; then |
|
31 |
-+# gcc=/usr/bin/gcc |
|
32 |
-+#else |
|
33 |
- gcc=gcc |
|
34 |
--fi |
|
35 |
-+#fi |
|
36 |
- |
|
37 |
- case "$plibpth" in |
|
38 |
- '') plibpth=`LANG=C LC_ALL=C $gcc -print-search-dirs | grep libraries | |
|
39 |
-@@ -466,3 +466,8 @@ case "$libdb_needs_pthread" in |
|
40 |
- libswanted="$libswanted pthread" |
|
41 |
- ;; |
|
42 |
- esac |
|
43 |
-+ |
|
44 |
-+locincpth="" |
|
45 |
-+loclibpth="" |
|
46 |
-+glibpth="${prefix}/lib" |
|
47 |
-+usrinc="${prefix}/include" |
|
48 |
- |
49 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,345 @@ |
0 |
+From cee96d52c39b1e7b36e1c62d38bcd8d86e9a41ab Mon Sep 17 00:00:00 2001 |
|
1 |
+From: Tony Cook <tony@develop-help.com> |
|
2 |
+Date: Tue, 21 Jun 2016 10:02:02 +1000 |
|
3 |
+Subject: [PATCH] (perl #127834) remove . from the end of @INC if complex |
|
4 |
+ modules are loaded |
|
5 |
+ |
|
6 |
+While currently Encode and Storable are know to attempt to load modules |
|
7 |
+not included in the core, updates to other modules may lead to those |
|
8 |
+also attempting to load new modules, so be safe and remove . for those |
|
9 |
+as well. |
|
10 |
+--- |
|
11 |
+ cpan/Archive-Tar/bin/ptar | 1 + |
|
12 |
+ cpan/Archive-Tar/bin/ptardiff | 1 + |
|
13 |
+ cpan/Archive-Tar/bin/ptargrep | 1 + |
|
14 |
+ cpan/CPAN/scripts/cpan | 1 + |
|
15 |
+ cpan/Digest-SHA/shasum | 1 + |
|
16 |
+ cpan/Encode/bin/enc2xs | 1 + |
|
17 |
+ cpan/Encode/bin/encguess | 1 + |
|
18 |
+ cpan/Encode/bin/piconv | 1 + |
|
19 |
+ cpan/Encode/bin/ucmlint | 1 + |
|
20 |
+ cpan/Encode/bin/unidump | 1 + |
|
21 |
+ cpan/ExtUtils-MakeMaker/bin/instmodsh | 1 + |
|
22 |
+ cpan/IO-Compress/bin/zipdetails | 1 + |
|
23 |
+ cpan/JSON-PP/bin/json_pp | 1 + |
|
24 |
+ cpan/Test-Harness/bin/prove | 1 + |
|
25 |
+ dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp | 1 + |
|
26 |
+ dist/Module-CoreList/corelist | 1 + |
|
27 |
+ ext/Pod-Html/bin/pod2html | 1 + |
|
28 |
+ utils/c2ph.PL | 1 + |
|
29 |
+ utils/h2ph.PL | 2 ++ |
|
30 |
+ utils/h2xs.PL | 2 ++ |
|
31 |
+ utils/libnetcfg.PL | 1 + |
|
32 |
+ utils/perlbug.PL | 1 + |
|
33 |
+ utils/perldoc.PL | 5 ++++- |
|
34 |
+ utils/perlivp.PL | 2 ++ |
|
35 |
+ utils/splain.PL | 6 ++++++ |
|
36 |
+ 25 files changed, 36 insertions(+), 1 deletion(-) |
|
37 |
+ |
|
38 |
+diff --git a/cpan/Archive-Tar/bin/ptar b/cpan/Archive-Tar/bin/ptar |
|
39 |
+index 0eaffa7..9dc6402 100644 |
|
40 |
+--- a/cpan/Archive-Tar/bin/ptar |
|
41 |
+@@ -1,6 +1,7 @@ |
|
42 |
+ #!/usr/bin/perl |
|
43 |
+ use strict; |
|
44 |
+ |
|
45 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
46 |
+ use File::Find; |
|
47 |
+ use Getopt::Std; |
|
48 |
+ use Archive::Tar; |
|
49 |
+diff --git a/cpan/Archive-Tar/bin/ptardiff b/cpan/Archive-Tar/bin/ptardiff |
|
50 |
+index 66bd859..4668fa6 100644 |
|
51 |
+--- a/cpan/Archive-Tar/bin/ptardiff |
|
52 |
+@@ -1,5 +1,6 @@ |
|
53 |
+ #!/usr/bin/perl |
|
54 |
+ |
|
55 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
56 |
+ use strict; |
|
57 |
+ use Archive::Tar; |
|
58 |
+ use Getopt::Std; |
|
59 |
+diff --git a/cpan/Archive-Tar/bin/ptargrep b/cpan/Archive-Tar/bin/ptargrep |
|
60 |
+index 1a320f1..8dc6b4f 100644 |
|
61 |
+--- a/cpan/Archive-Tar/bin/ptargrep |
|
62 |
+@@ -4,6 +4,7 @@ |
|
63 |
+ # archive. See 'ptargrep --help' for more documentation. |
|
64 |
+ # |
|
65 |
+ |
|
66 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
67 |
+ use strict; |
|
68 |
+ use warnings; |
|
69 |
+ |
|
70 |
+diff --git a/cpan/CPAN/scripts/cpan b/cpan/CPAN/scripts/cpan |
|
71 |
+index 5555090..cceab30 100644 |
|
72 |
+--- a/cpan/CPAN/scripts/cpan |
|
73 |
+@@ -1,5 +1,6 @@ |
|
74 |
+ #!/usr/local/bin/perl |
|
75 |
+ |
|
76 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
77 |
+ use strict; |
|
78 |
+ use vars qw($VERSION); |
|
79 |
+ |
|
80 |
+diff --git a/cpan/Digest-SHA/shasum b/cpan/Digest-SHA/shasum |
|
81 |
+index 14ddd60..62a2b0e 100644 |
|
82 |
+--- a/cpan/Digest-SHA/shasum |
|
83 |
+@@ -13,6 +13,7 @@ |
|
84 |
+ ## "-0" option for reading bit strings, and |
|
85 |
+ ## "-p" option for portable digests (to be deprecated). |
|
86 |
+ |
|
87 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
88 |
+ use strict; |
|
89 |
+ use warnings; |
|
90 |
+ use Fcntl; |
|
91 |
+diff --git a/cpan/Encode/bin/enc2xs b/cpan/Encode/bin/enc2xs |
|
92 |
+index ec4732c..f8d9f52 100644 |
|
93 |
+--- a/cpan/Encode/bin/enc2xs |
|
94 |
+@@ -4,6 +4,7 @@ BEGIN { |
|
95 |
+ # with $ENV{PERL_CORE} set |
|
96 |
+ # In case we need it in future... |
|
97 |
+ require Config; import Config; |
|
98 |
++ pop @INC if $INC[-1] eq '.'; |
|
99 |
+ } |
|
100 |
+ use strict; |
|
101 |
+ use warnings; |
|
102 |
+diff --git a/cpan/Encode/bin/encguess b/cpan/Encode/bin/encguess |
|
103 |
+index 5d7ac80..0be5c7c 100644 |
|
104 |
+--- a/cpan/Encode/bin/encguess |
|
105 |
+@@ -1,5 +1,6 @@ |
|
106 |
+ #!./perl |
|
107 |
+ use 5.008001; |
|
108 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
109 |
+ use strict; |
|
110 |
+ use warnings; |
|
111 |
+ use Encode; |
|
112 |
+diff --git a/cpan/Encode/bin/piconv b/cpan/Encode/bin/piconv |
|
113 |
+index c1dad9e..60b2a59 100644 |
|
114 |
+--- a/cpan/Encode/bin/piconv |
|
115 |
+@@ -1,6 +1,7 @@ |
|
116 |
+ #!./perl |
|
117 |
+ # $Id: piconv,v 2.7 2014/05/31 09:48:48 dankogai Exp $ |
|
118 |
+ # |
|
119 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
120 |
+ use 5.8.0; |
|
121 |
+ use strict; |
|
122 |
+ use Encode ; |
|
123 |
+diff --git a/cpan/Encode/bin/ucmlint b/cpan/Encode/bin/ucmlint |
|
124 |
+index 622376d..25e0d67 100644 |
|
125 |
+--- a/cpan/Encode/bin/ucmlint |
|
126 |
+@@ -3,6 +3,7 @@ |
|
127 |
+ # $Id: ucmlint,v 2.2 2008/03/12 09:51:11 dankogai Exp $ |
|
128 |
+ # |
|
129 |
+ |
|
130 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
131 |
+ use strict; |
|
132 |
+ our $VERSION = do { my @r = (q$Revision: 2.2 $ =~ /\d+/g); sprintf "%d."."%02d" x $#r, @r }; |
|
133 |
+ |
|
134 |
+diff --git a/cpan/Encode/bin/unidump b/cpan/Encode/bin/unidump |
|
135 |
+index ae0da30..f190827 100644 |
|
136 |
+--- a/cpan/Encode/bin/unidump |
|
137 |
+@@ -1,5 +1,6 @@ |
|
138 |
+ #!./perl |
|
139 |
+ |
|
140 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
141 |
+ use strict; |
|
142 |
+ use Encode; |
|
143 |
+ use Getopt::Std; |
|
144 |
+diff --git a/cpan/ExtUtils-MakeMaker/bin/instmodsh b/cpan/ExtUtils-MakeMaker/bin/instmodsh |
|
145 |
+index 8b9aa95..ab0f9d1 100644 |
|
146 |
+--- a/cpan/ExtUtils-MakeMaker/bin/instmodsh |
|
147 |
+@@ -1,5 +1,6 @@ |
|
148 |
+ #!/usr/bin/perl -w |
|
149 |
+ |
|
150 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
151 |
+ use strict; |
|
152 |
+ use IO::File; |
|
153 |
+ use ExtUtils::Packlist; |
|
154 |
+diff --git a/cpan/IO-Compress/bin/zipdetails b/cpan/IO-Compress/bin/zipdetails |
|
155 |
+index 0249850..1b9c70a 100644 |
|
156 |
+--- a/cpan/IO-Compress/bin/zipdetails |
|
157 |
+@@ -5,6 +5,7 @@ |
|
158 |
+ # Display info on the contents of a Zip file |
|
159 |
+ # |
|
160 |
+ |
|
161 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
162 |
+ use strict; |
|
163 |
+ use warnings ; |
|
164 |
+ |
|
165 |
+diff --git a/cpan/JSON-PP/bin/json_pp b/cpan/JSON-PP/bin/json_pp |
|
166 |
+index 3362dec..39bed4d 100644 |
|
167 |
+--- a/cpan/JSON-PP/bin/json_pp |
|
168 |
+@@ -1,5 +1,6 @@ |
|
169 |
+ #!/usr/bin/perl |
|
170 |
+ |
|
171 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
172 |
+ use strict; |
|
173 |
+ use Getopt::Long; |
|
174 |
+ |
|
175 |
+diff --git a/cpan/Test-Harness/bin/prove b/cpan/Test-Harness/bin/prove |
|
176 |
+index 6637cc4..d71b238 100644 |
|
177 |
+--- a/cpan/Test-Harness/bin/prove |
|
178 |
+@@ -1,5 +1,6 @@ |
|
179 |
+ #!/usr/bin/perl -w |
|
180 |
+ |
|
181 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
182 |
+ use strict; |
|
183 |
+ use warnings; |
|
184 |
+ use App::Prove; |
|
185 |
+diff --git a/dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp b/dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp |
|
186 |
+index e2ac71a..d596cdf 100644 |
|
187 |
+--- a/dist/ExtUtils-ParseXS/lib/ExtUtils/xsubpp |
|
188 |
+@@ -1,5 +1,6 @@ |
|
189 |
+ #!perl |
|
190 |
+ use 5.006; |
|
191 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
192 |
+ use strict; |
|
193 |
+ eval { |
|
194 |
+ require ExtUtils::ParseXS; |
|
195 |
+diff --git a/dist/Module-CoreList/corelist b/dist/Module-CoreList/corelist |
|
196 |
+index aa4a945..bbe61cc 100644 |
|
197 |
+--- a/dist/Module-CoreList/corelist |
|
198 |
+@@ -130,6 +130,7 @@ requested perl versions. |
|
199 |
+ |
|
200 |
+ =cut |
|
201 |
+ |
|
202 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
203 |
+ use Module::CoreList; |
|
204 |
+ use Getopt::Long qw(:config no_ignore_case); |
|
205 |
+ use Pod::Usage; |
|
206 |
+diff --git a/ext/Pod-Html/bin/pod2html b/ext/Pod-Html/bin/pod2html |
|
207 |
+index b022859..7d1d232 100644 |
|
208 |
+--- a/ext/Pod-Html/bin/pod2html |
|
209 |
+@@ -216,6 +216,7 @@ This program is distributed under the Artistic License. |
|
210 |
+ |
|
211 |
+ =cut |
|
212 |
+ |
|
213 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
214 |
+ use Pod::Html; |
|
215 |
+ |
|
216 |
+ pod2html @ARGV; |
|
217 |
+diff --git a/utils/c2ph.PL b/utils/c2ph.PL |
|
218 |
+index 466223c..ea87a6f 100644 |
|
219 |
+--- a/utils/c2ph.PL |
|
220 |
+@@ -280,6 +280,7 @@ Anyway, here it is. Should run on perl v4 or greater. Maybe less. |
|
221 |
+ |
|
222 |
+ $RCSID = '$Id: c2ph,v 1.7 95/10/28 10:41:47 tchrist Exp Locker: tchrist $'; |
|
223 |
+ |
|
224 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
225 |
+ use File::Temp; |
|
226 |
+ |
|
227 |
+ ###################################################################### |
|
228 |
+diff --git a/utils/h2ph.PL b/utils/h2ph.PL |
|
229 |
+index d082f22..2523c0a 100644 |
|
230 |
+--- a/utils/h2ph.PL |
|
231 |
+@@ -36,6 +36,8 @@ $Config{startperl} |
|
232 |
+ |
|
233 |
+ print OUT <<'!NO!SUBS!'; |
|
234 |
+ |
|
235 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
236 |
++ |
|
237 |
+ use strict; |
|
238 |
+ |
|
239 |
+ use Config; |
|
240 |
+diff --git a/utils/h2xs.PL b/utils/h2xs.PL |
|
241 |
+index 4cb0943..8fda87b 100644 |
|
242 |
+--- a/utils/h2xs.PL |
|
243 |
+@@ -35,6 +35,8 @@ $Config{startperl} |
|
244 |
+ |
|
245 |
+ print OUT <<'!NO!SUBS!'; |
|
246 |
+ |
|
247 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
248 |
++ |
|
249 |
+ use warnings; |
|
250 |
+ |
|
251 |
+ =head1 NAME |
|
252 |
+diff --git a/utils/libnetcfg.PL b/utils/libnetcfg.PL |
|
253 |
+index 59a2de8..26d2f99 100644 |
|
254 |
+--- a/utils/libnetcfg.PL |
|
255 |
+@@ -97,6 +97,7 @@ Jarkko Hietaniemi, conversion into libnetcfg for inclusion into Perl 5.8. |
|
256 |
+ |
|
257 |
+ # $Id: Configure,v 1.8 1997/03/04 09:22:32 gbarr Exp $ |
|
258 |
+ |
|
259 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
260 |
+ use strict; |
|
261 |
+ use IO::File; |
|
262 |
+ use Getopt::Std; |
|
263 |
+diff --git a/utils/perlbug.PL b/utils/perlbug.PL |
|
264 |
+index 720cf12..b0b2c12 100644 |
|
265 |
+--- a/utils/perlbug.PL |
|
266 |
+@@ -57,6 +57,7 @@ print OUT <<'!NO!SUBS!'; |
|
267 |
+ my @patches = Config::local_patches(); |
|
268 |
+ my $patch_tags = join "", map /(\S+)/ ? "+$1 " : (), @patches; |
|
269 |
+ |
|
270 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
271 |
+ use warnings; |
|
272 |
+ use strict; |
|
273 |
+ use Config; |
|
274 |
+diff --git a/utils/perldoc.PL b/utils/perldoc.PL |
|
275 |
+index e201de9..cd60bd4 100644 |
|
276 |
+--- a/utils/perldoc.PL |
|
277 |
+@@ -44,7 +44,10 @@ $Config{startperl} |
|
278 |
+ # This "$file" file was generated by "$0" |
|
279 |
+ |
|
280 |
+ require 5; |
|
281 |
+-BEGIN { \$^W = 1 if \$ENV{'PERLDOCDEBUG'} } |
|
282 |
++BEGIN { |
|
283 |
++ \$^W = 1 if \$ENV{'PERLDOCDEBUG'}; |
|
284 |
++ pop \@INC if \$INC[-1] eq '.'; |
|
285 |
++} |
|
286 |
+ use Pod::Perldoc; |
|
287 |
+ exit( Pod::Perldoc->run() ); |
|
288 |
+ |
|
289 |
+diff --git a/utils/perlivp.PL b/utils/perlivp.PL |
|
290 |
+index c2f0a11..e522913 100644 |
|
291 |
+--- a/utils/perlivp.PL |
|
292 |
+@@ -39,6 +39,8 @@ print OUT "\n# perlivp $^V\n"; |
|
293 |
+ |
|
294 |
+ print OUT <<'!NO!SUBS!'; |
|
295 |
+ |
|
296 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
297 |
++ |
|
298 |
+ sub usage { |
|
299 |
+ warn "@_\n" if @_; |
|
300 |
+ print << " EOUSAGE"; |
|
301 |
+diff --git a/utils/splain.PL b/utils/splain.PL |
|
302 |
+index 9c70b61..cae84a0 100644 |
|
303 |
+--- a/utils/splain.PL |
|
304 |
+@@ -38,6 +38,12 @@ $Config{startperl} |
|
305 |
+ if \$running_under_some_shell; |
|
306 |
+ !GROK!THIS! |
|
307 |
+ |
|
308 |
++print <<'!NO!SUBS!'; |
|
309 |
++ |
|
310 |
++BEGIN { pop @INC if $INC[-1] eq '.' } |
|
311 |
++ |
|
312 |
++!NO!SUBS! |
|
313 |
++ |
|
314 |
+ while (<IN>) { |
|
315 |
+ print OUT unless /^package diagnostics/; |
|
316 |
+ } |
|
317 |
+-- |
|
318 |
+2.10.0-rc1-260-gbdd1a2a |
|
319 |
+ |
... | ... |
@@ -6,30 +6,32 @@ |
6 | 6 |
# for F in $(find lib -type f); do perl -e '$/ = undef; $_ = <>; if (/^package #\R([\w:]*);/m) { print qq{|^perl\\\\($1\\\\)} }' "$F"; done |
7 | 7 |
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Locale::Codes::Country_Retired\\)|^perl\\(Locale::Codes::LangFam_Retired\\)|^perl\\(Locale::Codes::Script_Retired\\)|^perl\\(Locale::Codes::LangExt_Codes\\)|^perl\\(Locale::Codes::LangFam_Codes\\)|^perl\\(Locale::Codes::Script_Codes\\)|^perl\\(Locale::Codes::Language_Codes\\)|^perl\\(Locale::Codes::LangExt_Retired\\)|^perl\\(Locale::Codes::Currency_Codes\\)|^perl\\(Locale::Codes::LangVar_Retired\\)|^perl\\(Locale::Codes::Language_Retired\\)|^perl\\(Locale::Codes::Country_Codes\\)|^perl\\(Locale::Codes::LangVar_Codes\\)|^perl\\(Locale::Codes::Currency_Retired\\) |
8 | 8 |
|
9 |
-Summary: Practical Extraction and Report Language |
|
10 |
-Name: perl |
|
11 |
-Version: 5.22.1 |
|
12 |
-Release: 3%{?dist} |
|
13 |
-License: GPLv1+ |
|
14 |
-URL: http://www.perl.org/ |
|
15 |
-Group: Development/Languages |
|
16 |
-Vendor: VMware, Inc. |
|
17 |
-Distribution: Photon |
|
18 |
-Source0: http://www.cpan.org/src/5.0/%{name}-%{version}.tar.bz2 |
|
9 |
+Summary: Practical Extraction and Report Language |
|
10 |
+Name: perl |
|
11 |
+Version: 5.22.1 |
|
12 |
+Release: 4%{?dist} |
|
13 |
+License: GPLv1+ |
|
14 |
+URL: http://www.perl.org/ |
|
15 |
+Group: Development/Languages |
|
16 |
+Vendor: VMware, Inc. |
|
17 |
+Distribution: Photon |
|
18 |
+Source0: http://www.cpan.org/src/5.0/%{name}-%{version}.tar.bz2 |
|
19 | 19 |
%define sha1 perl=29f9b320b0299577a3e1d02e9e8ef8f26f160332 |
20 |
-Provides: perl >= 0:5.003000 |
|
21 |
-Provides: perl(getopts.pl) |
|
22 |
-Provides: /bin/perl |
|
20 |
+Patch0: perl-CVE-2016-1238.patch |
|
21 |
+Provides: perl >= 0:5.003000 |
|
22 |
+Provides: perl(getopts.pl) |
|
23 |
+Provides: /bin/perl |
|
23 | 24 |
BuildRequires: zlib-devel, bzip2-devel |
24 |
-Requires: zlib |
|
25 |
-Requires: gdbm |
|
26 |
-Requires: glibc |
|
27 |
-Requires: libgcc |
|
25 |
+Requires: zlib |
|
26 |
+Requires: gdbm |
|
27 |
+Requires: glibc |
|
28 |
+Requires: libgcc |
|
28 | 29 |
%description |
29 | 30 |
The Perl package contains the Practical Extraction and |
30 | 31 |
Report Language. |
31 | 32 |
%prep |
32 | 33 |
%setup -q |
34 |
+%patch0 -p1 |
|
33 | 35 |
|
34 | 36 |
sed -i 's/-fstack-protector/&-all/' Configure |
35 | 37 |
|
... | ... |
@@ -39,21 +41,21 @@ export BUILD_BZIP2=0 |
39 | 39 |
CFLAGS="%{_optflags}" |
40 | 40 |
|
41 | 41 |
sh Configure -des \ |
42 |
- -Dprefix=%{_prefix} \ |
|
43 |
- -Dvendorprefix=%{_prefix} \ |
|
44 |
- -Dman1dir=%{_mandir}/man1 \ |
|
45 |
- -Dman3dir=%{_mandir}/man3 \ |
|
46 |
- -Dpager=%{_bindir}"/less -isR" \ |
|
47 |
- -Duseshrplib \ |
|
48 |
- -Dusethreads \ |
|
42 |
+ -Dprefix=%{_prefix} \ |
|
43 |
+ -Dvendorprefix=%{_prefix} \ |
|
44 |
+ -Dman1dir=%{_mandir}/man1 \ |
|
45 |
+ -Dman3dir=%{_mandir}/man3 \ |
|
46 |
+ -Dpager=%{_bindir}"/less -isR" \ |
|
47 |
+ -Duseshrplib \ |
|
48 |
+ -Dusethreads \ |
|
49 | 49 |
-DPERL_RANDOM_DEVICE="/dev/erandom" |
50 | 50 |
|
51 | 51 |
make VERBOSE=1 %{?_smp_mflags} |
52 | 52 |
%install |
53 | 53 |
make DESTDIR=%{buildroot} install |
54 | 54 |
unset BUILD_ZLIB BUILD_BZIP2 |
55 |
-%post -p /sbin/ldconfig |
|
56 |
-%postun -p /sbin/ldconfig |
|
55 |
+%post -p /sbin/ldconfig |
|
56 |
+%postun -p /sbin/ldconfig |
|
57 | 57 |
%files |
58 | 58 |
%defattr(-,root,root) |
59 | 59 |
%{_bindir}/* |
... | ... |
@@ -62,13 +64,16 @@ unset BUILD_ZLIB BUILD_BZIP2 |
62 | 62 |
%{_libdir}/perl5/%{version}/* |
63 | 63 |
%{_mandir}/*/* |
64 | 64 |
%changelog |
65 |
-* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 5.22.1-3 |
|
66 |
-- GA - Bump release of all rpms |
|
67 |
-* Thu Jan 26 2016 Anish Swaminathan <anishs@vmware.com> 5.22.1-2 |
|
68 |
-- Enable threads |
|
69 |
-* Tue Jan 12 2016 Anish Swaminathan <anishs@vmware.com> 5.22.1-1 |
|
70 |
-- Update version |
|
71 |
-* Thu Jun 4 2015 Touseef Liaqat <tliaqat@vmware.com> 5.18.2-2 |
|
72 |
-- Provide /bin/perl. |
|
73 |
-* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 5.18.2-1 |
|
74 |
-- Initial build. First version |
|
65 |
+* Thu Oct 20 2016 Xiaolin Li <xiaolinl@vmware.com> 5.22.1-4 |
|
66 |
+- CVE-2016-1238 patch from http://perl5.git.perl.org/perl.git/commit/cee96d52c39b1e7b36e1c62d38bcd8d86e9a41ab. |
|
67 |
+* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 5.22.1-3 |
|
68 |
+- GA - Bump release of all rpms |
|
69 |
+* Thu Jan 26 2016 Anish Swaminathan <anishs@vmware.com> 5.22.1-2 |
|
70 |
+- Enable threads |
|
71 |
+* Tue Jan 12 2016 Anish Swaminathan <anishs@vmware.com> 5.22.1-1 |
|
72 |
+- Update version |
|
73 |
+* Thu Jun 4 2015 Touseef Liaqat <tliaqat@vmware.com> 5.18.2-2 |
|
74 |
+- Provide /bin/perl. |
|
75 |
+* Wed Nov 5 2014 Divya Thaluru <dthaluru@vmware.com> 5.18.2-1 |
|
76 |
+- Initial build. First version |
|
77 |
+ |