summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl/perl
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2015-06-17 00:19:42 -0700
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-07-01 15:39:58 +0100
commit3f7e55baa6b65b39c5698bb58320f85876cebe23 (patch)
tree398e48b0e167f958d084ce1e8ccf25162ac9f0a8 /meta/recipes-devtools/perl/perl
parenta01d406f6b0d9e08ce6d7408c2928a433fdf1843 (diff)
downloadpoky-3f7e55baa6b65b39c5698bb58320f85876cebe23.tar.gz
perl: 5.20.0 -> 5.22.0
* Remove: - perl-5.14.3-fix-CVE-2010-4777.patch: backport - fix-FF_MORE-crash.patch: backport - perl-rprovides.inc: it was introduced by 5.8.7, the lines in it are like: RPROVIDES_perl-module-b-asmdata = "perl-module-${TARGET_SYS}-b-asmdata" If some packages do RPDEND on something like perl-module-${TARGET_SYS}-b-asmdatam, we need update the package rather than keep use RPROVIDES in perl-rprovides.inc, so remove it. - perl-rprovides_5.20.0.inc: it only has one line: RPROVIDES_perl-module-module-build, but the perl-module-module-build is gone in 5.22.0, so remove it. * Update: - debian patches from http://ftp.de.debian.org/debian/pool/main/p/perl/perl_5.20.0-1.debian.tar.xz - Makefile.SH.patch - Merge 0001-Makefile.SH-fix-do_install-failed.patch into Makefile.SH.patch - native-nopacklist.patch - config.sh * The CGI.pm and Module::Build disappear from core, so no perl-module-module-build.rpm any more, more info: http://perltricks.com/article/165/2015/4/10/A-preview-of-Perl-5-22 (From OE-Core rev: 06d43a90acbe63baea62d220659149a3ff2f9198) Signed-off-by: Robert Yang <liezhi.yang@windriver.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl/perl')
-rw-r--r--meta/recipes-devtools/perl/perl/Configure-multilib.patch17
-rw-r--r--meta/recipes-devtools/perl/perl/MM_Unix.pm.patch22
-rw-r--r--meta/recipes-devtools/perl/perl/Makefile.SH.patch374
-rw-r--r--meta/recipes-devtools/perl/perl/Makefile.patch58
-rw-r--r--meta/recipes-devtools/perl/perl/config.sh1222
-rw-r--r--meta/recipes-devtools/perl/perl/config.sh-3238
-rw-r--r--meta/recipes-devtools/perl/perl/config.sh-32-be1
-rw-r--r--meta/recipes-devtools/perl/perl/config.sh-32-le1
-rw-r--r--meta/recipes-devtools/perl/perl/config.sh-6438
-rw-r--r--meta/recipes-devtools/perl/perl/config.sh-64-be1
-rw-r--r--meta/recipes-devtools/perl/perl/config.sh-64-le1
-rw-r--r--meta/recipes-devtools/perl/perl/cross-generate_uudmap.patch15
-rw-r--r--meta/recipes-devtools/perl/perl/debian/cpan-missing-site-dirs.diff62
-rw-r--r--meta/recipes-devtools/perl/perl/debian/cpan_definstalldirs.diff37
-rw-r--r--meta/recipes-devtools/perl/perl/debian/db_file_ver.diff34
-rw-r--r--meta/recipes-devtools/perl/perl/debian/deprecate-with-apt.diff56
-rw-r--r--meta/recipes-devtools/perl/perl/debian/doc_info.diff35
-rw-r--r--meta/recipes-devtools/perl/perl/debian/enc2xs_inc.diff70
-rw-r--r--meta/recipes-devtools/perl/perl/debian/errno_ver.diff35
-rw-r--r--meta/recipes-devtools/perl/perl/debian/extutils_set_libperl_path.diff37
-rw-r--r--meta/recipes-devtools/perl/perl/debian/fakeroot.diff42
-rw-r--r--meta/recipes-devtools/perl/perl/debian/find_html2text.diff35
-rw-r--r--meta/recipes-devtools/perl/perl/debian/fixes/document_makemaker_ccflags.diff31
-rw-r--r--meta/recipes-devtools/perl/perl/debian/fixes/memoize_storable_nstore.diff110
-rw-r--r--meta/recipes-devtools/perl/perl/debian/fixes/net_smtp_docs.diff25
-rw-r--r--meta/recipes-devtools/perl/perl/debian/fixes/perl-Cnn.diff73
-rw-r--r--meta/recipes-devtools/perl/perl/debian/fixes/pod_man_reproducible_date.diff170
-rw-r--r--meta/recipes-devtools/perl/perl/debian/fixes/podman-empty-date.diff51
-rw-r--r--meta/recipes-devtools/perl/perl/debian/fixes/podman-pipe.diff109
-rw-r--r--meta/recipes-devtools/perl/perl/debian/fixes/podman-utc-docs.diff86
-rw-r--r--meta/recipes-devtools/perl/perl/debian/fixes/podman-utc.diff33
-rw-r--r--meta/recipes-devtools/perl/perl/debian/fixes/respect_umask.diff153
-rw-r--r--meta/recipes-devtools/perl/perl/debian/instmodsh_doc.diff27
-rw-r--r--meta/recipes-devtools/perl/perl/debian/ld_run_path.diff24
-rw-r--r--meta/recipes-devtools/perl/perl/debian/libnet_config_path.diff37
-rw-r--r--meta/recipes-devtools/perl/perl/debian/libperl_embed_doc.diff26
-rw-r--r--meta/recipes-devtools/perl/perl/debian/locale-robustness.diff52
-rw-r--r--meta/recipes-devtools/perl/perl/debian/makemaker-pasthru.diff30
-rw-r--r--meta/recipes-devtools/perl/perl/debian/makemaker_customized.diff42
-rw-r--r--meta/recipes-devtools/perl/perl/debian/mod_paths.diff99
-rw-r--r--meta/recipes-devtools/perl/perl/debian/no_packlist_perllocal.diff92
-rw-r--r--meta/recipes-devtools/perl/perl/debian/patchlevel.diff30
-rw-r--r--meta/recipes-devtools/perl/perl/debian/perl5db-x-terminal-emulator.patch29
-rw-r--r--meta/recipes-devtools/perl/perl/debian/perlivp.diff39
-rw-r--r--meta/recipes-devtools/perl/perl/debian/pod2man-customized.diff23
-rw-r--r--meta/recipes-devtools/perl/perl/debian/prefix_changes.diff118
-rw-r--r--meta/recipes-devtools/perl/perl/debian/prune_libs.diff38
-rw-r--r--meta/recipes-devtools/perl/perl/debian/regen-skip.diff27
-rw-r--r--meta/recipes-devtools/perl/perl/debian/skip-kfreebsd-crash.diff40
-rw-r--r--meta/recipes-devtools/perl/perl/debian/skip-upstream-git-tests.diff28
-rw-r--r--meta/recipes-devtools/perl/perl/debian/squelch-locale-warnings.diff56
-rw-r--r--meta/recipes-devtools/perl/perl/debian/writable_site_dirs.diff36
-rw-r--r--meta/recipes-devtools/perl/perl/dynaloaderhack.patch23
-rw-r--r--meta/recipes-devtools/perl/perl/fix_bad_rpath.patch24
-rw-r--r--meta/recipes-devtools/perl/perl/generate-sh.patch56
-rw-r--r--meta/recipes-devtools/perl/perl/installperl.patch17
-rw-r--r--meta/recipes-devtools/perl/perl/letgcc-find-errno.patch46
-rw-r--r--meta/recipes-devtools/perl/perl/make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch30
-rw-r--r--meta/recipes-devtools/perl/perl/native-nopacklist.patch91
-rw-r--r--meta/recipes-devtools/perl/perl/native-perlinc.patch26
-rw-r--r--meta/recipes-devtools/perl/perl/perl-archlib-exp.patch40
-rw-r--r--meta/recipes-devtools/perl/perl/perl-configpm-switch.patch47
-rwxr-xr-xmeta/recipes-devtools/perl/perl/perl-configure.sh43
-rw-r--r--meta/recipes-devtools/perl/perl/perl-dynloader.patch34
-rw-r--r--meta/recipes-devtools/perl/perl/perl-enable-gdbm.patch19
-rw-r--r--meta/recipes-devtools/perl/perl/perl-moreconfig.patch18
-rw-r--r--meta/recipes-devtools/perl/perl/run-ptest2
-rw-r--r--meta/recipes-devtools/perl/perl/test/dist-threads-t-join.t-adjust-ps-option.patch38
-rw-r--r--meta/recipes-devtools/perl/perl/test/ext-DynaLoader-t-DynaLoader.t-fix-calling-dl_findfil.patch26
69 files changed, 4545 insertions, 0 deletions
diff --git a/meta/recipes-devtools/perl/perl/Configure-multilib.patch b/meta/recipes-devtools/perl/perl/Configure-multilib.patch
new file mode 100644
index 0000000000..9625b0b84e
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/Configure-multilib.patch
@@ -0,0 +1,17 @@
1Upstream-Status:Pending
2
3Index: perl-5.12.3/Configure
4===================================================================
5--- perl-5.12.3.orig/Configure
6+++ perl-5.12.3/Configure
7@@ -1316,8 +1316,9 @@ loclibpth="/usr/local/lib /opt/local/lib
8 loclibpth="$loclibpth /opt/gnu/lib /usr/GNU/lib /opt/GNU/lib"
9
10 : general looking path for locating libraries
11-glibpth="/lib /usr/lib $xlibpth"
12+glibpth="/lib /usr/lib /lib64 /usr/lib64 $xlibpth"
13 glibpth="$glibpth /usr/ccs/lib /usr/ucblib /usr/local/lib"
14+test -f /usr/lib/*-linux-gnu/libc.so && glibpth="/usr/lib/*-linux-gnu $glibpth"
15 test -f /usr/shlib/libc.so && glibpth="/usr/shlib $glibpth"
16 test -f /shlib/libc.so && glibpth="/shlib $glibpth"
17 test -d /usr/lib64 && glibpth="$glibpth /lib64 /usr/lib64 /usr/local/lib64"
diff --git a/meta/recipes-devtools/perl/perl/MM_Unix.pm.patch b/meta/recipes-devtools/perl/perl/MM_Unix.pm.patch
new file mode 100644
index 0000000000..eb92ccb678
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/MM_Unix.pm.patch
@@ -0,0 +1,22 @@
1Upstream-Status:Pending
2
3The perl-native should be relocatable while re-use sstate-cache from
4another build, especially the original build was renamed/removed.
5
6To get the MakeMaker.pm works in this case, we need perl wrapper here
7instead of real perl binary.
8
9Signed-off-by: Wenzong Fan <wenzong.fan@windriver.com>
10===================================================================
11--- perl-5.12.3/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm.orig 2011-08-12 16:07:30.000000000 +0800
12+++ perl-5.12.3/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm 2011-08-12 16:08:56.000000000 +0800
13@@ -1019,6 +1019,9 @@
14 }
15
16 foreach my $name (@$names){
17+ # Getting MakeMaker.pm use perl wrapper instead of 'perl.real' directly
18+ $name =~ s/perl\.real/perl/ if ($name =~ /perl\.real/);
19+
20 foreach my $dir (@$dirs){
21 next unless defined $dir; # $self->{PERL_SRC} may be undefined
22 my ($abs, $val);
diff --git a/meta/recipes-devtools/perl/perl/Makefile.SH.patch b/meta/recipes-devtools/perl/perl/Makefile.SH.patch
new file mode 100644
index 0000000000..3de233128d
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/Makefile.SH.patch
@@ -0,0 +1,374 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
4---
5 Makefile.SH | 145 +++++++++++++++++++++++++++--------------------------------
6 1 file changed, 67 insertions(+), 78 deletions(-)
7
8diff --git a/Makefile.SH b/Makefile.SH
9index 034d812..67e08fd 100755
10--- a/Makefile.SH
11+++ b/Makefile.SH
12@@ -39,10 +39,10 @@ case "$useshrplib" in
13 true)
14 # Prefix all runs of 'miniperl' and 'perl' with
15 # $ldlibpth so that ./perl finds *this* shared libperl.
16- case "$LD_LIBRARY_PATH" in
17- '') ldlibpth="LD_LIBRARY_PATH=` quote "$pwd" `" ;;
18- *) ldlibpth="LD_LIBRARY_PATH=` quote "$pwd" `:` quote "$LD_LIBRARY_PATH" `" ;;
19- esac
20+ #case "$LD_LIBRARY_PATH" in
21+ #'') ldlibpth="LD_LIBRARY_PATH=` quote "$pwd" `" ;;
22+ #*) ldlibpth="LD_LIBRARY_PATH=` quote "$pwd" `:` quote "$LD_LIBRARY_PATH" `" ;;
23+ #esac
24
25 pldlflags="$cccdlflags"
26 static_ldflags=''
27@@ -122,10 +122,11 @@ true)
28 *)
29 eval "ldlibpthval=\"\$$ldlibpthname\""
30
31- case "$ldlibpthval" in
32- '') ldlibpth="$ldlibpthname=` quote "$pwd" `" ;;
33- *) ldlibpth="$ldlibpthname=` quote "$pwd" `:` quote "$ldlibpthval" `" ;;
34- esac
35+# We compile in the library path in OE from cross-compile, so lets not do this
36+# case "$ldlibpthval" in
37+# '') ldlibpth="$ldlibpthname=` quote "$pwd" `" ;;
38+# *) ldlibpth="$ldlibpthname=` quote "$pwd" `:` quote "$ldlibpthval" `" ;;
39+# esac
40
41 ;;
42 esac
43@@ -141,18 +142,7 @@ true)
44 # INSTALL file, under "Building a shared perl library".
45 # If there is no pre-existing $libperl, we don't need
46 # to do anything further.
47- if test -f $archlib/CORE/$libperl; then
48- rm -f preload
49- cat <<'EOT' > preload
50-#! /bin/sh
51-lib=$1
52-shift
53-test -r $lib && export LD_PRELOAD="$lib $LD_PRELOAD"
54-exec "$@"
55-EOT
56- chmod 755 preload
57- ldlibpth="$ldlibpth `pwd`/preload `pwd`/$libperl"
58- fi
59+ echo linux libraries overwritten by cross-compile patches
60 ;;
61 os390) test -f /bin/env && ldlibpth="/bin/env $ldlibpth"
62 ;;
63@@ -566,13 +556,23 @@ splintfiles = $(c1)
64 @echo `$(CCCMDSRC)` -S $*.c
65 @`$(CCCMDSRC)` -S $*.c
66
67-all: $(FIRSTMAKEFILE) $(MINIPERL_EXE) $(generated_pods) $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make $(MANIFEST_SRT)
68- @echo " ";
69- @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
70+#all: $(FIRSTMAKEFILE) $(MINIPERL_EXE) $(generated_pods) $(private) $(unidatafiles) $(public) $(dynamic_ext) $(nonxs_ext) extras.make $(MANIFEST_SRT)
71+# @echo " ";
72+# @echo " Everything is up to date. Type '$(MAKE) test' to run test suite."
73+
74+all: $(FIRSTMAKEFILE) $(MINIPERL_EXE) miniperl $(unidatafiles)
75+
76+more: $(generated_pods) $(private) $(public)
77+
78+more2: $(dynamic_ext)
79
80-$(MANIFEST_SRT): MANIFEST $(PERL_EXE)
81- @$(RUN_PERL) Porting/manisort -q || (echo "WARNING: re-sorting MANIFEST"; \
82- $(RUN_PERL) Porting/manisort -q -o MANIFEST; sh -c true)
83+more3: $(nonxs_ext)
84+
85+more4: extras.make $(MANIFEST_SRT)
86+
87+$(MANIFEST_SRT): MANIFEST
88+ @$(MINIPERL) Porting/manisort -q || (echo "WARNING: re-sorting MANIFEST"; \
89+ $(MINIPERL) Porting/manisort -q -o MANIFEST; sh -c true)
90 @touch $(MANIFEST_SRT)
91
92 .PHONY: all utilities
93@@ -581,7 +581,7 @@ $(MANIFEST_SRT): MANIFEST $(PERL_EXE)
94 # by make_patchnum.pl.
95 git_version.h: lib/Config_git.pl
96
97-lib/Config_git.pl: $(MINIPERL_EXE) make_patchnum.pl
98+lib/Config_git.pl: make_patchnum.pl
99 $(MINIPERL) make_patchnum.pl
100
101 # make sure that we recompile perl.c if the git version changes
102@@ -594,7 +594,7 @@ perl$(OBJ_EXT): git_version.h
103 # loading, we need to build perl first.
104 case "$usedl$static_cwd" in
105 defineundef)
106- util_deps='$(MINIPERL_EXE) $(CONFIGPM) lib/auto/Cwd/Cwd$(DLSUFFIX) FORCE'
107+ util_deps='$(CONFIGPM) lib/auto/Cwd/Cwd$(DLSUFFIX) FORCE'
108 ;;
109 definedefine)
110 util_deps='$(PERL_EXE) $(CONFIGPM) FORCE'
111@@ -604,7 +604,7 @@ definedefine)
112 esac
113
114 $spitshell >>$Makefile <<!GROK!THIS!
115-utils/Makefile: \$(MINIPERL_EXE) \$(CONFIGPM) utils/Makefile.PL
116+utils/Makefile: \$(CONFIGPM) utils/Makefile.PL
117 \$(MINIPERL) -Ilib utils/Makefile.PL
118
119 utilities: utils/Makefile $util_deps
120@@ -699,7 +699,7 @@ esac
121
122
123 $spitshell >>$Makefile <<'!NO!SUBS!'
124-perlmain.c: $(MINIPERL_EXE) ext/ExtUtils-Miniperl/pm_to_blib
125+perlmain.c: ext/ExtUtils-Miniperl/lib/ExtUtils/Miniperl.pm
126 $(MINIPERL) -Ilib -MExtUtils::Miniperl -e 'writemain(\"perlmain.c", @ARGV)' DynaLoader $(static_ext)
127
128 # The file ext.libs is a list of libraries that must be linked in
129@@ -760,7 +760,7 @@ PERLEXPORT = perl.exp
130 ;;
131 esac
132 $spitshell >>$Makefile <<'!NO!SUBS!'
133-perl.exp: $(MINIPERLEXP) makedef.pl $(CONFIGPM) $(SYM) $(SYMH)
134+perl.exp: makedef.pl $(CONFIGPM) $(SYM) $(SYMH)
135 ./$(MINIPERLEXP) makedef.pl --sort-fold PLATFORM=aix CC_FLAGS="$(OPTIMIZE)" > perl.exp
136
137 !NO!SUBS!
138@@ -769,7 +769,7 @@ os2)
139 $spitshell >>$Makefile <<'!NO!SUBS!'
140 MINIPERLEXP = miniperl
141
142-perl5.def: $(MINIPERLEXP) makedef.pl $(CONFIGPM) $(SYM) $(SYMH) miniperl.map
143+perl5.def: makedef.pl $(CONFIGPM) $(SYM) $(SYMH) miniperl.map
144 ./$(MINIPERLEXP) makedef.pl PLATFORM=os2 -DPERL_DLL=$(PERL_DLL) CC_FLAGS="$(OPTIMIZE)" > perl5.def
145
146 !NO!SUBS!
147@@ -829,7 +829,7 @@ $(LIBPERL): $& $(obj) $(DYNALOADER) $(LIBPERLEXPORT)
148 true)
149 $spitshell >>$Makefile <<'!NO!SUBS!'
150 rm -f $@
151- $(LD) -o $@ $(SHRPLDFLAGS) $(obj) $(DYNALOADER) $(libs)
152+ $(LD) -o $@ $(SHRPLDFLAGS) $(obj) $(DYNALOADER) $(libs) -Wl,-soname,libperl.so.5
153 !NO!SUBS!
154 case "$osname" in
155 aix)
156@@ -877,7 +877,9 @@ $(MINIPERL_EXE): lib/buildcustomize.pl
157 $spitshell >>$Makefile <<'!NO!SUBS!'
158 lib/buildcustomize.pl: $& $(mini_obj)
159 $(CC) -o $(MINIPERL_EXE) $(CLDFLAGS) $(mini_obj) $(libs)
160- $(LDLIBPTH) ./miniperl$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
161+ mv -f miniperl miniperl-target
162+ ln -s hostperl miniperl
163+ #$(LDLIBPTH) ./miniperl$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
164 $(MINIPERL) -f write_buildcustomize.pl
165 !NO!SUBS!
166 ;;
167@@ -885,7 +887,9 @@ lib/buildcustomize.pl: $& $(mini_obj)
168 $spitshell >>$Makefile <<'!NO!SUBS!'
169 lib/buildcustomize.pl: $& $(mini_obj) write ldcustomize.pl
170 $(CC) -o $(MINIPERL_EXE) $(mini_obj libs)
171- $(LDLIBPTH) ./miniperl$(HOST _EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
172+ mv -f miniperl miniperl-target
173+ ln -s hostperl miniperl
174+ #$(LDLIBPTH) ./miniperl$(HOST _EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
175 $(MINIPERL) -f write_buildcustomize.pl
176 !NO!SUBS!
177 ;;
178@@ -907,7 +911,9 @@ lib/buildcustomize.pl: $& $(mini_obj) write_buildcustomize.pl
179 -@rm -f miniperl.xok
180 $(CC) $(CLDFLAGS) $(NAMESPACEFLAGS) -o $(MINIPERL_EXE) \
181 $(mini_obj) $(libs)
182- $(LDLIBPTH) ./miniperl$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
183+ mv -f miniperl miniperl-target
184+ ln -s hostperl miniperl
185+ #$(LDLIBPTH) ./miniperl$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
186 $(MINIPERL) -f write_buildcustomize.pl
187 !NO!SUBS!
188 ;;
189@@ -918,7 +924,9 @@ lib/buildcustomize.pl: \$& \$(mini_obj) write_buildcustomize.pl
190 -@rm -f miniperl.xok
191 -@rm \$(MINIPERL_EXE)
192 \$(LNS) \$(HOST_PERL) \$(MINIPERL_EXE)
193- \$(LDLIBPTH) ./miniperl\$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
194+ mv -f miniperl miniperl-target
195+ ln -s hostperl miniperl
196+ #\$(LDLIBPTH) ./miniperl\$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
197 \$(MINIPERL) -f write_buildcustomize.pl 'osname' "$osname"
198 !GROK!THIS!
199 else
200@@ -927,7 +935,9 @@ lib/buildcustomize.pl: $& $(mini_obj) write_buildcustomize.pl
201 -@rm -f miniperl.xok
202 $(CC) $(CLDFLAGS) -o $(MINIPERL_EXE) \
203 $(mini_obj) $(libs)
204- $(LDLIBPTH) ./miniperl$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
205+ mv -f miniperl miniperl-target
206+ ln -s hostperl miniperl
207+ #$(LDLIBPTH) ./miniperl$(HOST_EXE_EXT) -w -Ilib -Idist/Exporter/lib -MExporter -e '<?>' || sh -c 'echo >&2 Failed to build miniperl. Please run make minitest; exit 1'
208 $(MINIPERL) -f write_buildcustomize.pl
209 !NO!SUBS!
210 fi
211@@ -971,7 +981,7 @@ case "${osname}" in
212 catamount)
213 $spitshell >>$Makefile <<!GROK!THIS!
214 .PHONY: makeppport
215-makeppport: \$(MINIPERL_EXE) \$(CONFIGPM)
216+makeppport: \$(CONFIGPM)
217 -@for f in Makefile.PL PPPort_pm.PL PPPort_xs.PL ppport_h.PL; do \
218 (cd ext/Devel-PPPort && `pwd`/run.sh ../../$(MINIPERL_EXE) -I../../lib \$\$f); \
219 done
220@@ -981,7 +991,7 @@ makeppport: \$(MINIPERL_EXE) \$(CONFIGPM)
221 *)
222 $spitshell >>$Makefile <<'!NO!SUBS!'
223 .PHONY: makeppport
224-makeppport: $(MINIPERL_EXE) $(CONFIGPM) $(nonxs_ext)
225+makeppport: $(CONFIGPM) $(nonxs_ext)
226 $(MINIPERL) mkppport
227
228 !NO!SUBS!
229@@ -991,16 +1001,16 @@ esac
230 $spitshell >>$Makefile <<'!NO!SUBS!'
231
232 .PHONY: preplibrary
233-preplibrary: $(MINIPERL_EXE) $(CONFIGPM) $(PREPLIBRARY_LIBPERL)
234+preplibrary: $(CONFIGPM) $(PREPLIBRARY_LIBPERL)
235
236 $(CONFIGPM_FROM_CONFIG_SH): $(CONFIGPOD)
237
238-$(CONFIGPOD): config.sh $(MINIPERL_EXE) configpm Porting/Glossary lib/Config_git.pl
239+$(CONFIGPOD): config.sh configpm Porting/Glossary lib/Config_git.pl
240 $(MINIPERL) configpm
241
242 unidatafiles $(unidatafiles) pod/perluniprops.pod: uni.data
243
244-uni.data: $(MINIPERL_EXE) $(CONFIGPM) lib/unicore/mktables $(nonxs_ext)
245+uni.data: $(CONFIGPM) lib/unicore/mktables $(nonxs_ext)
246 $(MINIPERL) lib/unicore/mktables -C lib/unicore -P pod -maketest -makelist -p
247 # Commented out so always runs, mktables looks at far more files than we
248 # can in this makefile to decide if needs to run or not
249@@ -1009,12 +1019,12 @@ uni.data: $(MINIPERL_EXE) $(CONFIGPM) lib/unicore/mktables $(nonxs_ext)
250 # $(PERL_EXE) and ext because pod_lib.pl needs Digest::MD5
251 # But also this ensures that all extensions are built before we try to scan
252 # them, which picks up Devel::PPPort's documentation.
253-pod/perltoc.pod: $(perltoc_pod_prereqs) $(PERL_EXE) $(ext) pod/buildtoc
254- $(RUN_PERL) -f pod/buildtoc -q
255+pod/perltoc.pod: $(perltoc_pod_prereqs) $(ext) pod/buildtoc
256+ $(MINIPERL) -f pod/buildtoc -q
257
258 pod/perlapi.pod: pod/perlintern.pod
259
260-pod/perlintern.pod: $(MINIPERL_EXE) autodoc.pl embed.fnc
261+pod/perlintern.pod: autodoc.pl embed.fnc
262 $(MINIPERL) autodoc.pl
263
264 pod/perlmodlib.pod: $(MINIPERL_EXE) pod/perlmodlib.PL MANIFEST
265@@ -1024,7 +1034,7 @@ pod/perl5220delta.pod: pod/perldelta.pod
266 $(RMS) pod/perl5220delta.pod
267 $(LNS) perldelta.pod pod/perl5220delta.pod
268
269-extra.pods: $(MINIPERL_EXE)
270+extra.pods:
271 -@test ! -f extra.pods || rm -f `cat extra.pods`
272 -@rm -f extra.pods
273 -@for x in `grep -l '^=[a-z]' README.* | grep -v README.vms` ; do \
274@@ -1068,8 +1078,7 @@ EOT
275 $spitshell >>$Makefile <<EOT
276
277 install_$name install-$name: \$(INSTALL_DEPENDENCE) installperl all installman
278- \$(RUN_PERL) installperl --destdir=\$(DESTDIR) $flags \$(INSTALLFLAGS) \$(STRIPFLAGS)
279- \$(RUN_PERL) installman --destdir=\$(DESTDIR) $flags
280+ ./hostperl -Ifake_config_library -Ilib -MConfig installperl --destdir=\$(DESTDIR) $flags \$(INSTALLFLAGS) \$(STRIPFLAGS)
281 EOT
282 fi
283
284@@ -1079,11 +1088,7 @@ done
285 if test "X$hostperl" != X; then
286 $spitshell >>$Makefile <<'!NO!SUBS!'
287 install.perl: $(INSTALL_DEPENDENCE) installperl
288- $(HOST_PERL) installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
289- -@test ! -s extras.lst || $(MAKE) extras.install
290-
291-install.man: all installman
292- $(HOST_PERL) installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
293+ ./hostperl -Ifake_config_library -Ilib -MConfig installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
294
295 # XXX Experimental. Hardwired values, but useful for testing.
296 # Eventually Configure could ask for some of these values.
297@@ -1101,24 +1106,8 @@ install.html: all installhtml
298 else
299 $spitshell >>$Makefile <<'!NO!SUBS!'
300 install.perl: $(INSTALL_DEPENDENCE) installperl
301- $(RUN_PERL) installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
302- -@test ! -s extras.lst || PATH="`pwd`:\${PATH}" PERL5LIB="`pwd`/lib" \$(RUN_PERL) -Ilib -MCPAN -e '@ARGV&&install(@ARGV)' `cat extras.lst`
303+ ./hostperl -Ifake_config_library -Ilib -MConfig installperl --destdir=$(DESTDIR) $(INSTALLFLAGS) $(STRIPFLAGS)
304
305-install.man: all installman
306- $(RUN_PERL) installman --destdir=$(DESTDIR) $(INSTALLFLAGS)
307-
308-# XXX Experimental. Hardwired values, but useful for testing.
309-# Eventually Configure could ask for some of these values.
310-install.html: all installhtml
311- -@test -f README.vms && cd vms && $(LNS) ../README.vms README_vms.pod && cd ..
312- $(RUN_PERL) installhtml \
313- --podroot=. --podpath=. --recurse \
314- --htmldir=$(privlib)/html \
315- --htmlroot=$(privlib)/html \
316- --splithead=pod/perlipc \
317- --splititem=pod/perlfunc \
318- --ignore=Porting/Maintainers.pm,Porting/pumpkin.pod,Porting/repository.pod \
319- --verbose
320 !NO!SUBS!
321 fi
322
323@@ -1210,13 +1199,13 @@ manicheck: FORCE
324 #
325 # DynaLoader may be needed for extensions that use Makefile.PL.
326
327-$(DYNALOADER): $(MINIPERL_EXE) lib/buildcustomize.pl preplibrary FORCE $(nonxs_ext)
328+$(DYNALOADER): lib/buildcustomize.pl preplibrary FORCE $(nonxs_ext)
329 $(MINIPERL) make_ext.pl $@ $(MAKE_EXT_ARGS) MAKE="$(MAKE)" LIBPERL_A=$(LIBPERL) LINKTYPE=static $(STATIC_LDFLAGS)
330
331-d_dummy $(dynamic_ext): $(MINIPERL_EXE) lib/buildcustomize.pl preplibrary makeppport $(DYNALOADER) FORCE $(PERLEXPORT) $(LIBPERL)
332+d_dummy $(dynamic_ext): lib/buildcustomize.pl preplibrary makeppport $(DYNALOADER) FORCE $(PERLEXPORT) $(LIBPERL)
333 $(MINIPERL) make_ext.pl $@ $(MAKE_EXT_ARGS) MAKE="$(MAKE)" LIBPERL_A=$(LIBPERL) LINKTYPE=dynamic
334
335-s_dummy $(static_ext): $(MINIPERL_EXE) lib/buildcustomize.pl preplibrary makeppport $(DYNALOADER) FORCE
336+s_dummy $(static_ext): lib/buildcustomize.pl preplibrary makeppport $(DYNALOADER) FORCE
337 $(MINIPERL) make_ext.pl $@ $(MAKE_EXT_ARGS) MAKE="$(MAKE)" LIBPERL_A=$(LIBPERL) LINKTYPE=static $(STATIC_LDFLAGS)
338
339 n_dummy $(nonxs_ext): $(MINIPERL_EXE) lib/buildcustomize.pl preplibrary FORCE
340@@ -1405,14 +1394,14 @@ test_prep_pre: preplibrary utilities $(nonxs_ext)
341
342 case "$targethost" in
343 '') $spitshell >>$Makefile <<'!NO!SUBS!'
344-test_prep test-prep: test_prep_pre $(MINIPERL_EXE) $(unidatafiles) $(PERL_EXE) \
345+test_prep test-prep: test_prep_pre $(unidatafiles) $(PERL_EXE) \
346 $(dynamic_ext) $(TEST_PERL_DLL) runtests $(generated_pods)
347 cd t && (rm -f $(PERL_EXE); $(LNS) ../$(PERL_EXE) $(PERL_EXE))
348
349 !NO!SUBS!
350 ;;
351 *) $spitshell >>$Makefile <<!GROK!THIS!
352-test_prep test-prep: test_prep_pre \$(MINIPERL_EXE) \$(unidatafiles) \$(PERL_EXE) \
353+test_prep test-prep: test_prep_pre \$(unidatafiles) \$(PERL_EXE) \
354 \$(dynamic_ext) \$(TEST_PERL_DLL) runtests \
355 \$(generated_pods)
356 $to libperl.*
357@@ -1465,7 +1454,7 @@ test_prep test-prep: test_prep_pre \$(MINIPERL_EXE) \$(unidatafiles) \$(PERL_EXE
358 esac
359
360 $spitshell >>$Makefile <<'!NO!SUBS!'
361-test_prep_reonly: $(MINIPERL_EXE) $(PERL_EXE) $(dynamic_ext_re) $(TEST_PERL_DLL)
362+test_prep_reonly: $(PERL_EXE) $(dynamic_ext_re) $(TEST_PERL_DLL)
363 $(MINIPERL) make_ext.pl $(dynamic_ext_re) MAKE="$(MAKE)" LIBPERL_A=$(LIBPERL) LINKTYPE=dynamic
364 cd t && (rm -f $(PERL_EXE); $(LNS) ../$(PERL_EXE) $(PERL_EXE))
365 !NO!SUBS!
366@@ -1516,7 +1505,7 @@ $spitshell >>$Makefile <<'!NO!SUBS!'
367
368 # Can't depend on lib/Config.pm because that might be where miniperl
369 # is crashing.
370-minitest: $(MINIPERL_EXE)
371+minitest:
372 -@test -f lib/Config.pm || $(MAKE) lib/Config.pm $(unidatafiles)
373 @echo " "
374 @echo "You may see some irrelevant test failures if you have been unable"
diff --git a/meta/recipes-devtools/perl/perl/Makefile.patch b/meta/recipes-devtools/perl/perl/Makefile.patch
new file mode 100644
index 0000000000..858e2e10fb
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/Makefile.patch
@@ -0,0 +1,58 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3Index: perl-5.14.2/Cross/Makefile
4===================================================================
5--- perl-5.14.2.orig/Cross/Makefile
6+++ perl-5.14.2/Cross/Makefile
7@@ -1,6 +1,7 @@
8 ## Toplevel Makefile for cross-compilation of perl
9
10-export TOPDIR=${shell pwd}
11+override TOPDIR=${shell pwd}
12+export TOPDIR
13 include $(TOPDIR)/config
14 export CFLAGS
15 export SYS=$(ARCH)-$(OS)
16@@ -10,7 +11,7 @@ export OPTIMIZATION = -O2
17
18 export CC = $(CROSS)gcc
19 export CXX = $(CROSS)g++
20-export LD = $(CROSS)ld
21+export LD = $(CC)
22 export STRIP = $(CROSS)strip
23 export AR = $(CROSS)ar
24 export RANLIB = $(CROSS)ranlib
25@@ -32,17 +33,6 @@ CFLAGS+=$(FULL_OPTIMIZATION)
26 all:
27 @echo Please read the README file before doing anything else.
28
29-gen_patch:
30- diff -Bbur ../Makefile.SH Makefile.SH > Makefile.SH.patch
31- diff -Bbur ../installperl installperl > installperl.patch
32-
33-patch:
34- cd .. ; if [ ! -e ./CROSS_PATCHED ] ; then \
35- patch -p1 < Cross/Makefile.SH.patch; \
36- patch -p1 < Cross/installperl.patch ; mv installperl installperl-patched; \
37- sed -e 's/XXSTRIPXX/$(SYS)/' installperl-patched > installperl; \
38- touch CROSS_PATCHED ; fi
39-
40 perl:
41 @echo Perl cross-build directory is $(TOPDIR)
42 @echo Target arch is $(SYS)
43@@ -52,11 +42,11 @@ perl:
44 $(TOPDIR)/generate_config_sh config.sh-$(SYS) > $(TOPDIR)/../config.sh
45 cd $(TOPDIR)/.. ; ./Configure -S ; make depend ; make ; make more
46 cd $(TOPDIR)/.. ; mkdir -p fake_config_library ; cp lib/Config.pm lib/Config_heavy.pl fake_config_library
47- cd $(TOPDIR)/.. ; $(MAKE) more2 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
48- cd $(TOPDIR)/.. ; $(MAKE) more3 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
49- cd $(TOPDIR)/.. ; $(MAKE) more4 "PERLRUN=/usr/bin/perl -I$(TOPDIR)/../fake_config_library -MConfig"
50+ cd $(TOPDIR)/.. ; $(MAKE) more2 "PERLRUN=hostperl -I$(TOPDIR)/../fake_config_library -MConfig"
51+ cd $(TOPDIR)/.. ; $(MAKE) more3 "PERLRUN=hostperl -I$(TOPDIR)/../fake_config_library -MConfig"
52+ cd $(TOPDIR)/.. ; $(MAKE) more4 "PERLRUN=hostperl -I$(TOPDIR)/../fake_config_library -MConfig"
53 cd $(TOPDIR)/.. ; rm -rf install_me_here
54- cd $(TOPDIR)/.. ; make install-strip
55+# cd $(TOPDIR)/.. ; make install-strip
56 cd $(TOPDIR)/.. ; sh -x Cross/warp
57
58
diff --git a/meta/recipes-devtools/perl/perl/config.sh b/meta/recipes-devtools/perl/perl/config.sh
new file mode 100644
index 0000000000..d80f0c0bfa
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/config.sh
@@ -0,0 +1,1222 @@
1#!/bin/sh
2#
3# This file was produced by running the Configure script. It holds all the
4# definitions figured out by Configure. Should you modify one of these values,
5# do not forget to propagate your changes by running "Configure -der". You may
6# instead choose to run each of the .SH files by yourself, or "Configure -S".
7#
8
9# Package name : perl5
10# Source directory : .
11# Configuration time: Thu Jun 18 05:37:27 UTC 2015
12# Configured by : Open Embedded
13# Target system : linux qemux86-64 3.19.5-yocto-standard #1 smp preempt tue jun 16 00:28:17 pdt 2015 x86_64 gnulinux
14
15: Configure command line arguments.
16config_arg0='Configure'
17config_args='-des -Doptimize=-O2 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Open Embedded -Dinstallprefix=@EXECPREFIX@ -Dprefix=@EXECPREFIX@ -Dvendorprefix=@EXECPREFIX@ -Dsiteprefix=@EXECPREFIX@ -Dotherlibdirs=@LIBDIR@/perl/5.22.0 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Ud_dosuid -Dd_semctl_semun -Ui_db -Ui_ndbm -Ui_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=@USRBIN@/less -isr'
18config_argc=28
19config_arg1='-des'
20config_arg2='-Doptimize=-O2'
21config_arg3='-Dmyhostname=localhost'
22config_arg4='-Dperladmin=root@localhost'
23config_arg5='-Dcc=gcc'
24config_arg6='-Dcf_by=Open Embedded'
25config_arg7='-Dinstallprefix=@EXECPREFIX@'
26config_arg8='-Dprefix=@EXECPREFIX@'
27config_arg9='-Dvendorprefix=@EXECPREFIX@'
28config_arg10='-Dsiteprefix=@EXECPREFIX@'
29config_arg11='-Dotherlibdirs=@LIBDIR@/perl/5.22.0'
30config_arg12='-Duseshrplib'
31config_arg13='-Dusethreads'
32config_arg14='-Duseithreads'
33config_arg15='-Duselargefiles'
34config_arg16='-Ud_dosuid'
35config_arg17='-Dd_semctl_semun'
36config_arg18='-Ui_db'
37config_arg19='-Ui_ndbm'
38config_arg20='-Ui_gdbm'
39config_arg21='-Di_shadow'
40config_arg22='-Di_syslog'
41config_arg23='-Dman3ext=3pm'
42config_arg24='-Duseperlio'
43config_arg25='-Dinstallusrbinperl'
44config_arg26='-Ubincompat5005'
45config_arg27='-Uversiononly'
46config_arg28='-Dpager=@USRBIN@/less -isr'
47
48Author=''
49Date=''
50Header=''
51Id=''
52Locker=''
53Log=''
54RCSfile=''
55Revision=''
56Source=''
57State=''
58_a='.a'
59_exe=''
60_o='.o'
61afs='false'
62afsroot='/afs'
63alignbytes='8'
64ansi2knr=''
65aphostname=''
66api_revision='5'
67api_subversion='0'
68api_version='22'
69api_versionstring='5.22.0'
70ar='ar'
71archlib='@LIBDIR@/perl/5.22.0/@ARCH@-thread-multi'
72archlibexp='@STAGINGDIR@@LIBDIR@/perl/5.22.0/@ARCH@-thread-multi'
73archlib_exp='@LIBDIR@/perl/5.22.0/@ARCH@-thread-multi'
74archname64=''
75archname='@ARCH@-thread-multi'
76archobjs=''
77asctime_r_proto='REENTRANT_PROTO_B_SB'
78awk='awk'
79baserev='5.0'
80bash=''
81bin='@USRBIN@'
82bin_ELF='define'
83binexp='@USRBIN@'
84bison='bison'
85byacc='byacc'
86byteorder='12345678'
87c=''
88castflags='0'
89cat='cat'
90cc='gcc'
91cccdlflags='-fPIC'
92ccdlflags='-Wl,-E -Wl,-rpath,@LIBDIR@/perl/5.22.0/@ARCH@-thread-multi/CORE'
93ccflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2'
94ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
95ccname='gcc'
96ccsymbols=''
97ccversion=''
98cf_by='Open Embedded'
99cf_email='Open Embedded@localhost.localdomain'
100cf_time='Thu Jun 18 05:37:27 UTC 2015'
101charbits='8'
102charsize='1'
103chgrp=''
104chmod='chmod'
105chown=''
106clocktype='clock_t'
107comm='comm'
108compress=''
109contains='grep'
110cp='cp'
111cpio=''
112cpp='cpp'
113cpp_stuff='42'
114cppccsymbols=''
115cppflags='-D_REENTRANT -D_GNU_SOURCE -fwrapv -fno-strict-aliasing -pipe'
116cpplast='-'
117cppminus='-'
118cpprun='gcc -E'
119cppstdin='gcc -E'
120crypt_r_proto='REENTRANT_PROTO_B_CCS'
121cryptlib=''
122csh='csh'
123ctermid_r_proto='0'
124ctime_r_proto='REENTRANT_PROTO_B_SB'
125d_Gconvert='gcvt((x),(n),(b))'
126d_PRIEUldbl='define'
127d_PRIFUldbl='define'
128d_PRIGUldbl='define'
129d_PRIXU64='define'
130d_PRId64='define'
131d_PRIeldbl='define'
132d_PRIfldbl='define'
133d_PRIgldbl='define'
134d_PRIi64='define'
135d_PRIo64='define'
136d_PRIu64='define'
137d_PRIx64='define'
138d_SCNfldbl='define'
139d__fwalk='undef'
140d_access='define'
141d_accessx='undef'
142d_acosh='define'
143d_aintl='undef'
144d_alarm='define'
145d_archlib='define'
146d_asctime64='undef'
147d_asctime_r='define'
148d_asinh='define'
149d_atanh='define'
150d_atolf='undef'
151d_atoll='define'
152d_attribute_deprecated='define'
153d_attribute_format='define'
154d_attribute_malloc='define'
155d_attribute_nonnull='define'
156d_attribute_noreturn='define'
157d_attribute_pure='define'
158d_attribute_unused='define'
159d_attribute_warn_unused_result='define'
160d_backtrace='define'
161d_bcmp='define'
162d_bcopy='define'
163d_bsd='undef'
164d_bsdgetpgrp='undef'
165d_bsdsetpgrp='undef'
166d_builtin_choose_expr='define'
167d_builtin_expect='define'
168d_bzero='define'
169d_c99_variadic_macros='define'
170d_casti32='define'
171d_castneg='define'
172d_cbrt='define'
173d_charvspr='undef'
174d_chown='define'
175d_chroot='define'
176d_chsize='undef'
177d_class='undef'
178d_clearenv='define'
179d_closedir='define'
180d_cmsghdr_s='define'
181d_const='define'
182d_copysign='define'
183d_copysignl='define'
184d_cplusplus='undef'
185d_crypt='define'
186d_crypt_r='define'
187d_csh='undef'
188d_ctermid='define'
189d_ctermid_r='undef'
190d_ctime64='undef'
191d_ctime_r='define'
192d_cuserid='define'
193d_dbl_dig='define'
194d_dbminitproto='define'
195d_difftime64='undef'
196d_difftime='define'
197d_dir_dd_fd='undef'
198d_dirfd='define'
199d_dirnamlen='undef'
200d_dladdr='define'
201d_dlerror='define'
202d_dlopen='define'
203d_dlsymun='undef'
204d_dosuid='undef'
205d_drand48_r='define'
206d_drand48proto='define'
207d_dup2='define'
208d_eaccess='define'
209d_endgrent='define'
210d_endgrent_r='undef'
211d_endhent='define'
212d_endhostent_r='undef'
213d_endnent='define'
214d_endnetent_r='undef'
215d_endpent='define'
216d_endprotoent_r='undef'
217d_endpwent='define'
218d_endpwent_r='undef'
219d_endsent='define'
220d_endservent_r='undef'
221d_eofnblk='define'
222d_erf='define'
223d_erfc='define'
224d_eunice='undef'
225d_exp2='define'
226d_expm1='define'
227d_faststdio='undef'
228d_fchdir='define'
229d_fchmod='define'
230d_fchown='define'
231d_fcntl='define'
232d_fcntl_can_lock='define'
233d_fd_macros='define'
234d_fd_set='define'
235d_fdim='define'
236d_fds_bits='define'
237d_fegetround='define'
238d_fgetpos='define'
239d_finite='define'
240d_finitel='define'
241d_flexfnam='define'
242d_flock='define'
243d_flockproto='define'
244d_fma='define'
245d_fmax='define'
246d_fmin='define'
247d_fork='define'
248d_fp_class='undef'
249d_fp_classify='undef'
250d_fp_classl='undef'
251d_fpathconf='define'
252d_fpclass='undef'
253d_fpclassify='define'
254d_fpclassl='undef'
255d_fpgetround='undef'
256d_fpos64_t='undef'
257d_frexpl='define'
258d_fs_data_s='undef'
259d_fseeko='define'
260d_fsetpos='define'
261d_fstatfs='define'
262d_fstatvfs='define'
263d_fsync='define'
264d_ftello='define'
265d_ftime='undef'
266d_futimes='define'
267d_gdbm_ndbm_h_uses_prototypes='undef'
268d_gdbmndbm_h_uses_prototypes='define'
269d_getaddrinfo='define'
270d_getcwd='define'
271d_getespwnam='undef'
272d_getfsstat='undef'
273d_getgrent='define'
274d_getgrent_r='define'
275d_getgrgid_r='define'
276d_getgrnam_r='define'
277d_getgrps='define'
278d_gethbyaddr='define'
279d_gethbyname='define'
280d_gethent='define'
281d_gethname='define'
282d_gethostbyaddr_r='define'
283d_gethostbyname_r='define'
284d_gethostent_r='define'
285d_gethostprotos='define'
286d_getitimer='define'
287d_getlogin='define'
288d_getlogin_r='define'
289d_getmnt='undef'
290d_getmntent='define'
291d_getnameinfo='define'
292d_getnbyaddr='define'
293d_getnbyname='define'
294d_getnent='define'
295d_getnetbyaddr_r='define'
296d_getnetbyname_r='define'
297d_getnetent_r='define'
298d_getnetprotos='define'
299d_getpagsz='define'
300d_getpbyname='define'
301d_getpbynumber='define'
302d_getpent='define'
303d_getpgid='define'
304d_getpgrp2='undef'
305d_getpgrp='define'
306d_getppid='define'
307d_getprior='define'
308d_getprotobyname_r='define'
309d_getprotobynumber_r='define'
310d_getprotoent_r='define'
311d_getprotoprotos='define'
312d_getprpwnam='undef'
313d_getpwent='define'
314d_getpwent_r='define'
315d_getpwnam_r='define'
316d_getpwuid_r='define'
317d_getsbyname='define'
318d_getsbyport='define'
319d_getsent='define'
320d_getservbyname_r='define'
321d_getservbyport_r='define'
322d_getservent_r='define'
323d_getservprotos='define'
324d_getspnam='define'
325d_getspnam_r='define'
326d_gettimeod='define'
327d_gmtime64='undef'
328d_gmtime_r='define'
329d_gnulibc='define'
330d_grpasswd='define'
331d_hasmntopt='define'
332d_htonl='define'
333d_hypot='define'
334d_ilogb='define'
335d_ilogbl='define'
336d_inc_version_list='undef'
337d_index='undef'
338d_inetaton='define'
339d_inetntop='define'
340d_inetpton='define'
341d_int64_t='define'
342d_ip_mreq='define'
343d_ip_mreq_source='define'
344d_ipv6_mreq='define'
345d_ipv6_mreq_source='undef'
346d_isascii='define'
347d_isblank='define'
348d_isfinite='define'
349d_isfinitel='undef'
350d_isinf='define'
351d_isinfl='define'
352d_isless='undef'
353d_isnan='define'
354d_isnanl='define'
355d_isnormal='define'
356d_j0='define'
357d_j0l='define'
358d_killpg='define'
359d_lc_monetary_2008='define'
360d_lchown='define'
361d_ldbl_dig='define'
362d_ldexpl='define'
363d_lgamma='define'
364d_lgamma_r='define'
365d_libm_lib_version='define'
366d_libname_unique='undef'
367d_link='define'
368d_llrint='define'
369d_llrintl='define'
370d_llround='define'
371d_llroundl='define'
372d_localtime64='undef'
373d_localtime_r='define'
374d_localtime_r_needs_tzset='define'
375d_locconv='define'
376d_lockf='define'
377d_log1p='define'
378d_log2='define'
379d_logb='define'
380d_longdbl='define'
381d_longlong='define'
382d_lrint='define'
383d_lrintl='define'
384d_lround='define'
385d_lroundl='define'
386d_lseekproto='define'
387d_lstat='define'
388d_madvise='define'
389d_malloc_good_size='undef'
390d_malloc_size='undef'
391d_mblen='define'
392d_mbstowcs='define'
393d_mbtowc='define'
394d_memchr='define'
395d_memcmp='define'
396d_memcpy='define'
397d_memmove='define'
398d_memset='define'
399d_mkdir='define'
400d_mkdtemp='define'
401d_mkfifo='define'
402d_mkstemp='define'
403d_mkstemps='define'
404d_mktime64='undef'
405d_mktime='define'
406d_mmap='define'
407d_modfl='define'
408d_modfl_pow32_bug='undef'
409d_modflproto='define'
410d_mprotect='define'
411d_msg='define'
412d_msg_ctrunc='define'
413d_msg_dontroute='define'
414d_msg_oob='define'
415d_msg_peek='define'
416d_msg_proxy='define'
417d_msgctl='define'
418d_msgget='define'
419d_msghdr_s='define'
420d_msgrcv='define'
421d_msgsnd='define'
422d_msync='define'
423d_munmap='define'
424d_mymalloc='undef'
425d_nan='define'
426d_ndbm='define'
427d_ndbm_h_uses_prototypes='undef'
428d_nearbyint='define'
429d_nextafter='define'
430d_nexttoward='define'
431d_nice='define'
432d_nl_langinfo='define'
433d_nv_preserves_uv='undef'
434d_nv_zero_is_allbits_zero='define'
435d_off64_t='define'
436d_old_pthread_create_joinable='undef'
437d_oldpthreads='undef'
438d_oldsock='undef'
439d_open3='define'
440d_pathconf='define'
441d_pause='define'
442d_perl_otherlibdirs='define'
443d_phostname='undef'
444d_pipe='define'
445d_poll='define'
446d_portable='define'
447d_prctl='define'
448d_prctl_set_name='define'
449d_printf_format_null='undef'
450d_procselfexe='define'
451d_pseudofork='undef'
452d_pthread_atfork='define'
453d_pthread_attr_setscope='define'
454d_pthread_yield='define'
455d_ptrdiff_t='define'
456d_pwage='undef'
457d_pwchange='undef'
458d_pwclass='undef'
459d_pwcomment='undef'
460d_pwexpire='undef'
461d_pwgecos='define'
462d_pwpasswd='define'
463d_pwquota='undef'
464d_qgcvt='define'
465d_quad='define'
466d_random_r='define'
467d_re_comp='undef'
468d_readdir64_r='define'
469d_readdir='define'
470d_readdir_r='define'
471d_readlink='define'
472d_readv='define'
473d_recvmsg='define'
474d_regcmp='undef'
475d_regcomp='define'
476d_remainder='define'
477d_remquo='define'
478d_rename='define'
479d_rewinddir='define'
480d_rint='define'
481d_rmdir='define'
482d_round='define'
483d_safebcpy='undef'
484d_safemcpy='undef'
485d_sanemcmp='define'
486d_sbrkproto='define'
487d_scalbn='define'
488d_scalbnl='define'
489d_sched_yield='define'
490d_scm_rights='define'
491d_seekdir='define'
492d_select='define'
493d_sem='define'
494d_semctl='define'
495d_semctl_semid_ds='define'
496d_semctl_semun='define'
497d_semget='define'
498d_semop='define'
499d_sendmsg='define'
500d_setegid='define'
501d_seteuid='define'
502d_setgrent='define'
503d_setgrent_r='undef'
504d_setgrps='define'
505d_sethent='define'
506d_sethostent_r='undef'
507d_setitimer='define'
508d_setlinebuf='define'
509d_setlocale='define'
510d_setlocale_r='undef'
511d_setnent='define'
512d_setnetent_r='undef'
513d_setpent='define'
514d_setpgid='define'
515d_setpgrp2='undef'
516d_setpgrp='define'
517d_setprior='define'
518d_setproctitle='undef'
519d_setprotoent_r='undef'
520d_setpwent='define'
521d_setpwent_r='undef'
522d_setregid='define'
523d_setresgid='define'
524d_setresuid='define'
525d_setreuid='define'
526d_setrgid='undef'
527d_setruid='undef'
528d_setsent='define'
529d_setservent_r='undef'
530d_setsid='define'
531d_setvbuf='define'
532d_shm='define'
533d_shmat='define'
534d_shmatprototype='define'
535d_shmctl='define'
536d_shmdt='define'
537d_shmget='define'
538d_sigaction='define'
539d_signbit='define'
540d_sigprocmask='define'
541d_sigsetjmp='define'
542d_sin6_scope_id='define'
543d_sitearch='define'
544d_snprintf='define'
545d_sockaddr_in6='define'
546d_sockaddr_sa_len='undef'
547d_sockatmark='define'
548d_sockatmarkproto='define'
549d_socket='define'
550d_socklen_t='define'
551d_sockpair='define'
552d_socks5_init='undef'
553d_sprintf_returns_strlen='define'
554d_sqrtl='define'
555d_srand48_r='define'
556d_srandom_r='define'
557d_sresgproto='define'
558d_sresuproto='define'
559d_stat='define'
560d_statblks='define'
561d_statfs_f_flags='define'
562d_statfs_s='define'
563d_static_inline='define'
564d_statvfs='define'
565d_stdio_cnt_lval='undef'
566d_stdio_ptr_lval='undef'
567d_stdio_ptr_lval_nochange_cnt='undef'
568d_stdio_ptr_lval_sets_cnt='undef'
569d_stdio_stream_array='undef'
570d_stdiobase='undef'
571d_stdstdio='undef'
572d_strchr='define'
573d_strcoll='define'
574d_strctcpy='define'
575d_strerrm='strerror(e)'
576d_strerror='define'
577d_strerror_r='define'
578d_strftime='define'
579d_strlcat='undef'
580d_strlcpy='undef'
581d_strtod='define'
582d_strtol='define'
583d_strtold='define'
584d_strtoll='define'
585d_strtoq='define'
586d_strtoul='define'
587d_strtoull='define'
588d_strtouq='define'
589d_strxfrm='define'
590d_suidsafe='undef'
591d_symlink='define'
592d_syscall='define'
593d_syscallproto='define'
594d_sysconf='define'
595d_sysernlst=''
596d_syserrlst='define'
597d_system='define'
598d_tcgetpgrp='define'
599d_tcsetpgrp='define'
600d_telldir='define'
601d_telldirproto='define'
602d_tgamma='define'
603d_time='define'
604d_timegm='define'
605d_times='define'
606d_tm_tm_gmtoff='define'
607d_tm_tm_zone='define'
608d_tmpnam_r='define'
609d_trunc='define'
610d_truncate='define'
611d_truncl='define'
612d_ttyname_r='define'
613d_tzname='define'
614d_u32align='define'
615d_ualarm='define'
616d_umask='define'
617d_uname='define'
618d_union_semun='undef'
619d_unordered='undef'
620d_unsetenv='define'
621d_usleep='define'
622d_usleepproto='define'
623d_ustat='define'
624d_vendorarch='define'
625d_vendorbin='define'
626d_vendorlib='define'
627d_vendorscript='define'
628d_vfork='undef'
629d_void_closedir='undef'
630d_voidsig='define'
631d_voidtty=''
632d_volatile='define'
633d_vprintf='define'
634d_vsnprintf='define'
635d_wait4='define'
636d_waitpid='define'
637d_wcscmp='define'
638d_wcstombs='define'
639d_wcsxfrm='define'
640d_wctomb='define'
641d_writev='define'
642d_xenix='undef'
643date='date'
644db_hashtype='u_int32_t'
645db_prefixtype='size_t'
646db_version_major=''
647db_version_minor=''
648db_version_patch=''
649direntrytype='struct dirent'
650dlext='so'
651dlsrc='dl_dlopen.xs'
652doublekind='3'
653doublesize='8'
654drand01='Perl_drand48()'
655drand48_r_proto='REENTRANT_PROTO_I_ST'
656dtrace=''
657dynamic_ext='B Compress/Raw/Bzip2 Compress/Raw/Zlib Cwd Data/Dumper Devel/PPPort Devel/Peek Digest/MD5 Digest/SHA Encode Fcntl File/DosGlob File/Glob Filter/Util/Call Hash/Util Hash/Util/FieldHash I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 Math/BigInt/FastCalc NDBM_File ODBM_File Opcode POSIX PerlIO/encoding PerlIO/mmap PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Tie/Hash/NamedCapture Time/HiRes Time/Piece Unicode/Collate XS/APItest XS/Typemap arybase attributes mro re threads threads/shared'
658eagain='EAGAIN'
659ebcdic='undef'
660echo='echo'
661egrep='egrep'
662emacs=''
663endgrent_r_proto='0'
664endhostent_r_proto='0'
665endnetent_r_proto='0'
666endprotoent_r_proto='0'
667endpwent_r_proto='0'
668endservent_r_proto='0'
669eunicefix=':'
670exe_ext=''
671expr='expr'
672extensions='B Compress/Raw/Bzip2 Compress/Raw/Zlib Cwd Data/Dumper Devel/PPPort Devel/Peek Digest/MD5 Digest/SHA Encode Fcntl File/DosGlob File/Glob Filter/Util/Call Hash/Util Hash/Util/FieldHash I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 Math/BigInt/FastCalc NDBM_File ODBM_File Opcode POSIX PerlIO/encoding PerlIO/mmap PerlIO/scalar PerlIO/via SDBM_File Socket Storable Sys/Hostname Sys/Syslog Tie/Hash/NamedCapture Time/HiRes Time/Piece Unicode/Collate XS/APItest XS/Typemap arybase attributes mro re threads threads/shared Archive/Tar Attribute/Handlers AutoLoader B/Debug CPAN CPAN/Meta CPAN/Meta/Requirements CPAN/Meta/YAML Carp Config/Perl/V Devel/SelfStubber Digest Dumpvalue Env Errno Exporter ExtUtils/CBuilder ExtUtils/Command ExtUtils/Constant ExtUtils/Install ExtUtils/MakeMaker ExtUtils/Manifest ExtUtils/Miniperl ExtUtils/ParseXS File/Fetch File/Find File/Path File/Temp FileCache Filter/Simple Getopt/Long HTTP/Tiny I18N/Collate I18N/LangTags IO/Compress IO/Socket/IP IO/Zlib IPC/Cmd IPC/Open3 JSON/PP Locale/Codes Locale/Maketext Locale/Maketext/Simple Math/BigInt Math/BigRat Math/Complex Memoize Module/CoreList Module/Load Module/Load/Conditional Module/Loaded Module/Metadata NEXT Net/Ping Params/Check Parse/CPAN/Meta Perl/OSType PerlIO/via/QuotedPrint Pod/Checker Pod/Escapes Pod/Functions Pod/Html Pod/Parser Pod/Perldoc Pod/Simple Pod/Usage Safe Search/Dict SelfLoader Term/ANSIColor Term/Cap Term/Complete Term/ReadLine Test Test/Harness Test/Simple Text/Abbrev Text/Balanced Text/ParseWords Text/Tabs Thread/Queue Thread/Semaphore Tie/File Tie/Memoize Tie/RefHash Time/Local Unicode/Normalize XSLoader autodie autouse base bignum constant encoding/warnings experimental if lib libnet parent perlfaq podlators version'
673extern_C='extern'
674extras=''
675fflushNULL='define'
676fflushall='undef'
677find=''
678firstmakefile='makefile'
679flex=''
680fpossize='16'
681fpostype='fpos_t'
682freetype='void'
683from=':'
684full_ar='ar'
685full_csh='csh'
686full_sed='sed'
687gccansipedantic=''
688gccosandvers=''
689gccversion='4.9.2'
690getgrent_r_proto='REENTRANT_PROTO_I_SBWR'
691getgrgid_r_proto='REENTRANT_PROTO_I_TSBWR'
692getgrnam_r_proto='REENTRANT_PROTO_I_CSBWR'
693gethostbyaddr_r_proto='REENTRANT_PROTO_I_TsISBWRE'
694gethostbyname_r_proto='REENTRANT_PROTO_I_CSBWRE'
695gethostent_r_proto='REENTRANT_PROTO_I_SBWRE'
696getlogin_r_proto='REENTRANT_PROTO_I_BW'
697getnetbyaddr_r_proto='REENTRANT_PROTO_I_uISBWRE'
698getnetbyname_r_proto='REENTRANT_PROTO_I_CSBWRE'
699getnetent_r_proto='REENTRANT_PROTO_I_SBWRE'
700getprotobyname_r_proto='REENTRANT_PROTO_I_CSBWR'
701getprotobynumber_r_proto='REENTRANT_PROTO_I_ISBWR'
702getprotoent_r_proto='REENTRANT_PROTO_I_SBWR'
703getpwent_r_proto='REENTRANT_PROTO_I_SBWR'
704getpwnam_r_proto='REENTRANT_PROTO_I_CSBWR'
705getpwuid_r_proto='REENTRANT_PROTO_I_TSBWR'
706getservbyname_r_proto='REENTRANT_PROTO_I_CCSBWR'
707getservbyport_r_proto='REENTRANT_PROTO_I_ICSBWR'
708getservent_r_proto='REENTRANT_PROTO_I_SBWR'
709getspnam_r_proto='REENTRANT_PROTO_I_CSBWR'
710gidformat='"u"'
711gidsign='1'
712gidsize='4'
713gidtype='gid_t'
714glibpth='@EXECPREFIX@/shlib @BASELIBDIR@ @LIBDIR@ @LIBDIR@/386 @BASELIBDIR@386 @EXECPREFIX@/ccs@BASELIBDIR@ @EXECPREFIX@/ucblib @EXECPREFIX@/local@BASELIBDIR@ @BASELIBDIR@ @LIBDIR@ @EXECPREFIX@/local@BASELIBDIR@ '
715gmake='gmake'
716gmtime_r_proto='REENTRANT_PROTO_S_TS'
717gnulibc_version='2.21'
718grep='grep'
719groupcat='cat /etc/group'
720groupstype='gid_t'
721gzip='gzip'
722h_fcntl='false'
723h_sysfile='true'
724hint='recommended'
725hostcat='cat /etc/hosts'
726hostgenerate=''
727hostosname=''
728hostperl=''
729html1dir=' '
730html1direxp=''
731html3dir=' '
732html3direxp=''
733i16size='2'
734i16type='short'
735i32size='4'
736i32type='int'
737i64size='8'
738i64type='long'
739i8size='1'
740i8type='signed char'
741i_arpainet='define'
742i_assert='define'
743i_bfd='define'
744i_bsdioctl=''
745i_crypt='define'
746i_db='undef'
747i_dbm='define'
748i_dirent='define'
749i_dlfcn='define'
750i_execinfo='define'
751i_fcntl='undef'
752i_fenv='define'
753i_float='define'
754i_fp='undef'
755i_fp_class='undef'
756i_gdbm='undef'
757i_gdbm_ndbm='undef'
758i_gdbmndbm='define'
759i_grp='define'
760i_ieeefp='undef'
761i_inttypes='define'
762i_langinfo='define'
763i_libutil='undef'
764i_limits='define'
765i_locale='define'
766i_machcthr='undef'
767i_malloc='define'
768i_mallocmalloc='undef'
769i_math='define'
770i_memory='undef'
771i_mntent='define'
772i_ndbm='undef'
773i_netdb='define'
774i_neterrno='undef'
775i_netinettcp='define'
776i_niin='define'
777i_poll='define'
778i_prot='undef'
779i_pthread='define'
780i_pwd='define'
781i_quadmath='undef'
782i_rpcsvcdbm='undef'
783i_sgtty='undef'
784i_shadow='define'
785i_socks='undef'
786i_stdarg='define'
787i_stdbool='define'
788i_stddef='define'
789i_stdint='define'
790i_stdlib='define'
791i_string='define'
792i_sunmath='undef'
793i_sysaccess='undef'
794i_sysdir='define'
795i_sysfile='define'
796i_sysfilio='undef'
797i_sysin='undef'
798i_sysioctl='define'
799i_syslog='define'
800i_sysmman='define'
801i_sysmode='undef'
802i_sysmount='define'
803i_sysndir='undef'
804i_sysparam='define'
805i_syspoll='define'
806i_sysresrc='define'
807i_syssecrt='undef'
808i_sysselct='define'
809i_syssockio='undef'
810i_sysstat='define'
811i_sysstatfs='define'
812i_sysstatvfs='define'
813i_systime='define'
814i_systimek='undef'
815i_systimes='define'
816i_systypes='define'
817i_sysuio='define'
818i_sysun='define'
819i_sysutsname='define'
820i_sysvfs='define'
821i_syswait='define'
822i_termio='undef'
823i_termios='define'
824i_time='define'
825i_unistd='define'
826i_ustat='define'
827i_utime='define'
828i_values='define'
829i_varargs='undef'
830i_varhdr='stdarg.h'
831i_vfork='undef'
832ignore_versioned_solibs='y'
833inc_version_list=' '
834inc_version_list_init='0'
835incpath=''
836inews=''
837initialinstalllocation='@USRBIN@'
838installarchlib='@LIBDIR@/perl/5.22.0/@ARCH@-thread-multi'
839installbin='@USRBIN@'
840installhtml1dir=''
841installhtml3dir=''
842installman1dir=''
843installman3dir=''
844installprefix='@EXECPREFIX@'
845installprefixexp='@EXECPREFIX@'
846installprivlib='@LIBDIR@/perl/5.22.0'
847installscript='@USRBIN@'
848installsitearch='@LIBDIR@/perl/site_perl/5.22.0/@ARCH@-thread-multi'
849installsitebin='@USRBIN@'
850installsitehtml1dir=''
851installsitehtml3dir=''
852installsitelib='@LIBDIR@/perl/site_perl/5.22.0'
853installsiteman1dir=''
854installsiteman3dir=''
855installsitescript='@USRBIN@'
856installstyle='lib/perl'
857installusrbinperl='define'
858installvendorarch='@LIBDIR@/perl/vendor_perl/5.22.0/@ARCH@-thread-multi'
859installvendorbin='@USRBIN@'
860installvendorhtml1dir=''
861installvendorhtml3dir=''
862installvendorlib='@LIBDIR@/perl/vendor_perl/5.22.0'
863installvendorman1dir=''
864installvendorman3dir=''
865installvendorscript='@USRBIN@'
866intsize='4'
867issymlink='test -h'
868ivdformat='"ld"'
869ivsize='8'
870ivtype='long'
871known_extensions='Archive/Tar Attribute/Handlers AutoLoader B B/Debug CPAN CPAN/Meta CPAN/Meta/Requirements CPAN/Meta/YAML Carp Compress/Raw/Bzip2 Compress/Raw/Zlib Config/Perl/V Cwd DB_File Data/Dumper Devel/PPPort Devel/Peek Devel/SelfStubber Digest Digest/MD5 Digest/SHA Dumpvalue Encode Env Errno Exporter ExtUtils/CBuilder ExtUtils/Command ExtUtils/Constant ExtUtils/Install ExtUtils/MakeMaker ExtUtils/Manifest ExtUtils/Miniperl ExtUtils/ParseXS Fcntl File/DosGlob File/Fetch File/Find File/Glob File/Path File/Temp FileCache Filter/Simple Filter/Util/Call GDBM_File Getopt/Long HTTP/Tiny Hash/Util Hash/Util/FieldHash I18N/Collate I18N/LangTags I18N/Langinfo IO IO/Compress IO/Socket/IP IO/Zlib IPC/Cmd IPC/Open3 IPC/SysV JSON/PP List/Util Locale/Codes Locale/Maketext Locale/Maketext/Simple MIME/Base64 Math/BigInt Math/BigInt/FastCalc Math/BigRat Math/Complex Memoize Module/CoreList Module/Load Module/Load/Conditional Module/Loaded Module/Metadata NDBM_File NEXT Net/Ping ODBM_File Opcode POSIX Params/Check Parse/CPAN/Meta Perl/OSType PerlIO/encoding PerlIO/mmap PerlIO/scalar PerlIO/via PerlIO/via/QuotedPrint Pod/Checker Pod/Escapes Pod/Functions Pod/Html Pod/Parser Pod/Perldoc Pod/Simple Pod/Usage SDBM_File Safe Search/Dict SelfLoader Socket Storable Sys/Hostname Sys/Syslog Term/ANSIColor Term/Cap Term/Complete Term/ReadLine Test Test/Harness Test/Simple Text/Abbrev Text/Balanced Text/ParseWords Text/Tabs Thread/Queue Thread/Semaphore Tie/File Tie/Hash/NamedCapture Tie/Memoize Tie/RefHash Time/HiRes Time/Local Time/Piece Unicode/Collate Unicode/Normalize VMS/DCLsym VMS/Filespec VMS/Stdio Win32 Win32API/File Win32CORE XS/APItest XS/Typemap XSLoader arybase attributes autodie autouse base bignum constant encoding/warnings experimental if lib libnet mro parent perlfaq podlators re threads threads/shared version '
872ksh=''
873ld='gcc'
874ld_can_script='define'
875lddlflags='-shared -O2'
876ldflags=''
877ldflags_uselargefiles=''
878ldlibpthname='LD_LIBRARY_PATH'
879less='less'
880lib_ext='.a'
881libc='libc-2.21.so'
882libperl='libperl.so'
883libpth='@LIBDIR@ @BASELIBDIR@'
884libs='-lpthread -lnsl -lgdbm -ldb -ldl -lm -lcrypt -lutil -lc -lgdbm_compat'
885libsdirs=' @LIBDIR@'
886libsfiles=' libpthread.so libnsl.so libgdbm.so libdb.so libdl.so libm.so libcrypt.so libutil.so libc.so libgdbm_compat.so'
887libsfound=' @LIBDIR@/libpthread.so @LIBDIR@/libnsl.so @LIBDIR@/libgdbm.so @LIBDIR@/libdb.so @LIBDIR@/libdl.so @LIBDIR@/libm.so @LIBDIR@/libcrypt.so @LIBDIR@/libutil.so @LIBDIR@/libc.so @LIBDIR@/libgdbm_compat.so'
888libspath=' @LIBDIR@ @BASELIBDIR@'
889libswanted='cl pthread socket inet nsl nm gdbm dbm db malloc dl ld sun m crypt sec util c cposix posix ucb BSD gdbm_compat'
890libswanted_uselargefiles=''
891line=''
892lint=''
893lkflags=''
894ln='ln'
895lns='/bin/ln -s'
896localtime_r_proto='REENTRANT_PROTO_S_TS'
897locincpth='@EXECPREFIX@/local/include /opt/local/include @EXECPREFIX@/gnu/include /opt/gnu/include @EXECPREFIX@/GNU/include /opt/GNU/include'
898loclibpth='@EXECPREFIX@/local@BASELIBDIR@ /opt/local@BASELIBDIR@ @EXECPREFIX@/gnu@BASELIBDIR@ /opt/gnu@BASELIBDIR@ @EXECPREFIX@/GNU@BASELIBDIR@ /opt/GNU@BASELIBDIR@'
899longdblkind='3'
900longdblsize='16'
901longlongsize='8'
902longsize='8'
903lp=''
904lpr=''
905ls='ls'
906lseeksize='8'
907lseektype='off_t'
908mail=''
909mailx=''
910make='make'
911make_set_make='#'
912mallocobj=''
913mallocsrc=''
914malloctype='void *'
915man1dir=' '
916man1direxp=''
917man1ext='0'
918man3dir=' '
919man3direxp=''
920man3ext='0'
921mips_type=''
922mistrustnm=''
923mkdir='mkdir'
924mmaptype='void *'
925modetype='mode_t'
926more='more'
927multiarch='undef'
928mv=''
929myarchname='@ARCH@'
930mydomain='.localdomain'
931myhostname='localhost'
932myuname='linux qemux86-64 3.19.5-yocto-standard #1 smp preempt tue jun 16 00:28:17 pdt 2015 x86_64 gnulinux '
933n='-n'
934need_va_copy='define'
935netdb_hlen_type='size_t'
936netdb_host_type='char *'
937netdb_name_type='const char *'
938netdb_net_type='in_addr_t'
939nm='nm'
940nm_opt=''
941nm_so_opt='--dynamic'
942nonxs_ext='Archive/Tar Attribute/Handlers AutoLoader B/Debug CPAN CPAN/Meta CPAN/Meta/Requirements CPAN/Meta/YAML Carp Config/Perl/V Devel/SelfStubber Digest Dumpvalue Env Errno Exporter ExtUtils/CBuilder ExtUtils/Command ExtUtils/Constant ExtUtils/Install ExtUtils/MakeMaker ExtUtils/Manifest ExtUtils/Miniperl ExtUtils/ParseXS File/Fetch File/Find File/Path File/Temp FileCache Filter/Simple Getopt/Long HTTP/Tiny I18N/Collate I18N/LangTags IO/Compress IO/Socket/IP IO/Zlib IPC/Cmd IPC/Open3 JSON/PP Locale/Codes Locale/Maketext Locale/Maketext/Simple Math/BigInt Math/BigRat Math/Complex Memoize Module/CoreList Module/Load Module/Load/Conditional Module/Loaded Module/Metadata NEXT Net/Ping Params/Check Parse/CPAN/Meta Perl/OSType PerlIO/via/QuotedPrint Pod/Checker Pod/Escapes Pod/Functions Pod/Html Pod/Parser Pod/Perldoc Pod/Simple Pod/Usage Safe Search/Dict SelfLoader Term/ANSIColor Term/Cap Term/Complete Term/ReadLine Test Test/Harness Test/Simple Text/Abbrev Text/Balanced Text/ParseWords Text/Tabs Thread/Queue Thread/Semaphore Tie/File Tie/Memoize Tie/RefHash Time/Local Unicode/Normalize XSLoader autodie autouse base bignum constant encoding/warnings experimental if lib libnet parent perlfaq podlators version'
943nroff='nroff'
944nvEUformat='"E"'
945nvFUformat='"F"'
946nvGUformat='"G"'
947nv_overflows_integers_at='256.0*256.0*256.0*256.0*256.0*256.0*2.0*2.0*2.0*2.0*2.0'
948nv_preserves_uv_bits='53'
949nveformat='"e"'
950nvfformat='"f"'
951nvgformat='"g"'
952nvsize='8'
953nvtype='double'
954o_nonblock='O_NONBLOCK'
955obj_ext='.o'
956old_pthread_create_joinable=''
957optimize='-O2'
958orderlib='false'
959osname='linux'
960osvers='3.19.5-yocto-standard'
961otherlibdirs='@LIBDIR@/perl/5.22.0'
962package='perl'
963pager='/usr/bin/less -isr'
964passcat='cat /etc/passwd'
965patchlevel='22'
966path_sep=':'
967perl5='@USRBIN@/perl'
968perl='perl'
969perl_patchlevel=''
970perl_static_inline='static __inline__'
971perladmin='root@localhost'
972perllibs='-lpthread -lnsl -ldl -lm -lcrypt -lutil -lc'
973perlpath='@USRBIN@/perl'
974pg='pg'
975phostname=''
976pidtype='pid_t'
977plibpth='@LIBDIR@ @BASELIBDIR@'
978pmake=''
979pr=''
980prefix='@EXECPREFIX@'
981prefixexp='@EXECPREFIX@'
982privlib='@LIBDIR@/perl/5.22.0'
983privlibexp='@LIBDIR@/perl/5.22.0'
984procselfexe='"/proc/self/exe"'
985prototype='define'
986ptrsize='8'
987quadkind='2'
988quadtype='long'
989randbits='48'
990randfunc='Perl_drand48'
991random_r_proto='REENTRANT_PROTO_I_St'
992randseedtype='U32'
993ranlib=':'
994rd_nodata='-1'
995readdir64_r_proto='REENTRANT_PROTO_I_TSR'
996readdir_r_proto='REENTRANT_PROTO_I_TSR'
997revision='5'
998rm='rm'
999rm_try='/bin/rm -f try try a.out .out try.[cho] try..o core core.try* try.core*'
1000rmail=''
1001run=''
1002runnm='false'
1003sGMTIME_max='67768036191676799'
1004sGMTIME_min='-62167219200'
1005sLOCALTIME_max='67768036191676799'
1006sLOCALTIME_min='-62167219200'
1007sPRIEUldbl='"LE"'
1008sPRIFUldbl='"LF"'
1009sPRIGUldbl='"LG"'
1010sPRIXU64='"lX"'
1011sPRId64='"ld"'
1012sPRIeldbl='"Le"'
1013sPRIfldbl='"Lf"'
1014sPRIgldbl='"Lg"'
1015sPRIi64='"li"'
1016sPRIo64='"lo"'
1017sPRIu64='"lu"'
1018sPRIx64='"lx"'
1019sSCNfldbl='"Lf"'
1020sched_yield='sched_yield()'
1021scriptdir='@USRBIN@'
1022scriptdirexp='@USRBIN@'
1023sed='sed'
1024seedfunc='Perl_drand48_init'
1025selectminbits='64'
1026selecttype='fd_set *'
1027sendmail=''
1028setgrent_r_proto='0'
1029sethostent_r_proto='0'
1030setlocale_r_proto='0'
1031setnetent_r_proto='0'
1032setprotoent_r_proto='0'
1033setpwent_r_proto='0'
1034setservent_r_proto='0'
1035sh='/bin/sh'
1036shar=''
1037sharpbang='#!'
1038shmattype='void *'
1039shortsize='2'
1040shrpenv=''
1041shsharp='true'
1042sig_count='65'
1043sig_name='ZERO HUP INT QUIT ILL TRAP ABRT BUS FPE KILL USR1 SEGV USR2 PIPE ALRM TERM STKFLT CHLD CONT STOP TSTP TTIN TTOU URG XCPU XFSZ VTALRM PROF WINCH IO PWR SYS NUM32 NUM33 RTMIN NUM35 NUM36 NUM37 NUM38 NUM39 NUM40 NUM41 NUM42 NUM43 NUM44 NUM45 NUM46 NUM47 NUM48 NUM49 NUM50 NUM51 NUM52 NUM53 NUM54 NUM55 NUM56 NUM57 NUM58 NUM59 NUM60 NUM61 NUM62 NUM63 RTMAX IOT CLD POLL UNUSED '
1044sig_name_init='"ZERO", "HUP", "INT", "QUIT", "ILL", "TRAP", "ABRT", "BUS", "FPE", "KILL", "USR1", "SEGV", "USR2", "PIPE", "ALRM", "TERM", "STKFLT", "CHLD", "CONT", "STOP", "TSTP", "TTIN", "TTOU", "URG", "XCPU", "XFSZ", "VTALRM", "PROF", "WINCH", "IO", "PWR", "SYS", "NUM32", "NUM33", "RTMIN", "NUM35", "NUM36", "NUM37", "NUM38", "NUM39", "NUM40", "NUM41", "NUM42", "NUM43", "NUM44", "NUM45", "NUM46", "NUM47", "NUM48", "NUM49", "NUM50", "NUM51", "NUM52", "NUM53", "NUM54", "NUM55", "NUM56", "NUM57", "NUM58", "NUM59", "NUM60", "NUM61", "NUM62", "NUM63", "RTMAX", "IOT", "CLD", "POLL", "UNUSED", 0'
1045sig_num='0 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 6 17 29 31 '
1046sig_num_init='0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 6, 17, 29, 31, 0'
1047sig_size='69'
1048signal_t='void'
1049sitearch='@LIBDIR@/perl/site_perl/5.22.0/@ARCH@-thread-multi'
1050sitearchexp='@LIBDIR@/perl/site_perl/5.22.0/@ARCH@-thread-multi'
1051sitebin='@USRBIN@'
1052sitebinexp='@USRBIN@'
1053sitehtml1dir=''
1054sitehtml1direxp=''
1055sitehtml3dir=''
1056sitehtml3direxp=''
1057sitelib='@LIBDIR@/perl/site_perl/5.22.0'
1058sitelib_stem='@LIBDIR@/perl/site_perl'
1059sitelibexp='@LIBDIR@/perl/site_perl/5.22.0'
1060siteman1dir=''
1061siteman1direxp=''
1062siteman3dir=''
1063siteman3direxp=''
1064siteprefix='@EXECPREFIX@'
1065siteprefixexp='@EXECPREFIX@'
1066sitescript='@USRBIN@'
1067sitescriptexp='@USRBIN@'
1068sizesize='8'
1069sizetype='size_t'
1070sleep=''
1071smail=''
1072so='so'
1073sockethdr=''
1074socketlib=''
1075socksizetype='socklen_t'
1076sort='sort'
1077spackage='Perl5'
1078spitshell='cat'
1079srand48_r_proto='REENTRANT_PROTO_I_LS'
1080srandom_r_proto='REENTRANT_PROTO_I_TS'
1081src='.'
1082ssizetype='ssize_t'
1083st_ino_sign='1'
1084st_ino_size='8'
1085startperl='#!@USRBIN@/perl'
1086startsh='#!/bin/sh'
1087static_ext=' '
1088stdchar='char'
1089stdio_base='((fp)->_IO_read_base)'
1090stdio_bufsiz='((fp)->_IO_read_end - (fp)->_IO_read_base)'
1091stdio_cnt='((fp)->_IO_read_end - (fp)->_IO_read_ptr)'
1092stdio_filbuf=''
1093stdio_ptr='((fp)->_IO_read_ptr)'
1094stdio_stream_array=''
1095strerror_r_proto='REENTRANT_PROTO_B_IBW'
1096strings='@INCLUDEDIR@/string.h'
1097submit=''
1098subversion='0'
1099sysman='@EXECPREFIX@/share/man/man1'
1100sysroot=''
1101tail=''
1102tar=''
1103targetarch=''
1104targetdir=''
1105targetenv=''
1106targethost=''
1107targetmkdir=''
1108targetport=''
1109targetsh='/bin/sh'
1110tbl=''
1111tee=''
1112test='test'
1113timeincl='@INCLUDEDIR@/sys/time.h @INCLUDEDIR@/time.h '
1114timetype='time_t'
1115tmpnam_r_proto='REENTRANT_PROTO_B_B'
1116to=':'
1117touch='touch'
1118tr='tr'
1119trnl='\n'
1120troff=''
1121ttyname_r_proto='REENTRANT_PROTO_I_IBW'
1122u16size='2'
1123u16type='unsigned short'
1124u32size='4'
1125u32type='unsigned int'
1126u64size='8'
1127u64type='unsigned long'
1128u8size='1'
1129u8type='unsigned char'
1130uidformat='"u"'
1131uidsign='1'
1132uidsize='4'
1133uidtype='uid_t'
1134uname='uname'
1135uniq='uniq'
1136uquadtype='unsigned long'
1137use5005threads='undef'
1138use64bitall='define'
1139use64bitint='define'
1140usecbacktrace='undef'
1141usecrosscompile='define'
1142usedevel='undef'
1143usedl='define'
1144usedtrace='undef'
1145usefaststdio='undef'
1146useithreads='define'
1147usekernprocpathname='undef'
1148uselargefiles='define'
1149uselongdouble='undef'
1150usemallocwrap='define'
1151usemorebits='undef'
1152usemultiplicity='define'
1153usemymalloc='n'
1154usenm='false'
1155usensgetexecutablepath='undef'
1156useopcode='true'
1157useperlio='define'
1158useposix='true'
1159usequadmath='undef'
1160usereentrant='undef'
1161userelocatableinc='undef'
1162useshrplib='true'
1163usesitecustomize='undef'
1164usesocks='undef'
1165usethreads='define'
1166usevendorprefix='define'
1167useversionedarchname='undef'
1168usevfork='false'
1169usrinc='@INCLUDEDIR@'
1170uuname=''
1171uvXUformat='"lX"'
1172uvoformat='"lo"'
1173uvsize='8'
1174uvtype='unsigned long'
1175uvuformat='"lu"'
1176uvxformat='"lx"'
1177vaproto='define'
1178vendorarch='@LIBDIR@/perl/vendor_perl/5.22.0/@ARCH@-thread-multi'
1179vendorarchexp='@LIBDIR@/perl/vendor_perl/5.22.0/@ARCH@-thread-multi'
1180vendorbin='@USRBIN@'
1181vendorbinexp='@USRBIN@'
1182vendorhtml1dir=' '
1183vendorhtml1direxp=''
1184vendorhtml3dir=' '
1185vendorhtml3direxp=''
1186vendorlib='@LIBDIR@/perl/vendor_perl/5.22.0'
1187vendorlib_stem='@LIBDIR@/perl/vendor_perl'
1188vendorlibexp='@LIBDIR@/perl/vendor_perl/5.22.0'
1189vendorman1dir=' '
1190vendorman1direxp=''
1191vendorman3dir=' '
1192vendorman3direxp=''
1193vendorprefix='@EXECPREFIX@'
1194vendorprefixexp='@EXECPREFIX@'
1195vendorscript='@USRBIN@'
1196vendorscriptexp='@USRBIN@'
1197version='5.22.0'
1198version_patchlevel_string='version 22 subversion 0'
1199versiononly='undef'
1200vi=''
1201xlibpth='@LIBDIR@/386 @BASELIBDIR@386'
1202yacc='yacc'
1203yaccflags=''
1204zcat=''
1205zip='zip'
1206PERL_REVISION=5
1207PERL_VERSION=22
1208PERL_SUBVERSION=0
1209PERL_API_REVISION=5
1210PERL_API_VERSION=22
1211PERL_API_SUBVERSION=0
1212PERL_PATCHLEVEL=''
1213PERL_CONFIG_SH=true
1214: Variables propagated from previous config.sh file.
1215libdb_needs_pthread='N'
1216
1217# for Time-HiRes
1218d_clock_nanosleep='define'
1219d_clock_gettime='define'
1220d_clock_getres='define'
1221d_clock='define'
1222d_nanosleep='define'
diff --git a/meta/recipes-devtools/perl/perl/config.sh-32 b/meta/recipes-devtools/perl/perl/config.sh-32
new file mode 100644
index 0000000000..7259a0c6ae
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/config.sh-32
@@ -0,0 +1,38 @@
1alignbytes='4'
2cf_time='Thu Dec 23 03:57:51 UTC 2010'
3cppsymbols='_FILE_OFFSET_BITS=64 _GNU_SOURCE=1 _LARGEFILE64_SOURCE=1 _LARGEFILE_SOURCE=1 _POSIX_C_SOURCE=200809L _POSIX_SOURCE=1 _REENTRANT=1 _XOPEN_SOURCE=700 _XOPEN_SOURCE_EXTENDED=1 __BIGGEST_ALIGNMENT__=16 __CHAR16_TYPE__=short\ unsigned\ int __CHAR32_TYPE__=unsigned\ int __CHAR_BIT__=8 __DBL_DENORM_MIN__=((double)4.94065645841246544177e-324L) __DBL_DIG__=15 __DBL_EPSILON__=((double)2.22044604925031308085e-16L) __DBL_HAS_DENORM__=1 __DBL_HAS_INFINITY__=1 __DBL_HAS_QUIET_NAN__=1 __DBL_MANT_DIG__=53 __DBL_MAX_10_EXP__=308 __DBL_MAX_EXP__=1024 __DBL_MAX__=((double)1.79769313486231570815e+308L) __DBL_MIN_10_EXP__=(-307) __DBL_MIN_EXP__=(-1021) __DBL_MIN__=((double)2.22507385850720138309e-308L) __DEC128_EPSILON__=1E-33DL __DEC128_MANT_DIG__=34 __DEC128_MAX_EXP__=6145 __DEC128_MAX__=9.999999999999999999999999999999999E6144DL __DEC128_MIN_EXP__=(-6142) __DEC128_MIN__=1E-6143DL __DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL __DEC32_EPSILON__=1E-6DF __DEC32_MANT_DIG__=7 __DEC32_MAX_EXP__=97 __DEC32_MAX__=9.999999E96DF __DEC32_MIN_EXP__=(-94) __DEC32_MIN__=1E-95DF __DEC32_SUBNORMAL_MIN__=0.000001E-95DF __DEC64_EPSILON__=1E-15DD __DEC64_MANT_DIG__=16 __DEC64_MAX_EXP__=385 __DEC64_MAX__=9.999999999999999E384DD __DEC64_MIN_EXP__=(-382) __DEC64_MIN__=1E-383DD __DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD __DECIMAL_BID_FORMAT__=1 __DECIMAL_DIG__=21 __DEC_EVAL_METHOD__=2 __ELF__=1 __FINITE_MATH_ONLY__=0 __FLT_DENORM_MIN__=1.40129846432481707092e-45F __FLT_DIG__=6 __FLT_EPSILON__=1.19209289550781250000e-7F __FLT_EVAL_METHOD__=2 __FLT_HAS_DENORM__=1 __FLT_HAS_INFINITY__=1 __FLT_HAS_QUIET_NAN__=1 __FLT_MANT_DIG__=24 __FLT_MAX_10_EXP__=38 __FLT_MAX_EXP__=128 __FLT_MAX__=3.40282346638528859812e+38F __FLT_MIN_10_EXP__=(-37) __FLT_MIN_EXP__=(-125) __FLT_MIN__=1.17549435082228750797e-38F __FLT_RADIX__=2 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 __GLIBC_MINOR__=12 __GLIBC__=2 __GNUC_GNU_INLINE__=1 __GNUC_MINOR__=5 __GNUC_PATCHLEVEL__=1 __GNUC__=4 __GNU_LIBRARY__=6 __GXX_ABI_VERSION=1002 __INT16_C(c)=c __INT16_MAX__=32767 __INT16_TYPE__=short\ int __INT32_C(c)=c __INT32_MAX__=2147483647 __INT32_TYPE__=int __INT64_C(c)=cLL __INT64_MAX__=9223372036854775807LL __INT64_TYPE__=long\ long\ int __INT8_C(c)=c __INT8_MAX__=127 __INT8_TYPE__=signed\ char __INTMAX_C(c)=cLL __INTMAX_MAX__=9223372036854775807LL __INTMAX_TYPE__=long\ long\ int __INTPTR_MAX__=2147483647 __INTPTR_TYPE__=int __INT_FAST16_MAX__=2147483647 __INT_FAST16_TYPE__=int __INT_FAST32_MAX__=2147483647 __INT_FAST32_TYPE__=int __INT_FAST64_MAX__=9223372036854775807LL __INT_FAST64_TYPE__=long\ long\ int __INT_FAST8_MAX__=127 __INT_FAST8_TYPE__=signed\ char __INT_LEAST16_MAX__=32767 __INT_LEAST16_TYPE__=short\ int __INT_LEAST32_MAX__=2147483647 __INT_LEAST32_TYPE__=int __INT_LEAST64_MAX__=9223372036854775807LL __INT_LEAST64_TYPE__=long\ long\ int __INT_LEAST8_MAX__=127 __INT_LEAST8_TYPE__=signed\ char __INT_MAX__=2147483647 __LDBL_DENORM_MIN__=3.64519953188247460253e-4951L __LDBL_DIG__=18 __LDBL_EPSILON__=1.08420217248550443401e-19L __LDBL_HAS_DENORM__=1 __LDBL_HAS_INFINITY__=1 __LDBL_HAS_QUIET_NAN__=1 __LDBL_MANT_DIG__=64 __LDBL_MAX_10_EXP__=4932 __LDBL_MAX_EXP__=16384 __LDBL_MAX__=1.18973149535723176502e+4932L __LDBL_MIN_10_EXP__=(-4931) __LDBL_MIN_EXP__=(-16381) __LDBL_MIN__=3.36210314311209350626e-4932L __LONG_LONG_MAX__=9223372036854775807LL __LONG_MAX__=2147483647L __PRAGMA_REDEFINE_EXTNAME=1 __PTRDIFF_MAX__=2147483647 __PTRDIFF_TYPE__=int __REGISTER_PREFIX__= __SCHAR_MAX__=127 __SHRT_MAX__=32767 __SIG_ATOMIC_MAX__=2147483647 __SIG_ATOMIC_MIN__=(-2147483647\ -\ 1) __SIG_ATOMIC_TYPE__=int __SIZEOF_DOUBLE__=8 __SIZEOF_FLOAT__=4 __SIZEOF_INT__=4 __SIZEOF_LONG_DOUBLE__=12 __SIZEOF_LONG_LONG__=8 __SIZEOF_LONG__=4 __SIZEOF_POINTER__=4 __SIZEOF_PTRDIFF_T__=4 __SIZEOF_SHORT__=2 __SIZEOF_SIZE_T__=4 __SIZEOF_WCHAR_T__=4 __SIZEOF_WINT_T__=4 __SIZE_MAX__=4294967295U __SIZE_TYPE__=unsigned\ int __STDC_HOSTED__=1 __STDC__=1 __UINT16_C(c)=c __UINT16_MAX__=65535 __UINT16_TYPE__=short\ unsigned\ int __UINT32_C(c)=cU __UINT32_MAX__=4294967295U __UINT32_TYPE__=unsigned\ int __UINT64_C(c)=cULL __UINT64_MAX__=18446744073709551615ULL __UINT64_TYPE__=long\ long\ unsigned\ int __UINT8_C(c)=c __UINT8_MAX__=255 __UINT8_TYPE__=unsigned\ char __UINTMAX_C(c)=cULL __UINTMAX_MAX__=18446744073709551615ULL __UINTMAX_TYPE__=long\ long\ unsigned\ int __UINTPTR_MAX__=4294967295U __UINTPTR_TYPE__=unsigned\ int __UINT_FAST16_MAX__=4294967295U __UINT_FAST16_TYPE__=unsigned\ int __UINT_FAST32_MAX__=4294967295U __UINT_FAST32_TYPE__=unsigned\ int __UINT_FAST64_MAX__=18446744073709551615ULL __UINT_FAST64_TYPE__=long\ long\ unsigned\ int __UINT_FAST8_MAX__=255 __UINT_FAST8_TYPE__=unsigned\ char __UINT_LEAST16_MAX__=65535 __UINT_LEAST16_TYPE__=short\ unsigned\ int __UINT_LEAST32_MAX__=4294967295U __UINT_LEAST32_TYPE__=unsigned\ int __UINT_LEAST64_MAX__=18446744073709551615ULL __UINT_LEAST64_TYPE__=long\ long\ unsigned\ int __UINT_LEAST8_MAX__=255 __UINT_LEAST8_TYPE__=unsigned\ char __USER_LABEL_PREFIX__= __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_GNU=1 __USE_LARGEFILE64=1 __USE_LARGEFILE=1 __USE_MISC=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_POSIX2=1 __USE_POSIX=1 __USE_REENTRANT=1 __USE_SVID=1 __USE_UNIX98=1 __USE_XOPEN=1 __USE_XOPEN_EXTENDED=1 __VERSION__="4.5.1" __WCHAR_MAX__=2147483647L __WCHAR_MIN__=(-2147483647L\ -\ 1) __WCHAR_TYPE__=long\ int __WINT_MAX__=4294967295U __WINT_MIN__=0U __WINT_TYPE__=unsigned\ int __gnu_linux__=1 __i386=1 __i386__=1 __i586=1 __i586__=1 __linux=1 __linux__=1 __pentium=1 __pentium__=1 __tune_i586__=1 __tune_pentium__=1 __unix=1 __unix__=1 i386=1 linux=1 unix=1'
4d_nv_preserves_uv='define'
5d_printf_format_null='define'
6d_u32align='undef'
7gidformat='"lu"'
8i32type='long'
9i64type='long long'
10ivsize='4'
11longdblsize='12'
12longsize='4'
13myuname='linux qemux86 2.6.37-rc5-yocto-standard+ #1 preempt mon dec 20 14:21:27 pst 2010 i686 gnulinux '
14need_va_copy='undef'
15netdb_host_type='const void *'
16nv_preserves_uv_bits='32'
17ptrsize='4'
18quadkind='3'
19quadtype='long long'
20sGMTIME_max='2147483647'
21sGMTIME_min='-2147483648'
22sLOCALTIME_max='2147483647'
23sLOCALTIME_min='-2147483648'
24sPRIXU64='"LX"'
25sPRId64='"Ld"'
26sPRIi64='"Li"'
27sPRIo64='"Lo"'
28sPRIu64='"Lu"'
29sPRIx64='"Lx"'
30selectminbits='32'
31sizesize='4'
32u32type='unsigned long'
33u64type='unsigned long long'
34uidformat='"lu"'
35uquadtype='unsigned long long'
36use64bitall='undef'
37use64bitint='undef'
38uvsize='4'
diff --git a/meta/recipes-devtools/perl/perl/config.sh-32-be b/meta/recipes-devtools/perl/perl/config.sh-32-be
new file mode 100644
index 0000000000..a59a9abb5e
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/config.sh-32-be
@@ -0,0 +1 @@
byteorder='4321'
diff --git a/meta/recipes-devtools/perl/perl/config.sh-32-le b/meta/recipes-devtools/perl/perl/config.sh-32-le
new file mode 100644
index 0000000000..10e4226567
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/config.sh-32-le
@@ -0,0 +1 @@
byteorder='1234'
diff --git a/meta/recipes-devtools/perl/perl/config.sh-64 b/meta/recipes-devtools/perl/perl/config.sh-64
new file mode 100644
index 0000000000..6929d3a09d
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/config.sh-64
@@ -0,0 +1,38 @@
1alignbytes='8'
2cf_time='Thu Dec 23 02:06:42 UTC 2010'
3cppsymbols='_FILE_OFFSET_BITS=64 _GNU_SOURCE=1 _LARGEFILE64_SOURCE=1 _LARGEFILE_SOURCE=1 _LP64=1 _POSIX_C_SOURCE=200809L _POSIX_SOURCE=1 _REENTRANT=1 _XOPEN_SOURCE=700 _XOPEN_SOURCE_EXTENDED=1 __BIGGEST_ALIGNMENT__=16 __CHAR16_TYPE__=short\ unsigned\ int __CHAR32_TYPE__=unsigned\ int __CHAR_BIT__=8 __DBL_DENORM_MIN__=((double)4.94065645841246544177e-324L) __DBL_DIG__=15 __DBL_EPSILON__=((double)2.22044604925031308085e-16L) __DBL_HAS_DENORM__=1 __DBL_HAS_INFINITY__=1 __DBL_HAS_QUIET_NAN__=1 __DBL_MANT_DIG__=53 __DBL_MAX_10_EXP__=308 __DBL_MAX_EXP__=1024 __DBL_MAX__=((double)1.79769313486231570815e+308L) __DBL_MIN_10_EXP__=(-307) __DBL_MIN_EXP__=(-1021) __DBL_MIN__=((double)2.22507385850720138309e-308L) __DEC128_EPSILON__=1E-33DL __DEC128_MANT_DIG__=34 __DEC128_MAX_EXP__=6145 __DEC128_MAX__=9.999999999999999999999999999999999E6144DL __DEC128_MIN_EXP__=(-6142) __DEC128_MIN__=1E-6143DL __DEC128_SUBNORMAL_MIN__=0.000000000000000000000000000000001E-6143DL __DEC32_EPSILON__=1E-6DF __DEC32_MANT_DIG__=7 __DEC32_MAX_EXP__=97 __DEC32_MAX__=9.999999E96DF __DEC32_MIN_EXP__=(-94) __DEC32_MIN__=1E-95DF __DEC32_SUBNORMAL_MIN__=0.000001E-95DF __DEC64_EPSILON__=1E-15DD __DEC64_MANT_DIG__=16 __DEC64_MAX_EXP__=385 __DEC64_MAX__=9.999999999999999E384DD __DEC64_MIN_EXP__=(-382) __DEC64_MIN__=1E-383DD __DEC64_SUBNORMAL_MIN__=0.000000000000001E-383DD __DECIMAL_BID_FORMAT__=1 __DECIMAL_DIG__=21 __DEC_EVAL_METHOD__=2 __ELF__=1 __FINITE_MATH_ONLY__=0 __FLT_DENORM_MIN__=1.40129846432481707092e-45F __FLT_DIG__=6 __FLT_EPSILON__=1.19209289550781250000e-7F __FLT_EVAL_METHOD__=0 __FLT_HAS_DENORM__=1 __FLT_HAS_INFINITY__=1 __FLT_HAS_QUIET_NAN__=1 __FLT_MANT_DIG__=24 __FLT_MAX_10_EXP__=38 __FLT_MAX_EXP__=128 __FLT_MAX__=3.40282346638528859812e+38F __FLT_MIN_10_EXP__=(-37) __FLT_MIN_EXP__=(-125) __FLT_MIN__=1.17549435082228750797e-38F __FLT_RADIX__=2 __GCC_HAVE_DWARF2_CFI_ASM=1 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_1=1 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_2=1 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_4=1 __GCC_HAVE_SYNC_COMPARE_AND_SWAP_8=1 __GLIBC_MINOR__=12 __GLIBC__=2 __GNUC_GNU_INLINE__=1 __GNUC_MINOR__=5 __GNUC_PATCHLEVEL__=1 __GNUC__=4 __GNU_LIBRARY__=6 __GXX_ABI_VERSION=1002 __INT16_C(c)=c __INT16_MAX__=32767 __INT16_TYPE__=short\ int __INT32_C(c)=c __INT32_MAX__=2147483647 __INT32_TYPE__=int __INT64_C(c)=cL __INT64_MAX__=9223372036854775807L __INT64_TYPE__=long\ int __INT8_C(c)=c __INT8_MAX__=127 __INT8_TYPE__=signed\ char __INTMAX_C(c)=cL __INTMAX_MAX__=9223372036854775807L __INTMAX_TYPE__=long\ int __INTPTR_MAX__=9223372036854775807L __INTPTR_TYPE__=long\ int __INT_FAST16_MAX__=9223372036854775807L __INT_FAST16_TYPE__=long\ int __INT_FAST32_MAX__=9223372036854775807L __INT_FAST32_TYPE__=long\ int __INT_FAST64_MAX__=9223372036854775807L __INT_FAST64_TYPE__=long\ int __INT_FAST8_MAX__=127 __INT_FAST8_TYPE__=signed\ char __INT_LEAST16_MAX__=32767 __INT_LEAST16_TYPE__=short\ int __INT_LEAST32_MAX__=2147483647 __INT_LEAST32_TYPE__=int __INT_LEAST64_MAX__=9223372036854775807L __INT_LEAST64_TYPE__=long\ int __INT_LEAST8_MAX__=127 __INT_LEAST8_TYPE__=signed\ char __INT_MAX__=2147483647 __LDBL_DENORM_MIN__=3.64519953188247460253e-4951L __LDBL_DIG__=18 __LDBL_EPSILON__=1.08420217248550443401e-19L __LDBL_HAS_DENORM__=1 __LDBL_HAS_INFINITY__=1 __LDBL_HAS_QUIET_NAN__=1 __LDBL_MANT_DIG__=64 __LDBL_MAX_10_EXP__=4932 __LDBL_MAX_EXP__=16384 __LDBL_MAX__=1.18973149535723176502e+4932L __LDBL_MIN_10_EXP__=(-4931) __LDBL_MIN_EXP__=(-16381) __LDBL_MIN__=3.36210314311209350626e-4932L __LONG_LONG_MAX__=9223372036854775807LL __LONG_MAX__=9223372036854775807L __LP64__=1 __MMX__=1 __PRAGMA_REDEFINE_EXTNAME=1 __PTRDIFF_MAX__=9223372036854775807L __PTRDIFF_TYPE__=long\ int __REGISTER_PREFIX__= __SCHAR_MAX__=127 __SHRT_MAX__=32767 __SIG_ATOMIC_MAX__=2147483647 __SIG_ATOMIC_MIN__=(-2147483647\ -\ 1) __SIG_ATOMIC_TYPE__=int __SIZEOF_DOUBLE__=8 __SIZEOF_FLOAT__=4 __SIZEOF_INT__=4 __SIZEOF_LONG_DOUBLE__=16 __SIZEOF_LONG_LONG__=8 __SIZEOF_LONG__=8 __SIZEOF_POINTER__=8 __SIZEOF_PTRDIFF_T__=8 __SIZEOF_SHORT__=2 __SIZEOF_SIZE_T__=8 __SIZEOF_WCHAR_T__=4 __SIZEOF_WINT_T__=4 __SIZE_MAX__=18446744073709551615UL __SIZE_TYPE__=long\ unsigned\ int __SSE2_MATH__=1 __SSE2__=1 __SSE_MATH__=1 __SSE__=1 __STDC_HOSTED__=1 __STDC__=1 __UINT16_C(c)=c __UINT16_MAX__=65535 __UINT16_TYPE__=short\ unsigned\ int __UINT32_C(c)=cU __UINT32_MAX__=4294967295U __UINT32_TYPE__=unsigned\ int __UINT64_C(c)=cUL __UINT64_MAX__=18446744073709551615UL __UINT64_TYPE__=long\ unsigned\ int __UINT8_C(c)=c __UINT8_MAX__=255 __UINT8_TYPE__=unsigned\ char __UINTMAX_C(c)=cUL __UINTMAX_MAX__=18446744073709551615UL __UINTMAX_TYPE__=long\ unsigned\ int __UINTPTR_MAX__=18446744073709551615UL __UINTPTR_TYPE__=long\ unsigned\ int __UINT_FAST16_MAX__=18446744073709551615UL __UINT_FAST16_TYPE__=long\ unsigned\ int __UINT_FAST32_MAX__=18446744073709551615UL __UINT_FAST32_TYPE__=long\ unsigned\ int __UINT_FAST64_MAX__=18446744073709551615UL __UINT_FAST64_TYPE__=long\ unsigned\ int __UINT_FAST8_MAX__=255 __UINT_FAST8_TYPE__=unsigned\ char __UINT_LEAST16_MAX__=65535 __UINT_LEAST16_TYPE__=short\ unsigned\ int __UINT_LEAST32_MAX__=4294967295U __UINT_LEAST32_TYPE__=unsigned\ int __UINT_LEAST64_MAX__=18446744073709551615UL __UINT_LEAST64_TYPE__=long\ unsigned\ int __UINT_LEAST8_MAX__=255 __UINT_LEAST8_TYPE__=unsigned\ char __USER_LABEL_PREFIX__= __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_GNU=1 __USE_LARGEFILE64=1 __USE_LARGEFILE=1 __USE_MISC=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_POSIX2=1 __USE_POSIX=1 __USE_REENTRANT=1 __USE_SVID=1 __USE_UNIX98=1 __USE_XOPEN=1 __USE_XOPEN_EXTENDED=1 __VERSION__="4.5.1" __WCHAR_MAX__=2147483647 __WCHAR_MIN__=(-2147483647\ -\ 1) __WCHAR_TYPE__=int __WINT_MAX__=4294967295U __WINT_MIN__=0U __WINT_TYPE__=unsigned\ int __amd64=1 __amd64__=1 __gnu_linux__=1 __k8=1 __k8__=1 __linux=1 __linux__=1 __unix=1 __unix__=1 __x86_64=1 __x86_64__=1 linux=1 unix=1'
4d_nv_preserves_uv='undef'
5d_printf_format_null='undef'
6d_u32align='define'
7gidformat='"u"'
8i32type='int'
9i64type='long'
10ivsize='8'
11longdblsize='16'
12longsize='8'
13myuname='linux qemux86-64 2.6.37-rc5-yocto-standard+ #1 smp preempt mon dec 20 17:19:50 pst 2010 x86_64 gnulinux '
14need_va_copy='define'
15netdb_host_type='char *'
16nv_preserves_uv_bits='53'
17ptrsize='8'
18quadkind='2'
19quadtype='long'
20sGMTIME_max='67768036191676799'
21sGMTIME_min='-62167219200'
22sLOCALTIME_max='67768036191676799'
23sLOCALTIME_min='-62167219200'
24sPRIXU64='"lX"'
25sPRId64='"ld"'
26sPRIi64='"li"'
27sPRIo64='"lo"'
28sPRIu64='"lu"'
29sPRIx64='"lx"'
30selectminbits='64'
31sizesize='8'
32u32type='unsigned int'
33u64type='unsigned long'
34uidformat='"u"'
35uquadtype='unsigned long'
36use64bitall='define'
37use64bitint='define'
38uvsize='8'
diff --git a/meta/recipes-devtools/perl/perl/config.sh-64-be b/meta/recipes-devtools/perl/perl/config.sh-64-be
new file mode 100644
index 0000000000..c08ce3c431
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/config.sh-64-be
@@ -0,0 +1 @@
byteorder='87654321'
diff --git a/meta/recipes-devtools/perl/perl/config.sh-64-le b/meta/recipes-devtools/perl/perl/config.sh-64-le
new file mode 100644
index 0000000000..277d2a9bee
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/config.sh-64-le
@@ -0,0 +1 @@
byteorder='12345678'
diff --git a/meta/recipes-devtools/perl/perl/cross-generate_uudmap.patch b/meta/recipes-devtools/perl/perl/cross-generate_uudmap.patch
new file mode 100644
index 0000000000..a00ad61d90
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/cross-generate_uudmap.patch
@@ -0,0 +1,15 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3Index: perl-5.14.2/Makefile.SH
4===================================================================
5--- perl-5.14.2.orig/Makefile.SH
6+++ perl-5.14.2/Makefile.SH
7@@ -622,7 +622,7 @@ bitcount.h: generate_uudmap$(HOST_EXE_EX
8 $(RUN) ./generate_uudmap$(HOST_EXE_EXT) uudmap.h bitcount.h
9
10 generate_uudmap$(HOST_EXE_EXT): generate_uudmap$(OBJ_EXT)
11- $(CC) -o generate_uudmap$(EXE_EXT) $(LDFLAGS) generate_uudmap$(OBJ_EXT) $(libs)
12+ $(BUILD_CC) -o generate_uudmap$(EXE_EXT) generate_uudmap.c
13
14 miniperlmain$(OBJ_EXT): miniperlmain.c patchlevel.h
15 $(CCCMD) $(PLDLFLAGS) $*.c
diff --git a/meta/recipes-devtools/perl/perl/debian/cpan-missing-site-dirs.diff b/meta/recipes-devtools/perl/perl/debian/cpan-missing-site-dirs.diff
new file mode 100644
index 0000000000..a63b968317
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/cpan-missing-site-dirs.diff
@@ -0,0 +1,62 @@
1From d33d46963035ef726144dc66be2ae9c00aec0333 Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Tue, 16 Oct 2012 23:07:56 +0300
4Subject: Fix CPAN::FirstTime defaults with nonexisting site dirs if a parent
5 is writable
6
7The site directories do not exist on a typical Debian system. The build
8systems will create them when necessary, so there's no need for a prompt
9suggesting local::lib if the first existing parent directory is writable.
10
11Also, writability of the core directories is not interesting as we
12explicitly tell CPAN not to touch those with INSTALLDIRS=site.
13
14Bug-Debian: http://bugs.debian.org/688842
15Patch-Name: debian/cpan-missing-site-dirs.diff
16---
17 cpan/CPAN/lib/CPAN/FirstTime.pm | 31 +++++++++++++++++++++++++++----
18 1 file changed, 27 insertions(+), 4 deletions(-)
19
20diff --git a/cpan/CPAN/lib/CPAN/FirstTime.pm b/cpan/CPAN/lib/CPAN/FirstTime.pm
21index 33054cd..7b0becf 100644
22--- a/cpan/CPAN/lib/CPAN/FirstTime.pm
23+++ b/cpan/CPAN/lib/CPAN/FirstTime.pm
24@@ -2057,11 +2057,34 @@ sub _print_urllist {
25 };
26 }
27
28+# Debian modification: return true if this directory
29+# or the first existing one upwards is writable
30+sub _can_write_to_this_or_parent {
31+ my ($dir) = @_;
32+ my @parts = File::Spec->splitdir($dir);
33+ while (@parts) {
34+ my $cur = File::Spec->catdir(@parts);
35+ return 1 if -w $cur;
36+ return 0 if -e _;
37+ pop @parts;
38+ }
39+ return 0;
40+}
41+
42+# Debian specific modification: the site directories don't necessarily
43+# exist on the system, but the build systems create them when necessary,
44+# so return true if the first existing directory upwards is writable
45+#
46+# Furthermore, on Debian, only test the site directories
47+# (installsite*, expanded to /usr/local/{share,lib}/perl),
48+# not the core ones
49+# (install*lib, expanded to /usr/{share,lib}/perl).
50+# We pass INSTALLDIRS=site by default to keep CPAN from touching
51+# the core directories.
52+
53 sub _can_write_to_libdirs {
54- return -w $Config{installprivlib}
55- && -w $Config{installarchlib}
56- && -w $Config{installsitelib}
57- && -w $Config{installsitearch}
58+ return _can_write_to_this_or_parent($Config{installsitelib})
59+ && _can_write_to_this_or_parent($Config{installsitearch})
60 }
61
62 sub _using_installbase {
diff --git a/meta/recipes-devtools/perl/perl/debian/cpan_definstalldirs.diff b/meta/recipes-devtools/perl/perl/debian/cpan_definstalldirs.diff
new file mode 100644
index 0000000000..6b5295045c
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/cpan_definstalldirs.diff
@@ -0,0 +1,37 @@
1From 5ff1f21484aab68efe321ff4ba5d35928f72af96 Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Tue, 8 Mar 2005 19:30:38 +1100
4Subject: Provide a sensible INSTALLDIRS default for modules installed from
5 CPAN.
6
7Some modules which are included in core set INSTALLDIRS => 'perl'
8explicitly in Makefile.PL or Build.PL. This makes sense for the normal @INC
9ordering, but not ours.
10
11Patch-Name: debian/cpan_definstalldirs.diff
12---
13 cpan/CPAN/lib/CPAN/FirstTime.pm | 4 ++--
14 1 file changed, 2 insertions(+), 2 deletions(-)
15
16diff --git a/cpan/CPAN/lib/CPAN/FirstTime.pm b/cpan/CPAN/lib/CPAN/FirstTime.pm
17index 918e009..33054cd 100644
18--- a/cpan/CPAN/lib/CPAN/FirstTime.pm
19+++ b/cpan/CPAN/lib/CPAN/FirstTime.pm
20@@ -1024,7 +1024,7 @@ sub init {
21 my_prompt_loop(prefer_installer => 'MB', $matcher, 'MB|EUMM|RAND');
22
23 if (!$matcher or 'makepl_arg make_arg' =~ /$matcher/) {
24- my_dflt_prompt(makepl_arg => "", $matcher);
25+ my_dflt_prompt(makepl_arg => "INSTALLDIRS=site", $matcher);
26 my_dflt_prompt(make_arg => "", $matcher);
27 if ( $CPAN::Config->{makepl_arg} =~ /LIBS=|INC=/ ) {
28 $CPAN::Frontend->mywarn(
29@@ -1056,7 +1056,7 @@ sub init {
30 my_dflt_prompt(make_install_arg => $CPAN::Config->{make_arg} || "",
31 $matcher);
32
33- my_dflt_prompt(mbuildpl_arg => "", $matcher);
34+ my_dflt_prompt(mbuildpl_arg => "--installdirs site", $matcher);
35 my_dflt_prompt(mbuild_arg => "", $matcher);
36
37 if (exists $CPAN::HandleConfig::keys{mbuild_install_build_command}
diff --git a/meta/recipes-devtools/perl/perl/debian/db_file_ver.diff b/meta/recipes-devtools/perl/perl/debian/db_file_ver.diff
new file mode 100644
index 0000000000..280bf11706
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/db_file_ver.diff
@@ -0,0 +1,34 @@
1From 01421f8a80d5c623959695ba2b8167f30112d333 Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Fri, 16 Dec 2005 01:32:14 +1100
4Subject: Remove overly restrictive DB_File version check.
5
6Bug-Debian: http://bugs.debian.org/340047
7
8Package dependencies ensure the correct library is linked at run-time.
9
10Patch-Name: debian/db_file_ver.diff
11---
12 cpan/DB_File/version.c | 2 ++
13 1 file changed, 2 insertions(+)
14
15diff --git a/cpan/DB_File/version.c b/cpan/DB_File/version.c
16index e01f6f6..544e6ee 100644
17--- a/cpan/DB_File/version.c
18+++ b/cpan/DB_File/version.c
19@@ -48,6 +48,7 @@ __getBerkeleyDBInfo()
20
21 (void)db_version(&Major, &Minor, &Patch) ;
22
23+#ifndef DEBIAN
24 /* Check that the versions of db.h and libdb.a are the same */
25 if (Major != DB_VERSION_MAJOR || Minor != DB_VERSION_MINOR )
26 /* || Patch != DB_VERSION_PATCH) */
27@@ -55,6 +56,7 @@ __getBerkeleyDBInfo()
28 croak("\nDB_File was build with libdb version %d.%d.%d,\nbut you are attempting to run it with libdb version %d.%d.%d\n",
29 DB_VERSION_MAJOR, DB_VERSION_MINOR, DB_VERSION_PATCH,
30 Major, Minor, Patch) ;
31+#endif /* DEBIAN */
32
33 /* check that libdb is recent enough -- we need 2.3.4 or greater */
34 if (Major == 2 && (Minor < 3 || (Minor == 3 && Patch < 4)))
diff --git a/meta/recipes-devtools/perl/perl/debian/deprecate-with-apt.diff b/meta/recipes-devtools/perl/perl/debian/deprecate-with-apt.diff
new file mode 100644
index 0000000000..601ee4c304
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/deprecate-with-apt.diff
@@ -0,0 +1,56 @@
1From def4aa3817f98aae625e601b791ef068276f05d5 Mon Sep 17 00:00:00 2001
2From: Dominic Hargreaves <dom@earth.li>
3Date: Mon, 17 May 2010 13:23:07 +0300
4Subject: Point users to Debian packages of deprecated core modules
5
6Bug-Debian: http://bugs.debian.org/747628
7
8Several modules are being deprecated with perl 5.20.
9To get a clean transition, perl/perl-modules is going to recommend the
10separate Debian packages of these for one release cycle so that they will be
11pulled in by default on upgrades. This is taking place for perl 5.20/jessie.
12
13However, on systems configured to ignore recommendations the deprecation
14warnings will still be useful, so modify them slightly to point to the
15separate packages instead.
16
17Patch-Name: debian/deprecate-with-apt.diff
18---
19 lib/deprecate.pm | 15 ++++++++++++++-
20 1 file changed, 14 insertions(+), 1 deletion(-)
21
22diff --git a/lib/deprecate.pm b/lib/deprecate.pm
23index 47bc112..b0c61df 100644
24--- a/lib/deprecate.pm
25+++ b/lib/deprecate.pm
26@@ -7,6 +7,13 @@ our $VERSION = 0.03;
27 our %Config;
28 unless (%Config) { require Config; *Config = \%Config::Config; }
29
30+# Debian-specific change: recommend the separate Debian packages of
31+# deprecated modules where available
32+
33+our %DEBIAN_PACKAGES = (
34+ # None for the perl 5.22 cycle
35+);
36+
37 # This isn't a public API. It's internal to code maintained by the perl-porters
38 # If you would like it to be a public API, please send a patch with
39 # documentation and tests. Until then, it may change without warning.
40@@ -58,9 +65,15 @@ EOM
41 if (defined $callers_bitmask
42 && (vec($callers_bitmask, $warnings::Offsets{deprecated}, 1)
43 || vec($callers_bitmask, $warnings::Offsets{all}, 1))) {
44- warn <<"EOM";
45+ if (my $deb = $DEBIAN_PACKAGES{$package}) {
46+ warn <<"EOM";
47+$package will be removed from the Perl core distribution in the next major release. Please install the separate $deb package. It is being used at $call_file, line $call_line.
48+EOM
49+ } else {
50+ warn <<"EOM";
51 $package will be removed from the Perl core distribution in the next major release. Please install it from CPAN. It is being used at $call_file, line $call_line.
52 EOM
53+ }
54 }
55 }
56 }
diff --git a/meta/recipes-devtools/perl/perl/debian/doc_info.diff b/meta/recipes-devtools/perl/perl/debian/doc_info.diff
new file mode 100644
index 0000000000..fbea2ee228
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/doc_info.diff
@@ -0,0 +1,35 @@
1From e18f81e69c55d698abd293e71063d6b6b275cc07 Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Fri, 18 Mar 2005 22:22:25 +1100
4Subject: Replace generic man(1) instructions with Debian-specific information.
5
6Indicate that the user needs to install the perl-doc package.
7
8Patch-Name: debian/doc_info.diff
9---
10 pod/perl.pod | 12 ++++++++++--
11 1 file changed, 10 insertions(+), 2 deletions(-)
12
13diff --git a/pod/perl.pod b/pod/perl.pod
14index 364e957..f97e103 100644
15--- a/pod/perl.pod
16+++ b/pod/perl.pod
17@@ -291,8 +291,16 @@ aux c2ph h2ph h2xs perlbug pl2pm pod2html pod2man splain xsubpp
18
19 =for buildtoc __END__
20
21-On a Unix-like system, these documentation files will usually also be
22-available as manpages for use with the F<man> program.
23+On Debian systems, you need to install the B<perl-doc> package which
24+contains the majority of the standard Perl documentation and the
25+F<perldoc> program.
26+
27+Extensive additional documentation for Perl modules is available, both
28+those distributed with Perl and third-party modules which are packaged
29+or locally installed.
30+
31+You should be able to view Perl's documentation with your man(1)
32+program or perldoc(1).
33
34 Some documentation is not available as man pages, so if a
35 cross-reference is not found by man, try it with L<perldoc>. Perldoc can
diff --git a/meta/recipes-devtools/perl/perl/debian/enc2xs_inc.diff b/meta/recipes-devtools/perl/perl/debian/enc2xs_inc.diff
new file mode 100644
index 0000000000..e074b20fdf
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/enc2xs_inc.diff
@@ -0,0 +1,70 @@
1From 7fe59a3d0601c6d8634eae4f99dae3024cd02a92 Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Tue, 8 Mar 2005 19:30:38 +1100
4Subject: Tweak enc2xs to follow symlinks and ignore missing @INC directories.
5
6Bug-Debian: http://bugs.debian.org/290336
7
8- ignore missing directories,
9- follow symlinks (/usr/share/perl/5.8 -> 5.8.4).
10- filter "." out when running "enc2xs -C", it's unnecessary and causes
11 issues with follow => 1 (see #603686 and [rt.cpan.org #64585])
12
13Patch-Name: debian/enc2xs_inc.diff
14---
15 cpan/Encode/bin/enc2xs | 8 ++++----
16 t/porting/customized.t | 3 +++
17 2 files changed, 7 insertions(+), 4 deletions(-)
18
19diff --git a/cpan/Encode/bin/enc2xs b/cpan/Encode/bin/enc2xs
20index 19f2b2b..4d64e38 100644
21--- a/cpan/Encode/bin/enc2xs
22+++ b/cpan/Encode/bin/enc2xs
23@@ -944,11 +944,11 @@ use vars qw(
24 sub find_e2x{
25 eval { require File::Find; };
26 my (@inc, %e2x_dir);
27- for my $inc (@INC){
28+ for my $inc (grep -d, @INC){
29 push @inc, $inc unless $inc eq '.'; #skip current dir
30 }
31 File::Find::find(
32- sub {
33+ { wanted => sub {
34 my ($dev,$ino,$mode,$nlink,$uid,$gid,$rdev,$size,
35 $atime,$mtime,$ctime,$blksize,$blocks)
36 = lstat($_) or return;
37@@ -958,7 +958,7 @@ sub find_e2x{
38 $e2x_dir{$File::Find::dir} ||= $mtime;
39 }
40 return;
41- }, @inc);
42+ }, follow => 1}, @inc);
43 warn join("\n", keys %e2x_dir), "\n";
44 for my $d (sort {$e2x_dir{$a} <=> $e2x_dir{$b}} keys %e2x_dir){
45 $_E2X = $d;
46@@ -1025,7 +1025,7 @@ sub make_configlocal_pm {
47 $LocalMod{$enc} ||= $mod;
48 }
49 };
50- File::Find::find({wanted => $wanted}, @INC);
51+ File::Find::find({wanted => $wanted, follow => 1}, grep -d && !/^\./, @INC);
52 $_ModLines = "";
53 for my $enc ( sort keys %LocalMod ) {
54 $_ModLines .=
55diff --git a/t/porting/customized.t b/t/porting/customized.t
56index 45fcafb..3bd6adb 100644
57--- a/t/porting/customized.t
58+++ b/t/porting/customized.t
59@@ -101,8 +101,11 @@ foreach my $module ( sort keys %Modules ) {
60 print $data_fh join(' ', $module, $file, $id), "\n";
61 next;
62 }
63+SKIP: {
64+ skip("$file modified for Debian", 1) if $file eq 'cpan/Encode/bin/enc2xs';
65 my $should_be = $customised{ $module }->{ $file };
66 is( $id, $should_be, "SHA for $file matches stashed SHA" );
67+}
68 }
69 }
70
diff --git a/meta/recipes-devtools/perl/perl/debian/errno_ver.diff b/meta/recipes-devtools/perl/perl/debian/errno_ver.diff
new file mode 100644
index 0000000000..bcb59c69e0
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/errno_ver.diff
@@ -0,0 +1,35 @@
1From 827eee225897c35ec97194a5971bf4bfcf250748 Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Fri, 16 Dec 2005 01:32:14 +1100
4Subject: Remove Errno version check due to upgrade problems with long-running
5 processes.
6
7Bug-Debian: http://bugs.debian.org/343351
8
9Remove version check which can cause problems for long running
10processes embedding perl when upgrading to a newer version,
11compatible, but built on a different machine.
12
13Patch-Name: debian/errno_ver.diff
14---
15 ext/Errno/Errno_pm.PL | 5 -----
16 1 file changed, 5 deletions(-)
17
18diff --git a/ext/Errno/Errno_pm.PL b/ext/Errno/Errno_pm.PL
19index c6bfa06..519e5c7 100644
20--- a/ext/Errno/Errno_pm.PL
21+++ b/ext/Errno/Errno_pm.PL
22@@ -278,13 +278,8 @@ sub write_errno_pm {
23
24 package Errno;
25 require Exporter;
26-use Config;
27 use strict;
28
29-"\$Config{'archname'}-\$Config{'osvers'}" eq
30-"$archname-$Config{'osvers'}" or
31- die "Errno architecture ($archname-$Config{'osvers'}) does not match executable architecture (\$Config{'archname'}-\$Config{'osvers'})";
32-
33 our \$VERSION = "$VERSION";
34 \$VERSION = eval \$VERSION;
35 our \@ISA = 'Exporter';
diff --git a/meta/recipes-devtools/perl/perl/debian/extutils_set_libperl_path.diff b/meta/recipes-devtools/perl/perl/debian/extutils_set_libperl_path.diff
new file mode 100644
index 0000000000..adb4bd9910
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/extutils_set_libperl_path.diff
@@ -0,0 +1,37 @@
1From 431275078b0490d2e092442d9582be06bb95b354 Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Sat, 10 May 2014 23:34:14 +0300
4Subject: EU:MM: set location of libperl.a under /usr/lib
5
6The Debian packaging moves libperl.a a couple of levels up from the
7CORE directory to match other static libraries.
8
9Patch-Name: debian/extutils_set_libperl_path.diff
10---
11 cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | 2 +-
12 pp.c | 2 +-
13 2 files changed, 2 insertions(+), 2 deletions(-)
14
15diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
16index 5f1b87f..570a631 100644
17--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
18+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
19@@ -2505,7 +2505,7 @@ MAP_PRELIBS = $Config{perllibs} $Config{cryptlib}
20 ($lperl = $libperl) =~ s/\$\(A\)/$self->{LIB_EXT}/;
21 }
22 unless ($libperl && -f $lperl) { # Ilya's code...
23- my $dir = $self->{PERL_SRC} || "$self->{PERL_ARCHLIB}/CORE";
24+ my $dir = $self->{PERL_SRC} || "$self->{PERL_ARCHLIB}/../..";
25 $dir = "$self->{PERL_ARCHLIB}/.." if $self->{UNINSTALLED_PERL};
26 $libperl ||= "libperl$self->{LIB_EXT}";
27 $libperl = "$dir/$libperl";
28diff --git a/pp.c b/pp.c
29index 42f156a..77c1279 100644
30--- a/pp.c
31+++ b/pp.c
32@@ -1,4 +1,4 @@
33-/* pp.c
34+ /* pp.c
35 *
36 * Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000,
37 * 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008 by Larry Wall and others
diff --git a/meta/recipes-devtools/perl/perl/debian/fakeroot.diff b/meta/recipes-devtools/perl/perl/debian/fakeroot.diff
new file mode 100644
index 0000000000..ec461cfe52
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/fakeroot.diff
@@ -0,0 +1,42 @@
1From 27ae7b18078d801a2c943aa6de2f7e9808177251 Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Fri, 18 Mar 2005 22:22:25 +1100
4Subject: Postpone LD_LIBRARY_PATH evaluation to the binary targets.
5
6Modify the setting of LD_LIBRARY_PATH to append pre-existing values at the
7time the rule is evaluated rather than when the Makefile is created.
8
9This is required when building packages with dpkg-buildpackage and fakeroot,
10since fakeroot (which now sets LD_LIBRARY_PATH) is not used for the "build"
11rule where the Makefile is created, but is for the clean/binary* targets.
12
13Patch-Name: debian/fakeroot.diff
14---
15 Makefile.SH | 7 ++-----
16 1 file changed, 2 insertions(+), 5 deletions(-)
17
18diff --git a/Makefile.SH b/Makefile.SH
19index 034d812..04dd7d5 100755
20--- a/Makefile.SH
21+++ b/Makefile.SH
22@@ -39,10 +39,7 @@ case "$useshrplib" in
23 true)
24 # Prefix all runs of 'miniperl' and 'perl' with
25 # $ldlibpth so that ./perl finds *this* shared libperl.
26- case "$LD_LIBRARY_PATH" in
27- '') ldlibpth="LD_LIBRARY_PATH=` quote "$pwd" `" ;;
28- *) ldlibpth="LD_LIBRARY_PATH=` quote "$pwd" `:` quote "$LD_LIBRARY_PATH" `" ;;
29- esac
30+ ldlibpth="LD_LIBRARY_PATH=` quote "$pwd" `"'$${LD_LIBRARY_PATH:+:}$$LD_LIBRARY_PATH'
31
32 pldlflags="$cccdlflags"
33 static_ldflags=''
34@@ -113,7 +110,7 @@ true)
35 ;;
36 esac
37 case "$ldlibpthname" in
38- '') ;;
39+ ''|LD_LIBRARY_PATH) ;;
40 *)
41 case "$osname" in
42 os2)
diff --git a/meta/recipes-devtools/perl/perl/debian/find_html2text.diff b/meta/recipes-devtools/perl/perl/debian/find_html2text.diff
new file mode 100644
index 0000000000..d319e7518b
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/find_html2text.diff
@@ -0,0 +1,35 @@
1From c81dbdedff9e9b4fb75ac028aa718838c0292d2f Mon Sep 17 00:00:00 2001
2From: Andreas Marschke <andreas.marschke@googlemail.com>
3Date: Sat, 17 Sep 2011 11:38:42 +0100
4Subject: Configure CPAN::Distribution with correct name of html2text
5
6Bug-Debian: http://bugs.debian.org/640479
7Patch-Name: debian/find_html2text.diff
8
9If you use cpan from Debian you usually wind up trying to read online
10documentation through it. Unfortunately cpan can't find the
11html2text.pl script even though it is installed using the Debian
12package 'html2text'.
13
14Please see the attached patch for a quick fix of this issue.
15
16[Maintainer's note: html2text in Debian is not the same implementation
17as the html2text.pl which is expected, but should provide similar
18functionality].
19---
20 cpan/CPAN/lib/CPAN/Distribution.pm | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23diff --git a/cpan/CPAN/lib/CPAN/Distribution.pm b/cpan/CPAN/lib/CPAN/Distribution.pm
24index 092b781..5c2bae1 100644
25--- a/cpan/CPAN/lib/CPAN/Distribution.pm
26+++ b/cpan/CPAN/lib/CPAN/Distribution.pm
27@@ -4099,7 +4099,7 @@ sub _display_url {
28 if $CPAN::DEBUG;
29
30 # should we define it in the config instead?
31- my $html_converter = "html2text.pl";
32+ my $html_converter = "html2text";
33
34 my $web_browser = $CPAN::Config->{'lynx'} || undef;
35 my $web_browser_out = $web_browser
diff --git a/meta/recipes-devtools/perl/perl/debian/fixes/document_makemaker_ccflags.diff b/meta/recipes-devtools/perl/perl/debian/fixes/document_makemaker_ccflags.diff
new file mode 100644
index 0000000000..61a92712e7
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/fixes/document_makemaker_ccflags.diff
@@ -0,0 +1,31 @@
1From 9faf6dcc3a5c4154484d812eb3cc3dd78b35563b Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Mon, 30 May 2011 22:54:24 +0300
4Subject: Document that CCFLAGS should include $Config{ccflags}
5
6Bug: https://rt.cpan.org/Public/Bug/Display.html?id=68613
7Bug-Debian: http://bugs.debian.org/628522
8
9Compiling XS extensions without $Config{ccflags} can break the
10binary interface on some platforms.
11
12Patch-Name: fixes/document_makemaker_ccflags.diff
13---
14 cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm | 4 ++++
15 1 file changed, 4 insertions(+)
16
17diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm
18index fe95b27..90403e8 100644
19--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm
20+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm
21@@ -1774,6 +1774,10 @@ currently used by MakeMaker but may be handy in Makefile.PLs.
22 String that will be included in the compiler call command line between
23 the arguments INC and OPTIMIZE.
24
25+The default value is taken from $Config{ccflags}. When overriding
26+CCFLAGS, make sure to include the $Config{ccflags} settings to avoid
27+binary incompatibilities.
28+
29 =item CONFIG
30
31 Arrayref. E.g. [qw(archname manext)] defines ARCHNAME & MANEXT from
diff --git a/meta/recipes-devtools/perl/perl/debian/fixes/memoize_storable_nstore.diff b/meta/recipes-devtools/perl/perl/debian/fixes/memoize_storable_nstore.diff
new file mode 100644
index 0000000000..525f962c1a
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/fixes/memoize_storable_nstore.diff
@@ -0,0 +1,110 @@
1From 55d430eb02fc116581847304ca20321687978269 Mon Sep 17 00:00:00 2001
2From: Jonathan Nieder <jrnieder@gmail.com>
3Date: Fri, 27 Jul 2012 10:35:07 -0500
4Subject: Memoize::Storable: respect 'nstore' option not respected
5MIME-Version: 1.0
6Content-Type: text/plain; charset=UTF-8
7Content-Transfer-Encoding: 8bit
8
9Memoize(3perl) says:
10
11 tie my %cache => 'Memoize::Storable', $filename, 'nstore';
12 memoize 'function', SCALAR_CACHE => [HASH => \%cache];
13
14 Include the ‘nstore’ option to have the "Storable" database
15 written in ‘network order’. (See Storable for more details
16 about this.)
17
18In fact the "nstore" option does no such thing. Option parsing looks
19like this:
20
21 @options{@_} = ();
22
23$self->{OPTIONS}{'nstore'} is accordingly set to undef. Later
24Memoize::Storable checks if the option is true, and since undef is
25not true, the "else" branch is always taken.
26
27 if ($self->{OPTIONS}{'nstore'}) {
28 Storable::nstore($self->{H}, $self->{FILENAME});
29 } else {
30 Storable::store($self->{H}, $self->{FILENAME});
31 }
32
33Correcting the condition to (exists $self->{OPTIONS}{'nstore'}) fixes
34it.
35
36Noticed because git-svn, which uses the 'nstore' option for its
37on-disk caches, was producing
38
39 Byte order is not compatible at ../../lib/Storable.pm
40
41when run using a perl with a different integer size (and hence
42byteorder).
43
44Reported by Tim Retout (RT#77790)
45
46Bug-Debian: http://bugs.debian.org/587650
47Bug: https://rt.cpan.org/Public/Bug/Display.html?id=77790
48Forwarded: https://rt.cpan.org/Public/Bug/Display.html?id=77790
49Patch-Name: fixes/memoize_storable_nstore.diff
50---
51 cpan/Memoize/Memoize/Storable.pm | 2 +-
52 cpan/Memoize/t/tie_storable.t | 24 ++++++++++++++++++++----
53 2 files changed, 21 insertions(+), 5 deletions(-)
54
55diff --git a/cpan/Memoize/Memoize/Storable.pm b/cpan/Memoize/Memoize/Storable.pm
56index 1314797..87876f2 100644
57--- a/cpan/Memoize/Memoize/Storable.pm
58+++ b/cpan/Memoize/Memoize/Storable.pm
59@@ -55,7 +55,7 @@ sub DESTROY {
60 require Carp if $Verbose;
61 my $self= shift;
62 print STDERR "Memoize::Storable::DESTROY(@_)\n" if $Verbose;
63- if ($self->{OPTIONS}{'nstore'}) {
64+ if (exists $self->{OPTIONS}{'nstore'}) {
65 Storable::nstore($self->{H}, $self->{FILENAME});
66 } else {
67 Storable::store($self->{H}, $self->{FILENAME});
68diff --git a/cpan/Memoize/t/tie_storable.t b/cpan/Memoize/t/tie_storable.t
69index de3b8dc..a624238 100644
70--- a/cpan/Memoize/t/tie_storable.t
71+++ b/cpan/Memoize/t/tie_storable.t
72@@ -31,18 +31,34 @@ if ($@) {
73 exit 0;
74 }
75
76-print "1..4\n";
77+print "1..9\n";
78
79 $file = "storable$$";
80 1 while unlink $file;
81 tryout('Memoize::Storable', $file, 1); # Test 1..4
82 1 while unlink $file;
83+tryout('Memoize::Storable', $file, 5, 'nstore'); # Test 5..8
84+assert_netorder($file, 9); # Test 9
85+1 while unlink $file;
86+
87+
88+sub assert_netorder {
89+ my ($file, $testno) = @_;
90+
91+ my $netorder = Storable::file_magic($file)->{'netorder'};
92+ print ($netorder ? "ok $testno\n" : "not ok $testno\n");
93+}
94
95 sub tryout {
96- my ($tiepack, $file, $testno) = @_;
97+ my ($tiepack, $file, $testno, $option) = @_;
98
99- tie my %cache => $tiepack, $file
100- or die $!;
101+ if (defined $option) {
102+ tie my %cache => $tiepack, $file, $option
103+ or die $!;
104+ } else {
105+ tie my %cache => $tiepack, $file
106+ or die $!;
107+ }
108
109 memoize 'c5',
110 SCALAR_CACHE => [HASH => \%cache],
diff --git a/meta/recipes-devtools/perl/perl/debian/fixes/net_smtp_docs.diff b/meta/recipes-devtools/perl/perl/debian/fixes/net_smtp_docs.diff
new file mode 100644
index 0000000000..3c31972c64
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/fixes/net_smtp_docs.diff
@@ -0,0 +1,25 @@
1From fa085fedd9c406edcd4a1a256c025d5ff7f6c6de Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Thu, 20 Sep 2007 19:47:14 +1000
4Subject: Document the Net::SMTP 'Port' option
5
6Bug-Debian: http://bugs.debian.org/100195
7Bug: http://rt.cpan.org/Public/Bug/Display.html?id=36038
8
9Patch-Name: fixes/net_smtp_docs.diff
10---
11 cpan/libnet/lib/Net/SMTP.pm | 1 +
12 1 file changed, 1 insertion(+)
13
14diff --git a/cpan/libnet/lib/Net/SMTP.pm b/cpan/libnet/lib/Net/SMTP.pm
15index afd017a..6ae7d9e 100644
16--- a/cpan/libnet/lib/Net/SMTP.pm
17+++ b/cpan/libnet/lib/Net/SMTP.pm
18@@ -738,6 +738,7 @@ Net::SMTP will attempt to extract the address from the value passed.
19
20 B<Debug> - Enable debugging information
21
22+B<Port> - Select a port on the remote host to connect to (default is 25)
23
24 Example:
25
diff --git a/meta/recipes-devtools/perl/perl/debian/fixes/perl-Cnn.diff b/meta/recipes-devtools/perl/perl/debian/fixes/perl-Cnn.diff
new file mode 100644
index 0000000000..b5564fdbc0
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/fixes/perl-Cnn.diff
@@ -0,0 +1,73 @@
1From 0ecf83f259db09cb38cb37c9b22e72be185afa8f Mon Sep 17 00:00:00 2001
2From: Hugo van der Sanden <hv@crypt.org>
3Date: Thu, 11 Jun 2015 12:25:40 +0100
4Subject: fix -Cnn parsing
5
6Commit 22ff313068 for [perl #123814] inadvertently changed the logic when
7parsing a numeric parameter to the -C option, such that the successfully
8parsed number was not saved as the option value if it parsed to the end
9of the argument.
10
11Bug: https://rt.perl.org/Ticket/Display.html?id=125381
12Bug-Debian: https://bugs.debian.org/788636
13Origin: upstream, http://perl5.git.perl.org/perl.git/commit/89d84ff965
14Patch-Name: fixes/perl-Cnn.diff
15---
16 t/run/switchC.t | 7 ++++++-
17 util.c | 17 ++++++++---------
18 2 files changed, 14 insertions(+), 10 deletions(-)
19
20diff --git a/t/run/switchC.t b/t/run/switchC.t
21index f6aa868..4f63c3b 100644
22--- a/t/run/switchC.t
23+++ b/t/run/switchC.t
24@@ -11,7 +11,7 @@ BEGIN {
25 skip_all_if_miniperl('-C and $ENV{PERL_UNICODE} are disabled on miniperl');
26 }
27
28-plan(tests => 13);
29+plan(tests => 14);
30
31 my $r;
32
33@@ -25,6 +25,11 @@ $r = runperl( switches => [ '-CO', '-w' ],
34 stderr => 1 );
35 like( $r, qr/^$b(?:\r?\n)?$/s, '-CO: no warning on UTF-8 output' );
36
37+$r = runperl( switches => [ '-C2', '-w' ],
38+ prog => 'print chr(256)',
39+ stderr => 1 );
40+like( $r, qr/^$b(?:\r?\n)?$/s, '-C2: no warning on UTF-8 output' );
41+
42 SKIP: {
43 if (exists $ENV{PERL_UNICODE} &&
44 ($ENV{PERL_UNICODE} eq "" || $ENV{PERL_UNICODE} =~ /[SO]/)) {
45diff --git a/util.c b/util.c
46index 8cf62f5..ee23314 100644
47--- a/util.c
48+++ b/util.c
49@@ -4420,16 +4420,15 @@ Perl_parse_unicode_opts(pTHX_ const char **popt)
50 if (isDIGIT(*p)) {
51 const char* endptr;
52 UV uv;
53- if (grok_atoUV(p, &uv, &endptr)
54- && uv <= U32_MAX
55- && (p = endptr)
56- && *p && *p != '\n' && *p != '\r'
57- ) {
58+ if (grok_atoUV(p, &uv, &endptr) && uv <= U32_MAX) {
59 opt = (U32)uv;
60- if (isSPACE(*p))
61- goto the_end_of_the_opts_parser;
62- else
63- Perl_croak(aTHX_ "Unknown Unicode option letter '%c'", *p);
64+ p = endptr;
65+ if (p && *p && *p != '\n' && *p != '\r') {
66+ if (isSPACE(*p))
67+ goto the_end_of_the_opts_parser;
68+ else
69+ Perl_croak(aTHX_ "Unknown Unicode option letter '%c'", *p);
70+ }
71 }
72 }
73 else {
diff --git a/meta/recipes-devtools/perl/perl/debian/fixes/pod_man_reproducible_date.diff b/meta/recipes-devtools/perl/perl/debian/fixes/pod_man_reproducible_date.diff
new file mode 100644
index 0000000000..7c9ca867a9
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/fixes/pod_man_reproducible_date.diff
@@ -0,0 +1,170 @@
1From 9057adc106d6bbef53c9e706523cd94f1a7a08d4 Mon Sep 17 00:00:00 2001
2From: Russ Allbery <rra@debian.org>
3Date: Sat, 30 Aug 2014 15:10:41 -0700
4Subject: Support POD_MAN_DATE in Pod::Man for the left-hand footer
5
6Honor the environment variable POD_MAN_DATE and use its contents, if
7set, as the value of the left-hand footer if the date option is not
8set, overriding the timestamp of the input file. This is primarily
9useful to ensure reproducible builds of the same output file given the
10same souce and Pod::Man version, even when file timestamps may not be
11consistent. Thanks, Niko Tyni.
12
13Bug-Debian: http://bugs.debian.org/759405
14Origin: upstream
15Patch-Name: fixes/pod_man_reproducible_date.diff
16---
17 cpan/podlators/lib/Pod/Man.pm | 69 +++++++++++++++++++++++++++++++-----------
18 cpan/podlators/t/devise-date.t | 29 +++++++++++++-----
19 2 files changed, 72 insertions(+), 26 deletions(-)
20
21diff --git a/cpan/podlators/lib/Pod/Man.pm b/cpan/podlators/lib/Pod/Man.pm
22index 72ca9ff..0536662 100644
23--- a/cpan/podlators/lib/Pod/Man.pm
24+++ b/cpan/podlators/lib/Pod/Man.pm
25@@ -876,25 +876,42 @@ sub devise_title {
26 }
27
28 # Determine the modification date and return that, properly formatted in ISO
29-# format. If we can't get the modification date of the input, instead use the
30-# current time. Pod::Simple returns a completely unuseful stringified file
31-# handle as the source_filename for input from a file handle, so we have to
32-# deal with that as well.
33+# format.
34+#
35+# If POD_MAN_DATE is set, that overrides anything else. This can be used for
36+# reproducible generation of the same file even if the input file timestamps
37+# are unpredictable or the POD coms from standard input.
38+#
39+# Otherwise, use the modification date of the input if we can stat it. Be
40+# aware that Pod::Simple returns the stringification of the file handle as
41+# source_filename for input from a file handle, so we'll stat some random ref
42+# string in that case. If that fails, instead use the current time.
43+#
44+# $self - Pod::Man object, used to get the source file
45+#
46+# Returns: YYYY-MM-DD date suitable for the left-hand footer
47 sub devise_date {
48 my ($self) = @_;
49+
50+ # If POD_MAN_DATE is set, always use it.
51+ if ($ENV{POD_MAN_DATE}) {
52+ return $ENV{POD_MAN_DATE};
53+ }
54+
55+ # Otherwise, get the input filename and try to stat it. If that fails,
56+ # use the current time.
57 my $input = $self->source_filename;
58 my $time;
59 if ($input) {
60- $time = (stat $input)[9] || time;
61+ $time = (stat($input))[9] || time();
62 } else {
63- $time = time;
64+ $time = time();
65 }
66
67- # Can't use POSIX::strftime(), which uses Fcntl, because MakeMaker
68- # uses this and it has to work in the core which can't load dynamic
69- # libraries.
70- my ($year, $month, $day) = (localtime $time)[5,4,3];
71- return sprintf ("%04d-%02d-%02d", $year + 1900, $month + 1, $day);
72+ # Can't use POSIX::strftime(), which uses Fcntl, because MakeMaker uses
73+ # this and it has to work in the core which can't load dynamic libraries.
74+ my ($year, $month, $day) = (localtime($time))[5,4,3];
75+ return sprintf("%04d-%02d-%02d", $year + 1900, $month + 1, $day);
76 }
77
78 # Print out the preamble and the title. The meaning of the arguments to .TH
79@@ -1632,6 +1649,15 @@ argument.
80 Sets the centered page header to use instead of "User Contributed Perl
81 Documentation".
82
83+=item date
84+
85+Sets the left-hand footer. If this option is not set, the contents of the
86+environment variable POD_MAN_DATE, if set, will be used. Failing that,
87+the modification date of the input file will be used, or the current time
88+if stat() can't find that file (which will be the case if the input is
89+from C<STDIN>). If obtained from the file modification date or the
90+current time, he date will be formatted as C<YYYY-MM-DD>.
91+
92 =item errors
93
94 How to report errors. C<die> says to throw an exception on any POD
95@@ -1642,13 +1668,6 @@ POD errors entirely, as much as possible.
96
97 The default is C<pod>.
98
99-=item date
100-
101-Sets the left-hand footer. By default, the modification date of the input
102-file will be used, or the current date if stat() can't find that file (the
103-case if the input is from C<STDIN>), and the date will be formatted as
104-C<YYYY-MM-DD>.
105-
106 =item fixed
107
108 The fixed-width font to use for verbatim text and code. Defaults to
109@@ -1810,6 +1829,20 @@ option was set to C<die>.
110
111 =back
112
113+=head1 ENVIRONMENT
114+
115+=over 4
116+
117+=item POD_MAN_DATE
118+
119+If set, this will be used as the value of the left-hand footer unless the
120+C<date> option is explicitly set, overriding the timestamp of the input
121+file or the current time. This is primarily useful to ensure reproducible
122+builds of the same output file given the same souce and Pod::Man version,
123+even when file timestamps may not be consistent.
124+
125+=back
126+
127 =head1 BUGS
128
129 Encoding handling assumes that PerlIO is available and does not work
130diff --git a/cpan/podlators/t/devise-date.t b/cpan/podlators/t/devise-date.t
131index 3cce9f5..c610dd9 100644
132--- a/cpan/podlators/t/devise-date.t
133+++ b/cpan/podlators/t/devise-date.t
134@@ -1,15 +1,28 @@
135-#!/usr/bin/perl -w
136-
137-# In order for MakeMaker to build in the core, nothing can use
138-# Fcntl which includes POSIX. devise_date()'s use of strftime()
139-# was replaced. This tests that it's identical.
140+#!/usr/bin/perl
141+#
142+# In order for MakeMaker to build in the core, nothing can use Fcntl which
143+# includes POSIX. devise_date()'s use of strftime() was replaced. This tests
144+# that it's identical. It also tests special handling of the POD_MAN_DATE
145+# environment variable.
146
147+use 5.006;
148 use strict;
149-
150-use Test::More tests => 1;
151+use warnings;
152
153 use Pod::Man;
154 use POSIX qw(strftime);
155
156+use Test::More tests => 2;
157+
158+# Check that the results of device_date matches strftime. There is no input
159+# file name, so this will use the current time.
160 my $parser = Pod::Man->new;
161-is $parser->devise_date, strftime("%Y-%m-%d", localtime);
162+is(
163+ $parser->devise_date,
164+ strftime('%Y-%m-%d', localtime()),
165+ 'devise_date matches strftime'
166+);
167+
168+# Set the override environment variable and ensure that it's honored.
169+local $ENV{POD_MAN_DATE} = '2014-01-01';
170+is($parser->devise_date, '2014-01-01', 'devise_date honors POD_MAN_DATE');
diff --git a/meta/recipes-devtools/perl/perl/debian/fixes/podman-empty-date.diff b/meta/recipes-devtools/perl/perl/debian/fixes/podman-empty-date.diff
new file mode 100644
index 0000000000..7ebbf9c602
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/fixes/podman-empty-date.diff
@@ -0,0 +1,51 @@
1From 183bb4af7ad862a2cf31d0dcb3dd45c100f76776 Mon Sep 17 00:00:00 2001
2From: Russ Allbery <rra@cpan.org>
3Date: Wed, 15 Apr 2015 22:21:25 -0700
4Subject: Support an empty POD_MAN_DATE environment variable
5
6One may want to set this to an empty string. Handle that correctly.
7
8(backported to Perl 5.20.2 by Niko Tyni <ntyni@debian.org>)
9
10Origin: upstream, http://git.eyrie.org/?p=perl/podlators.git;a=commitdiff;h=e0e9fcb53e8fc954b2b1955385eea18c27f869af
11Bug-Debian: https://bugs.debian.org/780259
12Patch-Name: fixes/podman-empty-date.diff
13---
14 cpan/podlators/lib/Pod/Man.pm | 2 +-
15 cpan/podlators/t/devise-date.t | 6 +++++-
16 2 files changed, 6 insertions(+), 2 deletions(-)
17
18diff --git a/cpan/podlators/lib/Pod/Man.pm b/cpan/podlators/lib/Pod/Man.pm
19index 365892e..8997a15 100644
20--- a/cpan/podlators/lib/Pod/Man.pm
21+++ b/cpan/podlators/lib/Pod/Man.pm
22@@ -894,7 +894,7 @@ sub devise_date {
23 my ($self) = @_;
24
25 # If POD_MAN_DATE is set, always use it.
26- if ($ENV{POD_MAN_DATE}) {
27+ if (defined($ENV{POD_MAN_DATE})) {
28 return $ENV{POD_MAN_DATE};
29 }
30
31diff --git a/cpan/podlators/t/devise-date.t b/cpan/podlators/t/devise-date.t
32index 9da9d1b..27271d9 100644
33--- a/cpan/podlators/t/devise-date.t
34+++ b/cpan/podlators/t/devise-date.t
35@@ -12,7 +12,7 @@ use warnings;
36 use Pod::Man;
37 use POSIX qw(strftime);
38
39-use Test::More tests => 2;
40+use Test::More tests => 3;
41
42 # Check that the results of device_date matches strftime. There is no input
43 # file name, so this will use the current time.
44@@ -26,3 +26,7 @@ is(
45 # Set the override environment variable and ensure that it's honored.
46 local $ENV{POD_MAN_DATE} = '2014-01-01';
47 is($parser->devise_date, '2014-01-01', 'devise_date honors POD_MAN_DATE');
48+
49+# Check that an empty environment variable is honored.
50+local $ENV{POD_MAN_DATE} = q{};
51+is($parser->devise_date, q{}, 'devise_date honors empty POD_MAN_DATE');
diff --git a/meta/recipes-devtools/perl/perl/debian/fixes/podman-pipe.diff b/meta/recipes-devtools/perl/perl/debian/fixes/podman-pipe.diff
new file mode 100644
index 0000000000..1a60361160
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/fixes/podman-pipe.diff
@@ -0,0 +1,109 @@
1From 7671d101baa75d7a79bfbd8c75c1595fbb3f53ba Mon Sep 17 00:00:00 2001
2From: Russ Allbery <rra@cpan.org>
3Date: Sat, 7 Feb 2015 19:03:34 -0800
4Subject: Better errors for man pages from standard input
5
6[Pod::Man] Attempt to detect if the input came from a pipe and
7therefore has a completely unhelpful (and nonreproducible) source file
8name, and diagnose this as an error. Document that the name option
9(--name to pod2man) is required when processing POD source from
10standard input. (Debian Bug#777405)
11
12(backported to Perl 5.20.2 by Niko Tyni <ntyni@debian.org>)
13
14Origin: upstream, http://git.eyrie.org/?p=perl/podlators.git;a=commitdiff;h=d98872e46c93861b7aba14949e1258712087dc55
15Bug-Debian: https://bugs.debian.org/777405
16Patch-Name: fixes/podman-pipe.diff
17---
18 cpan/podlators/lib/Pod/Man.pm | 15 +++++++++++++++
19 cpan/podlators/scripts/pod2man.PL | 4 ++++
20 cpan/podlators/t/devise-title.t | 32 ++++++++++++++++++++++++++++++++
21 3 files changed, 51 insertions(+)
22 create mode 100755 cpan/podlators/t/devise-title.t
23
24diff --git a/cpan/podlators/lib/Pod/Man.pm b/cpan/podlators/lib/Pod/Man.pm
25index 8997a15..969eaff 100644
26--- a/cpan/podlators/lib/Pod/Man.pm
27+++ b/cpan/podlators/lib/Pod/Man.pm
28@@ -828,6 +828,17 @@ sub devise_title {
29 $section = 3 if (!$$self{section} && $name =~ /\.pm\z/i);
30 $name =~ s/\.p(od|[lm])\z//i;
31
32+ # If Pod::Parser gave us an IO::File reference as the source file name,
33+ # convert that to the empty string as well. Then, if we don't have a
34+ # valid name, emit a warning and convert it to STDIN.
35+ if ($name =~ /^IO::File(?:=\w+)\(0x[\da-f]+\)$/i) {
36+ $name = '';
37+ }
38+ if ($name eq '') {
39+ $self->whine (1, 'No name given for document');
40+ $name = 'STDIN';
41+ }
42+
43 # If the section isn't 3, then the name defaults to just the basename of
44 # the file. Otherwise, assume we're dealing with a module. We want to
45 # figure out the full module name from the path to the file, but we don't
46@@ -1705,6 +1716,10 @@ module path. If it is, a path like C<.../lib/Pod/Man.pm> is converted into
47 a name like C<Pod::Man>. This option, if given, overrides any automatic
48 determination of the name.
49
50+If generating a manual page from standard input, this option is required,
51+since there's otherwise no way for Pod::Man to know what to use for the
52+manual page name.
53+
54 =item nourls
55
56 Normally, LZ<><> formatting codes with a URL but anchor text are formatted
57diff --git a/cpan/podlators/scripts/pod2man.PL b/cpan/podlators/scripts/pod2man.PL
58index 38695f8..43e35df 100644
59--- a/cpan/podlators/scripts/pod2man.PL
60+++ b/cpan/podlators/scripts/pod2man.PL
61@@ -236,6 +236,10 @@ Note that this option is probably not useful when converting multiple POD
62 files at once. The convention for Unix man pages for commands is for the
63 man page title to be in all-uppercase even if the command isn't.
64
65+When converting POD source from standard input, this option is required,
66+since there's otherwise no way to know what to use as the name of the
67+manual page.
68+
69 =item B<--nourls>
70
71 Normally, LZ<><> formatting codes with a URL but anchor text are formatted
72diff --git a/cpan/podlators/t/devise-title.t b/cpan/podlators/t/devise-title.t
73new file mode 100755
74index 0000000..8639441
75--- /dev/null
76+++ b/cpan/podlators/t/devise-title.t
77@@ -0,0 +1,32 @@
78+#!/usr/bin/perl
79+#
80+# Tests for the automatic determination of the manual page title if not
81+# specified via options to pod2man or the Pod::Man constructor.
82+
83+use 5.006;
84+use strict;
85+use warnings;
86+
87+use File::Spec;
88+use IO::File;
89+use Test::More tests => 3;
90+
91+BEGIN {
92+ use_ok('Pod::Man');
93+}
94+
95+# Create a parser and set it up with an input source. There isn't a way to do
96+# this in Pod::Simple without actually parsing the document, so send the
97+# output to a string that we'll ignore.
98+my $path = File::Spec->catdir('t', 'data', 'basic.pod');
99+my $handle = IO::File->new($path, 'r');
100+my $parser = Pod::Man->new(errors => 'pod');
101+my $output;
102+$parser->output_string(\$output);
103+$parser->parse_file($handle);
104+
105+# Check the results of devise_title for this. We should get back STDIN, and
106+# we should have reported an error.
107+my ($name, $section) = $parser->devise_title;
108+is($name, 'STDIN', 'devise_title uses STDIN for file handle input');
109+ok($parser->errors_seen, '...and errors were seen');
diff --git a/meta/recipes-devtools/perl/perl/debian/fixes/podman-utc-docs.diff b/meta/recipes-devtools/perl/perl/debian/fixes/podman-utc-docs.diff
new file mode 100644
index 0000000000..0cdfeffd1f
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/fixes/podman-utc-docs.diff
@@ -0,0 +1,86 @@
1From 6198856b5323d6204094293f01b890472618f182 Mon Sep 17 00:00:00 2001
2From: Russ Allbery <rra@cpan.org>
3Date: Wed, 15 Apr 2015 20:49:07 -0700
4Subject: Documentation and test suite updates for UTC fix
5
6Update the Pod::Man and pod2man documentation and the test suite
7for the new UTC-based default page footer, and add a Changes
8entry.
9
10(backported to Perl 5.20.2 by Niko Tyni <ntyni@debian.org>)
11
12Origin: upstream, http://git.eyrie.org/?p=perl/podlators.git;a=commitdiff;h=52db93bf80e4a06f8497e4ebade0506b6ee0e70d
13Bug-Debian: https://bugs.debian.org/780259
14Patch-Name: fixes/podman-utc-docs.diff
15---
16 cpan/podlators/lib/Pod/Man.pm | 6 +++++-
17 cpan/podlators/scripts/pod2man.PL | 11 ++++++-----
18 cpan/podlators/t/devise-date.t | 2 +-
19 3 files changed, 12 insertions(+), 7 deletions(-)
20
21diff --git a/cpan/podlators/lib/Pod/Man.pm b/cpan/podlators/lib/Pod/Man.pm
22index c3ba201..365892e 100644
23--- a/cpan/podlators/lib/Pod/Man.pm
24+++ b/cpan/podlators/lib/Pod/Man.pm
25@@ -910,6 +910,8 @@ sub devise_date {
26
27 # Can't use POSIX::strftime(), which uses Fcntl, because MakeMaker uses
28 # this and it has to work in the core which can't load dynamic libraries.
29+ # Use gmtime instead of localtime so that the generated man page does not
30+ # depend on the local time zone setting and is more reproducible
31 my ($year, $month, $day) = (gmtime($time))[5,4,3];
32 return sprintf("%04d-%02d-%02d", $year + 1900, $month + 1, $day);
33 }
34@@ -1656,7 +1658,9 @@ environment variable POD_MAN_DATE, if set, will be used. Failing that,
35 the modification date of the input file will be used, or the current time
36 if stat() can't find that file (which will be the case if the input is
37 from C<STDIN>). If obtained from the file modification date or the
38-current time, he date will be formatted as C<YYYY-MM-DD>.
39+current time, the date will be formatted as C<YYYY-MM-DD> and will be based
40+on UTC (so that the output will be reproducible regardless of local time
41+zone).
42
43 =item errors
44
45diff --git a/cpan/podlators/scripts/pod2man.PL b/cpan/podlators/scripts/pod2man.PL
46index 6af3474..38695f8 100644
47--- a/cpan/podlators/scripts/pod2man.PL
48+++ b/cpan/podlators/scripts/pod2man.PL
49@@ -174,9 +174,10 @@ Contributed Perl Documentation", but also see B<--official> below.
50
51 =item B<-d> I<string>, B<--date>=I<string>
52
53-Set the left-hand footer string to this value. By default, the modification
54-date of the input file will be used, or the current date if input comes from
55-C<STDIN>.
56+Set the left-hand footer string to this value. By default, the
57+modification date of the input file will be used, or the current date if
58+input comes from C<STDIN>, and will be based on UTC (so that the output
59+will be reproducible regardless of local time zone).
60
61 =item B<-errors>=I<style>
62
63@@ -383,8 +384,8 @@ B<pod2man> by Larry Wall and Tom Christiansen.
64
65 =head1 COPYRIGHT AND LICENSE
66
67-Copyright 1999, 2000, 2001, 2004, 2006, 2008, 2010, 2012, 2013 Russ
68-Allbery <rra@stanford.edu>.
69+Copyright 1999, 2000, 2001, 2004, 2006, 2008, 2010, 2012, 2013, 2014,
70+2015 Russ Allbery <rra@cpan.org>.
71
72 This program is free software; you may redistribute it and/or modify it
73 under the same terms as Perl itself.
74diff --git a/cpan/podlators/t/devise-date.t b/cpan/podlators/t/devise-date.t
75index c610dd9..9da9d1b 100644
76--- a/cpan/podlators/t/devise-date.t
77+++ b/cpan/podlators/t/devise-date.t
78@@ -19,7 +19,7 @@ use Test::More tests => 2;
79 my $parser = Pod::Man->new;
80 is(
81 $parser->devise_date,
82- strftime('%Y-%m-%d', localtime()),
83+ strftime('%Y-%m-%d', gmtime()),
84 'devise_date matches strftime'
85 );
86
diff --git a/meta/recipes-devtools/perl/perl/debian/fixes/podman-utc.diff b/meta/recipes-devtools/perl/perl/debian/fixes/podman-utc.diff
new file mode 100644
index 0000000000..fbd7b9db99
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/fixes/podman-utc.diff
@@ -0,0 +1,33 @@
1From c796775cdbd2cce06acbb7ac355187d4063017a2 Mon Sep 17 00:00:00 2001
2From: Chris Lamb <lamby@debian.org>
3Date: Wed, 15 Apr 2015 20:42:53 -0700
4Subject: Make the embedded date from Pod::Man reproducible
5
6While working on the "reproducible builds" effort, we have noticed
7that Pod::Man generates output that varies depending on the current
8timezone.
9
10The attached patch fixes this by using GMT (~UTC) dates instead.
11
12(backported to Perl 5.20.2 by Niko Tyni <ntyni@debian.org>)
13
14Origin: upstream, http://git.eyrie.org/?p=perl/podlators.git;a=commitdiff;h=913fbb2bd2ce071e20128629302ae2852554cad4
15Bug-Debian: https://bugs.debian.org/780259
16Patch-Name: fixes/podman-utc.diff
17---
18 cpan/podlators/lib/Pod/Man.pm | 2 +-
19 1 file changed, 1 insertion(+), 1 deletion(-)
20
21diff --git a/cpan/podlators/lib/Pod/Man.pm b/cpan/podlators/lib/Pod/Man.pm
22index 0536662..c3ba201 100644
23--- a/cpan/podlators/lib/Pod/Man.pm
24+++ b/cpan/podlators/lib/Pod/Man.pm
25@@ -910,7 +910,7 @@ sub devise_date {
26
27 # Can't use POSIX::strftime(), which uses Fcntl, because MakeMaker uses
28 # this and it has to work in the core which can't load dynamic libraries.
29- my ($year, $month, $day) = (localtime($time))[5,4,3];
30+ my ($year, $month, $day) = (gmtime($time))[5,4,3];
31 return sprintf("%04d-%02d-%02d", $year + 1900, $month + 1, $day);
32 }
33
diff --git a/meta/recipes-devtools/perl/perl/debian/fixes/respect_umask.diff b/meta/recipes-devtools/perl/perl/debian/fixes/respect_umask.diff
new file mode 100644
index 0000000000..d1b498b527
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/fixes/respect_umask.diff
@@ -0,0 +1,153 @@
1From d9d535ef97f57af6e9728075944c33f3b0b5372f Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Tue, 8 Mar 2005 19:30:38 +1100
4Subject: Respect umask during installation
5
6This is needed to satisfy Debian policy regarding group-writable
7site directories.
8
9Patch-Name: fixes/respect_umask.diff
10---
11 cpan/ExtUtils-Install/lib/ExtUtils/Install.pm | 18 +++++++++---------
12 cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | 18 +++++++++---------
13 2 files changed, 18 insertions(+), 18 deletions(-)
14
15diff --git a/cpan/ExtUtils-Install/lib/ExtUtils/Install.pm b/cpan/ExtUtils-Install/lib/ExtUtils/Install.pm
16index 1e8ac4c..3e79121 100644
17--- a/cpan/ExtUtils-Install/lib/ExtUtils/Install.pm
18+++ b/cpan/ExtUtils-Install/lib/ExtUtils/Install.pm
19@@ -451,7 +451,7 @@ sub _can_write_dir {
20
21 =pod
22
23-=item _mkpath($dir,$show,$mode,$verbose,$dry_run)
24+=item _mkpath($dir,$show,$verbose,$dry_run)
25
26 Wrapper around File::Path::mkpath() to handle errors.
27
28@@ -468,13 +468,13 @@ writable.
29 =cut
30
31 sub _mkpath {
32- my ($dir,$show,$mode,$verbose,$dry_run)=@_;
33+ my ($dir,$show,$verbose,$dry_run)=@_;
34 if ( $verbose && $verbose > 1 && ! -d $dir) {
35 $show= 1;
36- printf "mkpath(%s,%d,%#o)\n", $dir, $show, $mode;
37+ printf "mkpath(%s,%d)\n", $dir, $show;
38 }
39 if (!$dry_run) {
40- if ( ! eval { File::Path::mkpath($dir,$show,$mode); 1 } ) {
41+ if ( ! eval { File::Path::mkpath($dir,$show); 1 } ) {
42 _choke("Can't create '$dir'","$@");
43 }
44
45@@ -783,7 +783,7 @@ sub install { #XXX OS-SPECIFIC
46 _chdir($cwd);
47 }
48 foreach my $targetdir (sort keys %check_dirs) {
49- _mkpath( $targetdir, 0, 0755, $verbose, $dry_run );
50+ _mkpath( $targetdir, 0, $verbose, $dry_run );
51 }
52 foreach my $found (@found_files) {
53 my ($diff, $ffd, $origfile, $mode, $size, $atime, $mtime,
54@@ -797,7 +797,7 @@ sub install { #XXX OS-SPECIFIC
55 $targetfile= _unlink_or_rename( $targetfile, 'tryhard', 'install' )
56 unless $dry_run;
57 } elsif ( ! -d $targetdir ) {
58- _mkpath( $targetdir, 0, 0755, $verbose, $dry_run );
59+ _mkpath( $targetdir, 0, $verbose, $dry_run );
60 }
61 print "Installing $targetfile\n";
62
63@@ -837,7 +837,7 @@ sub install { #XXX OS-SPECIFIC
64
65 if ($pack{'write'}) {
66 $dir = install_rooted_dir(dirname($pack{'write'}));
67- _mkpath( $dir, 0, 0755, $verbose, $dry_run );
68+ _mkpath( $dir, 0, $verbose, $dry_run );
69 print "Writing $pack{'write'}\n" if $verbose;
70 $packlist->write(install_rooted_file($pack{'write'})) unless $dry_run;
71 }
72@@ -1180,7 +1180,7 @@ environment variable will silence this output.
73 sub pm_to_blib {
74 my($fromto,$autodir,$pm_filter) = @_;
75
76- _mkpath($autodir,0,0755);
77+ _mkpath($autodir,0);
78 while(my($from, $to) = each %$fromto) {
79 if( -f $to && -s $from == -s $to && -M $to < -M $from ) {
80 print "Skip $to (unchanged)\n" unless $INSTALL_QUIET;
81@@ -1203,7 +1203,7 @@ sub pm_to_blib {
82 # we wont try hard here. its too likely to mess things up.
83 forceunlink($to);
84 } else {
85- _mkpath(dirname($to),0,0755);
86+ _mkpath(dirname($to),0);
87 }
88 if ($need_filtering) {
89 run_filter($pm_filter, $from, $to);
90diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
91index f63145c..197f102 100644
92--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
93+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
94@@ -2118,7 +2118,7 @@ doc__install : doc_site_install
95 $(NOECHO) $(ECHO) INSTALLDIRS not defined, defaulting to INSTALLDIRS=site
96
97 pure_perl_install :: all
98- $(NOECHO) $(MOD_INSTALL) \
99+ $(NOECHO) umask 022; $(MOD_INSTALL) \
100 };
101
102 push @m,
103@@ -2138,7 +2138,7 @@ q{ "$(INST_LIB)" "$(DESTINSTALLPRIVLIB)" \
104
105
106 pure_site_install :: all
107- $(NOECHO) $(MOD_INSTALL) \
108+ $(NOECHO) umask 022; $(MOD_INSTALL) \
109 };
110 push @m,
111 q{ read "}.$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist').q{" \
112@@ -2156,7 +2156,7 @@ q{ "$(INST_LIB)" "$(DESTINSTALLSITELIB)" \
113 "}.$self->catdir('$(PERL_ARCHLIB)','auto','$(FULLEXT)').q{"
114
115 pure_vendor_install :: all
116- $(NOECHO) $(MOD_INSTALL) \
117+ $(NOECHO) umask 022; $(MOD_INSTALL) \
118 };
119 push @m,
120 q{ read "}.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{" \
121@@ -2188,8 +2188,8 @@ doc_vendor_install :: all
122 push @m, q{
123 doc_perl_install :: all
124 $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
125- -$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
126- -$(NOECHO) $(DOC_INSTALL) \
127+ -$(NOECHO) umask 022; $(MKPATH) "$(DESTINSTALLARCHLIB)"
128+ -$(NOECHO) umask 022; $(DOC_INSTALL) \
129 "Module" "$(NAME)" \
130 "installed into" $(INSTALLPRIVLIB) \
131 LINKTYPE "$(LINKTYPE)" \
132@@ -2199,8 +2199,8 @@ doc_perl_install :: all
133
134 doc_site_install :: all
135 $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
136- -$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
137- -$(NOECHO) $(DOC_INSTALL) \
138+ -$(NOECHO) umask 022; $(MKPATH) "$(DESTINSTALLARCHLIB)"
139+ -$(NOECHO) umask 022; $(DOC_INSTALL) \
140 "Module" "$(NAME)" \
141 "installed into" $(INSTALLSITELIB) \
142 LINKTYPE "$(LINKTYPE)" \
143@@ -2210,8 +2210,8 @@ doc_site_install :: all
144
145 doc_vendor_install :: all
146 $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
147- -$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
148- -$(NOECHO) $(DOC_INSTALL) \
149+ -$(NOECHO) umask 022; $(MKPATH) "$(DESTINSTALLARCHLIB)"
150+ -$(NOECHO) umask 022; $(DOC_INSTALL) \
151 "Module" "$(NAME)" \
152 "installed into" $(INSTALLVENDORLIB) \
153 LINKTYPE "$(LINKTYPE)" \
diff --git a/meta/recipes-devtools/perl/perl/debian/instmodsh_doc.diff b/meta/recipes-devtools/perl/perl/debian/instmodsh_doc.diff
new file mode 100644
index 0000000000..a62c746e94
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/instmodsh_doc.diff
@@ -0,0 +1,27 @@
1From 26209b55201a1b2d25252ac3b425bc49081299de Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Tue, 8 Mar 2005 19:30:38 +1100
4Subject: Debian policy doesn't install .packlist files for core or vendor.
5
6Patch-Name: debian/instmodsh_doc.diff
7---
8 cpan/ExtUtils-MakeMaker/bin/instmodsh | 4 +++-
9 1 file changed, 3 insertions(+), 1 deletion(-)
10
11diff --git a/cpan/ExtUtils-MakeMaker/bin/instmodsh b/cpan/ExtUtils-MakeMaker/bin/instmodsh
12index 8b9aa95..e551434 100644
13--- a/cpan/ExtUtils-MakeMaker/bin/instmodsh
14+++ b/cpan/ExtUtils-MakeMaker/bin/instmodsh
15@@ -18,9 +18,11 @@ instmodsh - A shell to examine installed modules
16
17 =head1 DESCRIPTION
18
19-A little interface to ExtUtils::Installed to examine installed modules,
20+A little interface to ExtUtils::Installed to examine locally* installed modules,
21 validate your packlists and even create a tarball from an installed module.
22
23+*On Debian system, B<core> and B<vendor> modules are managed by C<dpkg>.
24+
25 =head1 SEE ALSO
26
27 ExtUtils::Installed
diff --git a/meta/recipes-devtools/perl/perl/debian/ld_run_path.diff b/meta/recipes-devtools/perl/perl/debian/ld_run_path.diff
new file mode 100644
index 0000000000..d80f86c21a
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/ld_run_path.diff
@@ -0,0 +1,24 @@
1From 53ce69085918232a1b7e26e7762c1b2f70b1eb4a Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Fri, 18 Mar 2005 22:22:25 +1100
4Subject: Remove standard libs from LD_RUN_PATH as per Debian policy.
5
6Patch-Name: debian/ld_run_path.diff
7---
8 cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm | 3 +++
9 1 file changed, 3 insertions(+)
10
11diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm
12index 37bcfd4..bd66e65 100644
13--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm
14+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm
15@@ -56,6 +56,9 @@ sub _unix_os2_ext {
16 my ( $pwd ) = cwd(); # from Cwd.pm
17 my ( $found ) = 0;
18
19+ # Debian-specific: don't use LD_RUN_PATH for standard dirs
20+ $ld_run_path_seen{$_}++ for @libpath;
21+
22 foreach my $thislib ( split ' ', $potential_libs ) {
23 my ( $custom_name ) = '';
24
diff --git a/meta/recipes-devtools/perl/perl/debian/libnet_config_path.diff b/meta/recipes-devtools/perl/perl/debian/libnet_config_path.diff
new file mode 100644
index 0000000000..54ef9640ec
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/libnet_config_path.diff
@@ -0,0 +1,37 @@
1From a7f6d453e60256d329469a75b642cca854cebea1 Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Tue, 8 Mar 2005 19:30:38 +1100
4Subject: Set location of libnet.cfg to /etc/perl/Net as /usr may not be
5 writable.
6
7Patch-Name: debian/libnet_config_path.diff
8---
9 cpan/libnet/lib/Net/Config.pm | 7 +++----
10 1 file changed, 3 insertions(+), 4 deletions(-)
11
12diff --git a/cpan/libnet/lib/Net/Config.pm b/cpan/libnet/lib/Net/Config.pm
13index 953a826..61ba12a 100644
14--- a/cpan/libnet/lib/Net/Config.pm
15+++ b/cpan/libnet/lib/Net/Config.pm
16@@ -68,9 +68,8 @@ my %nc = (
17 TRY_INTERNET_CONFIG
18 }
19
20-my $file = __FILE__;
21+my $file = '/etc/perl/Net/libnet.cfg';
22 my $ref;
23-$file =~ s/Config.pm/libnet.cfg/;
24 if (-f $file) {
25 $ref = eval { local $SIG{__DIE__}; do $file };
26 if (ref($ref) eq 'HASH') {
27@@ -142,8 +141,8 @@ Net::Config - Local configuration data for libnet
28 C<Net::Config> holds configuration data for the modules in the libnet
29 distribution. During installation you will be asked for these values.
30
31-The configuration data is held globally in a file in the perl installation
32-tree, but a user may override any of these values by providing their own. This
33+The configuration data is held globally in C</etc/perl/Net/libnet.cfg>,
34+but a user may override any of these values by providing their own. This
35 can be done by having a C<.libnetrc> file in their home directory. This file
36 should return a reference to a HASH containing the keys described below.
37 For example
diff --git a/meta/recipes-devtools/perl/perl/debian/libperl_embed_doc.diff b/meta/recipes-devtools/perl/perl/debian/libperl_embed_doc.diff
new file mode 100644
index 0000000000..76b805451c
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/libperl_embed_doc.diff
@@ -0,0 +1,26 @@
1From fb8bdbb4bf56382de099e62c2564286b9dfda46d Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Tue, 8 Mar 2005 19:30:38 +1100
4Subject: Note that libperl-dev package is required for embedded linking
5
6Bug-Debian: http://bugs.debian.org/186778
7
8Patch-Name: debian/libperl_embed_doc.diff
9---
10 lib/ExtUtils/Embed.pm | 3 +++
11 1 file changed, 3 insertions(+)
12
13diff --git a/lib/ExtUtils/Embed.pm b/lib/ExtUtils/Embed.pm
14index 3f983c1..0ec8a67 100644
15--- a/lib/ExtUtils/Embed.pm
16+++ b/lib/ExtUtils/Embed.pm
17@@ -296,6 +296,9 @@ and extensions in your C/C++ applications.
18 Typically, an application F<Makefile> will invoke C<ExtUtils::Embed>
19 functions while building your application.
20
21+Note that on Debian systems the B<libperl-dev> package is required for
22+compiling applications which embed an interpreter.
23+
24 =head1 @EXPORT
25
26 C<ExtUtils::Embed> exports the following functions:
diff --git a/meta/recipes-devtools/perl/perl/debian/locale-robustness.diff b/meta/recipes-devtools/perl/perl/debian/locale-robustness.diff
new file mode 100644
index 0000000000..fd471ed7a5
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/locale-robustness.diff
@@ -0,0 +1,52 @@
1From 289eaf87f8de4d9ebfd661d4e4299c2952435243 Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Fri, 10 Apr 2015 10:19:51 +0300
4Subject: Make t/run/locale.t survive missing locales masked by LC_ALL
5
6If LC_ALL is set to a valid locale but another LC_* setting like LC_CTYPE
7isn't, t/run/locale.t would fail because it explicitly unsets LC_ALL,
8unmasking the problem underneath. All the other tests survive such
9a scenario.
10
11While this is clearly an error in the build environment, it's easy to make
12the test more robust by first clearing all the locale relevant variables.
13
14Bug: https://rt.perl.org/Ticket/Display.html?id=124310
15Bug-Debian: https://bugs.debian.org/782068
16Patch-Name: debian/locale-robustness.diff
17---
18 t/run/locale.t | 7 +++----
19 1 file changed, 3 insertions(+), 4 deletions(-)
20
21diff --git a/t/run/locale.t b/t/run/locale.t
22index bd1a034..2105339 100644
23--- a/t/run/locale.t
24+++ b/t/run/locale.t
25@@ -27,6 +27,9 @@ my @locales = eval { find_locales( [ &LC_ALL, &LC_CTYPE, &LC_NUMERIC ],
26 ) };
27 skip_all("no locales available") unless @locales;
28
29+# reset the locale environment
30+local @ENV{'LANG', (grep /^LC_/, keys %ENV)};
31+
32 plan tests => &last;
33
34 my $non_C_locale;
35@@ -58,9 +61,6 @@ EOF
36 SKIP: {
37 skip("Windows stores locale defaults in the registry", 1 )
38 if $^O eq 'MSWin32';
39- local $ENV{LC_NUMERIC}; # So not taken as a default
40- local $ENV{LC_ALL}; # so it never overrides LC_NUMERIC
41- local $ENV{LANG}; # So not taken as a default
42 fresh_perl_is("for (qw(@locales)) {\n" . <<'EOF',
43 use POSIX qw(locale_h);
44 use locale;
45@@ -348,7 +348,6 @@ EOF
46
47 {
48 local $ENV{LC_NUMERIC} = $different;
49- local $ENV{LC_ALL}; # so it never overrides LC_NUMERIC
50 fresh_perl_is(<<"EOF",
51 use POSIX qw(locale_h);
52
diff --git a/meta/recipes-devtools/perl/perl/debian/makemaker-pasthru.diff b/meta/recipes-devtools/perl/perl/debian/makemaker-pasthru.diff
new file mode 100644
index 0000000000..fa0f9daf96
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/makemaker-pasthru.diff
@@ -0,0 +1,30 @@
1From 593dd52f535b1f439dfd0afe52211ae8960e980a Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Sun, 24 Aug 2014 12:56:11 -0700
4Subject: Pass LD settings through to subdirectories
5
6[rt.cpan.org #28632] fixed most issues with passing LD down to
7subdirectory Makefile.PL files. However, there are some distributions
8(including Wx, Par::Packer, and Verilog-Perl) that explicitly set
9LD. Those still can't be overridden from the command line. Adding LD to
10the PASTHRU list fixes this.
11
12Bug-Debian: https://bugs.debian.org/758471
13Patch-Name: debian/makemaker-pasthru.diff
14---
15 cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | 2 +-
16 1 file changed, 1 insertion(+), 1 deletion(-)
17
18diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
19index 4a8e14c..548d98e 100644
20--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
21+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
22@@ -2793,7 +2793,7 @@ sub pasthru {
23 my($sep) = $Is{VMS} ? ',' : '';
24 $sep .= "\\\n\t";
25
26- foreach my $key (qw(LIB LIBPERL_A LINKTYPE OPTIMIZE
27+ foreach my $key (qw(LIB LIBPERL_A LINKTYPE OPTIMIZE LD
28 PREFIX INSTALL_BASE)
29 )
30 {
diff --git a/meta/recipes-devtools/perl/perl/debian/makemaker_customized.diff b/meta/recipes-devtools/perl/perl/debian/makemaker_customized.diff
new file mode 100644
index 0000000000..b1b4cb9a68
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/makemaker_customized.diff
@@ -0,0 +1,42 @@
1From 634449066a9c810e81506425d2ca925b2fd72ab2 Mon Sep 17 00:00:00 2001
2From: Dominic Hargreaves <dom@earth.li>
3Date: Sat, 23 May 2015 21:15:06 +0200
4Subject: Update t/porting/customized.dat for files patched in Debian
5
6Patch-Name: debian/makemaker_customized.diff
7---
8 t/porting/customized.dat | 8 ++++----
9 1 file changed, 4 insertions(+), 4 deletions(-)
10
11diff --git a/t/porting/customized.dat b/t/porting/customized.dat
12index 7df398d..f857bd2 100644
13--- a/t/porting/customized.dat
14+++ b/t/porting/customized.dat
15@@ -1,7 +1,7 @@
16 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Command/MM.pm 7f4dfd0fe884bd42412bcf04ca80ef97b39c1d54
17 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist.pm bef099988b15fb0b2a1f5ac48c01af1f7f36d329
18-ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm 8168e18f0e3ce3ece4bb7e7c72d57ec07c67c402
19-ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm 7115e97a53559cb3ec061dd6f7f344e522724c4a
20+ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm 3493ae6f93264e967f58dedaa3dbf3dbcb249853
21+ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker.pm 3d7abd674b15ed323f743594ef0bd09db76b1aee
22 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/Config.pm f8db8d4245bf0684b8210c811f50d7cfb1a27d78
23 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/FAQ.pod 757bffb47857521311f8f3bde43ebe165f8d5191
24 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MakeMaker/Locale.pm 82be06851deb84c6419ad003ce9b6d1957f395f3
25@@ -13,7 +13,7 @@ ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Mkbootstrap.pm 58872d66
26 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/Mksymlists.pm ab80029ab16d38d4f2e41dc88d2ceb9f3790e477
27 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM.pm 453e0abbc4bb38db4c0820ad5c4846f313b66291
28 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_AIX.pm c1b1babda8f43ae7a2caba1cb4f70f92af5a0e34
29-ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm 6f90d94ad3e7aa0045a3b1a10a1bb18391f89f57
30+ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm 21bde53290bf1a4da4457290b65bd1b0ca6f1d16
31 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_BeOS.pm cab2b3ce08b71a4ce89aa630f236eb08b852439d
32 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Cygwin.pm 61fced0faf518bf87c265fcb51ed330ba354623f
33 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Darwin.pm ae0ef51a7b6dd0b05aa61c779df7167dda5f5119
34@@ -22,7 +22,7 @@ ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_MacOS.pm 0544301f712
35 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_NW5.pm 433135eecb85b4b1d90d3027432f329436c78447
36 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_OS2.pm 1fbb5605bfb47feee4083feba8aa85e659628f70
37 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_QNX.pm 5b66d1f485a6034d96fc24ba1665b1bad9e447f1
38-ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm 8cef99a9bd370ecfd07ddb0efbdcbb4101255e45
39+ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm c455c915fb7dc3eeb1200ed1cd19048e6f21e6b1
40 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_UWIN.pm 939572fde3d59ba77c2e677fe2df2bed4bed5898
41 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_VMS.pm 09c2049bfd25b735e2a5bcf56a6cff7b4827f9c8
42 ExtUtils::MakeMaker cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_VOS.pm d65d63f8217a55c36f62e249814988974f593c79
diff --git a/meta/recipes-devtools/perl/perl/debian/mod_paths.diff b/meta/recipes-devtools/perl/perl/debian/mod_paths.diff
new file mode 100644
index 0000000000..ae15907609
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/mod_paths.diff
@@ -0,0 +1,99 @@
1From 6c6cf14e204f3c031372bfd9604ad524d5691186 Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Fri, 18 Mar 2005 22:22:25 +1100
4Subject: Tweak @INC ordering for Debian
5
6Our order is:
7
8 etc (for config files)
9 site (5.8.1)
10 vendor (all)
11 core (5.8.1)
12 site (version-indep)
13 site (pre-5.8.1)
14
15The rationale being that an admin (via site), or module packager
16(vendor) can chose to shadow core modules when there is a newer
17version than is included in core.
18
19Patch-Name: debian/mod_paths.diff
20---
21 perl.c | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
22 1 file changed, 58 insertions(+)
23
24diff --git a/perl.c b/perl.c
25index 086645b..e64f1f4 100644
26--- a/perl.c
27+++ b/perl.c
28@@ -4373,6 +4373,11 @@ S_init_perllib(pTHX)
29 INCPUSH_ADD_SUB_DIRS|INCPUSH_CAN_RELOCATE);
30 #endif
31
32+#ifdef DEBIAN
33+ /* for configuration where /usr is mounted ro (CPAN::Config, Net::Config) */
34+ S_incpush_use_sep(aTHX_ STR_WITH_LEN("/etc/perl"), 0x0);
35+#endif
36+
37 #ifdef SITEARCH_EXP
38 /* sitearch is always relative to sitelib on Windows for
39 * DLL-based path intuition to work correctly */
40@@ -4490,6 +4495,59 @@ S_init_perllib(pTHX)
41 INCPUSH_ADD_OLD_VERS|INCPUSH_CAN_RELOCATE);
42 #endif
43
44+#ifdef DEBIAN
45+ /* Non-versioned site directory for local modules and for
46+ compatability with the previous packages' site dirs */
47+ S_incpush_use_sep(aTHX_ STR_WITH_LEN("/usr/local/lib/site_perl"),
48+ INCPUSH_ADD_SUB_DIRS);
49+
50+#ifdef PERL_INC_VERSION_LIST
51+ {
52+ struct stat s;
53+
54+ /* add small buffer in case old versions are longer than the
55+ current version */
56+ char sitearch[sizeof(SITEARCH_EXP)+16] = SITEARCH_EXP;
57+ char sitelib[sizeof(SITELIB_EXP)+16] = SITELIB_EXP;
58+ char const *vers[] = { PERL_INC_VERSION_LIST };
59+ char const **p;
60+
61+ char *arch_vers = strrchr(sitearch, '/');
62+ char *lib_vers = strrchr(sitelib, '/');
63+
64+ if (arch_vers && isdigit(*++arch_vers))
65+ *arch_vers = 0;
66+ else
67+ arch_vers = 0;
68+
69+ if (lib_vers && isdigit(*++lib_vers))
70+ *lib_vers = 0;
71+ else
72+ lib_vers = 0;
73+
74+ /* there is some duplication here as incpush does something
75+ similar internally, but required as sitearch is not a
76+ subdirectory of sitelib */
77+ for (p = vers; *p; p++)
78+ {
79+ if (arch_vers)
80+ {
81+ strcpy(arch_vers, *p);
82+ if (PerlLIO_stat(sitearch, &s) >= 0 && S_ISDIR(s.st_mode))
83+ S_incpush_use_sep(aTHX_ sitearch, strlen(sitearch), 0x0);
84+ }
85+
86+ if (lib_vers)
87+ {
88+ strcpy(lib_vers, *p);
89+ if (PerlLIO_stat(sitelib, &s) >= 0 && S_ISDIR(s.st_mode))
90+ S_incpush_use_sep(aTHX_ sitelib, strlen(sitelib), 0x0);
91+ }
92+ }
93+ }
94+#endif
95+#endif
96+
97 #ifdef PERL_OTHERLIBDIRS
98 S_incpush_use_sep(aTHX_ STR_WITH_LEN(PERL_OTHERLIBDIRS),
99 INCPUSH_ADD_OLD_VERS|INCPUSH_ADD_ARCHONLY_SUB_DIRS
diff --git a/meta/recipes-devtools/perl/perl/debian/no_packlist_perllocal.diff b/meta/recipes-devtools/perl/perl/debian/no_packlist_perllocal.diff
new file mode 100644
index 0000000000..b911fd2762
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/no_packlist_perllocal.diff
@@ -0,0 +1,92 @@
1From 240f2f4aeb3850bc0c5370b9fbc3909573bed9b3 Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Tue, 8 Mar 2005 19:30:38 +1100
4Subject: Don't install .packlist or perllocal.pod for perl or vendor
5
6Patch-Name: debian/no_packlist_perllocal.diff
7---
8 cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | 35 +++----------------------
9 1 file changed, 3 insertions(+), 32 deletions(-)
10
11diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
12index 570a631..391dc22 100644
13--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
14+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
15@@ -2122,11 +2122,6 @@ pure_perl_install :: all
16 };
17
18 push @m,
19-q{ read "}.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{" \
20- write "}.$self->catfile('$(DESTINSTALLARCHLIB)','auto','$(FULLEXT)','.packlist').q{" \
21-} unless $self->{NO_PACKLIST};
22-
23- push @m,
24 q{ "$(INST_LIB)" "$(DESTINSTALLPRIVLIB)" \
25 "$(INST_ARCHLIB)" "$(DESTINSTALLARCHLIB)" \
26 "$(INST_BIN)" "$(DESTINSTALLBIN)" \
27@@ -2158,10 +2153,6 @@ q{ "$(INST_LIB)" "$(DESTINSTALLSITELIB)" \
28 pure_vendor_install :: all
29 $(NOECHO) umask 022; $(MOD_INSTALL) \
30 };
31- push @m,
32-q{ read "}.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{" \
33- write "}.$self->catfile('$(DESTINSTALLVENDORARCH)','auto','$(FULLEXT)','.packlist').q{" \
34-} unless $self->{NO_PACKLIST};
35
36 push @m,
37 q{ "$(INST_LIB)" "$(DESTINSTALLVENDORLIB)" \
38@@ -2187,37 +2178,19 @@ doc_vendor_install :: all
39
40 push @m, q{
41 doc_perl_install :: all
42- $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
43- -$(NOECHO) umask 022; $(MKPATH) "$(DESTINSTALLARCHLIB)"
44- -$(NOECHO) umask 022; $(DOC_INSTALL) \
45- "Module" "$(NAME)" \
46- "installed into" $(INSTALLPRIVLIB) \
47- LINKTYPE "$(LINKTYPE)" \
48- VERSION "$(VERSION)" \
49- EXE_FILES "$(EXE_FILES)" \
50- >> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
51
52 doc_site_install :: all
53- $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
54- -$(NOECHO) umask 02; $(MKPATH) "$(DESTINSTALLARCHLIB)"
55+ $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLSITEARCH)/perllocal.pod"
56+ -$(NOECHO) umask 02; $(MKPATH) "$(DESTINSTALLSITEARCH)"
57 -$(NOECHO) umask 02; $(DOC_INSTALL) \
58 "Module" "$(NAME)" \
59 "installed into" $(INSTALLSITELIB) \
60 LINKTYPE "$(LINKTYPE)" \
61 VERSION "$(VERSION)" \
62 EXE_FILES "$(EXE_FILES)" \
63- >> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
64+ >> "}.$self->catfile('$(DESTINSTALLSITEARCH)','perllocal.pod').q{"
65
66 doc_vendor_install :: all
67- $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
68- -$(NOECHO) umask 022; $(MKPATH) "$(DESTINSTALLARCHLIB)"
69- -$(NOECHO) umask 022; $(DOC_INSTALL) \
70- "Module" "$(NAME)" \
71- "installed into" $(INSTALLVENDORLIB) \
72- LINKTYPE "$(LINKTYPE)" \
73- VERSION "$(VERSION)" \
74- EXE_FILES "$(EXE_FILES)" \
75- >> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
76
77 } unless $self->{NO_PERLLOCAL};
78
79@@ -2226,13 +2199,11 @@ uninstall :: uninstall_from_$(INSTALLDIRS)dirs
80 $(NOECHO) $(NOOP)
81
82 uninstall_from_perldirs ::
83- $(NOECHO) $(UNINSTALL) "}.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{"
84
85 uninstall_from_sitedirs ::
86 $(NOECHO) $(UNINSTALL) "}.$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist').q{"
87
88 uninstall_from_vendordirs ::
89- $(NOECHO) $(UNINSTALL) "}.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{"
90 };
91
92 join("",@m);
diff --git a/meta/recipes-devtools/perl/perl/debian/patchlevel.diff b/meta/recipes-devtools/perl/perl/debian/patchlevel.diff
new file mode 100644
index 0000000000..8656b027e8
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/patchlevel.diff
@@ -0,0 +1,30 @@
1From b517c5e15d0871e36d0f1187661fe1dd28ddf820 Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Sun, 15 May 2011 19:35:58 +0300
4Subject: List packaged patches in patchlevel.h
5
6Origin: vendor
7Bug-Debian: http://bugs.debian.org/567489
8
9The list of packaged patches is in patchlevel-debian.h, which is generated
10from the debian/patches/ directory when building the package.
11
12Patch-Name: debian/patchlevel.diff
13---
14 patchlevel.h | 3 +++
15 1 file changed, 3 insertions(+)
16
17diff --git a/patchlevel.h b/patchlevel.h
18index a0ad78b..01367b7 100644
19--- a/patchlevel.h
20+++ b/patchlevel.h
21@@ -137,6 +137,9 @@ static const char * const local_patches[] = {
22 ,"uncommitted-changes"
23 #endif
24 PERL_GIT_UNPUSHED_COMMITS /* do not remove this line */
25+#ifdef DEBIAN
26+#include "patchlevel-debian.h"
27+#endif
28 ,NULL
29 };
30
diff --git a/meta/recipes-devtools/perl/perl/debian/perl5db-x-terminal-emulator.patch b/meta/recipes-devtools/perl/perl/debian/perl5db-x-terminal-emulator.patch
new file mode 100644
index 0000000000..533952cac7
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/perl5db-x-terminal-emulator.patch
@@ -0,0 +1,29 @@
1From c99c61e8f863a508a0793168011c98dc74abbd05 Mon Sep 17 00:00:00 2001
2From: Dominic Hargreaves <dom@earth.li>
3Date: Sat, 14 Apr 2012 11:34:05 +0100
4Subject: Invoke x-terminal-emulator rather than xterm in perl5db.pl
5
6In Debian systems, xterm might not exist or might not be the preferred
7terminal emulator. Use x-terminal-emulator instead
8
9Bug-Debian: http://bugs.debian.org/668490
10Forwarded: not-needed
11
12Patch-Name: debian/perl5db-x-terminal-emulator.patch
13---
14 lib/perl5db.pl | 2 +-
15 1 file changed, 1 insertion(+), 1 deletion(-)
16
17diff --git a/lib/perl5db.pl b/lib/perl5db.pl
18index 7e7194e..c466bf3 100644
19--- a/lib/perl5db.pl
20+++ b/lib/perl5db.pl
21@@ -6960,7 +6960,7 @@ properly set up.
22 sub xterm_get_fork_TTY {
23 ( my $name = $0 ) =~ s,^.*[/\\],,s;
24 open XT,
25-qq[3>&1 xterm -title "Daughter Perl debugger $pids $name" -e sh -c 'tty 1>&3;\
26+qq[3>&1 x-terminal-emulator -T "Daughter Perl debugger $pids $name" -e sh -c 'tty 1>&3;\
27 sleep 10000000' |];
28
29 # Get the output from 'tty' and clean it up a little.
diff --git a/meta/recipes-devtools/perl/perl/debian/perlivp.diff b/meta/recipes-devtools/perl/perl/debian/perlivp.diff
new file mode 100644
index 0000000000..2c1eab9709
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/perlivp.diff
@@ -0,0 +1,39 @@
1From fbfbeb7a690d703a3cdc56f923e89eb7b7997d31 Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Fri, 9 Jan 2009 18:54:47 +0200
4Subject: Make perlivp skip include directories in /usr/local
5
6Bug-Debian: http://bugs.debian.org/510895
7
8On Sat, Jan 10, 2009 at 12:37:18AM +1100, Brendan O'Dea wrote:
9> On Wed, Jan 7, 2009 at 12:21 AM, Niko Tyni <ntyni@debian.org> wrote:
10
11> > We could create the directories in a postinst script, but I'm not sure
12> > I see the point. They will be created automatically when installing
13> > CPAN modules.
14>
15> The directories are intentionally not created, as this way they are
16> excluded from the search path at start-up, saving a bunch of wasted
17> stats at use/require time in the common case that the user has not
18> installed any local packages. As Niko points out, they will be
19> created as required.
20
21Signed-off-by: Niko Tyni <ntyni@debian.org>
22
23Patch-Name: debian/perlivp.diff
24---
25 utils/perlivp.PL | 1 +
26 1 file changed, 1 insertion(+)
27
28diff --git a/utils/perlivp.PL b/utils/perlivp.PL
29index c2f0a11..cc49f96 100644
30--- a/utils/perlivp.PL
31+++ b/utils/perlivp.PL
32@@ -153,6 +153,7 @@ my $INC_total = 0;
33 my $INC_there = 0;
34 foreach (@INC) {
35 next if $_ eq '.'; # skip -d test here
36+ next if m|/usr/local|; # not shipped on Debian
37 if (-d $_) {
38 print "## Perl \@INC directory '$_' exists.\n" if $opt{'v'};
39 $INC_there++;
diff --git a/meta/recipes-devtools/perl/perl/debian/pod2man-customized.diff b/meta/recipes-devtools/perl/perl/debian/pod2man-customized.diff
new file mode 100644
index 0000000000..6270b87318
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/pod2man-customized.diff
@@ -0,0 +1,23 @@
1From 27a4952c2e531947dc9f2f02e2063d117e2e699a Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Sat, 18 Apr 2015 17:39:32 +0300
4Subject: Update porting/customized.dat for pod2man modifications
5
6Patch-Name: debian/pod2man-customized.diff
7---
8 t/porting/customized.dat | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/t/porting/customized.dat b/t/porting/customized.dat
12index 0eed9f7..7df398d 100644
13--- a/t/porting/customized.dat
14+++ b/t/porting/customized.dat
15@@ -42,7 +42,7 @@ Win32API::File cpan/Win32API-File/Makefile.PL 605d0aee31aebe84a99408f9ab5f644db5
16 Win32API::File cpan/Win32API-File/t/file.t 124e64aa77e755235eb297644a87fac5388d3d78
17 Win32API::File cpan/Win32API-File/t/tie.t 712ea7edd0cc805ce1c0b8172c01b03dd19b583d
18 Win32API::File cpan/Win32API-File/typemap 24bff088babeadac0873e8df390d1666d9d9db4a
19-podlators cpan/podlators/scripts/pod2man.PL f81acf53f3ff46cdcc5ebdd661c5d13eb35d20d6
20+podlators cpan/podlators/scripts/pod2man.PL 761f35d3fcf91c1bc2f9e024a9fa5c62fd3fc338
21 podlators cpan/podlators/scripts/pod2text.PL b4693fcfe4a0a1b38a215cfb8985a65d5d025d69
22 version cpan/version/lib/version.pm d0923b895d57f1d669ae36fcf85c87b16db341d1
23 version vutil.c 668f17ca43e2527645674d29ba772b86330d5663
diff --git a/meta/recipes-devtools/perl/perl/debian/prefix_changes.diff b/meta/recipes-devtools/perl/perl/debian/prefix_changes.diff
new file mode 100644
index 0000000000..c41efbe3e8
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/prefix_changes.diff
@@ -0,0 +1,118 @@
1From 914948f026efce02cf0abff8b0312aaad96592ed Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Tue, 8 Mar 2005 19:30:38 +1100
4Subject: Fiddle with *PREFIX and variables written to the makefile
5
6Fiddle with *PREFIX and variables written to the makefile so that
7install directories may be changed when make is run by passing
8PREFIX= to the "make install" command (used when packaging
9modules).
10
11Patch-Name: debian/prefix_changes.diff
12---
13 cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm | 12 ++++++------
14 cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | 3 +--
15 cpan/ExtUtils-MakeMaker/t/INST.t | 4 +---
16 cpan/ExtUtils-MakeMaker/t/INST_PREFIX.t | 10 +++++-----
17 4 files changed, 13 insertions(+), 16 deletions(-)
18
19diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm
20index 4c00129..1ea2035 100644
21--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm
22+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Any.pm
23@@ -902,8 +902,6 @@ all POD files in MAN1PODS and MAN3PODS.
24 sub manifypods_target {
25 my($self) = shift;
26
27- my $man1pods = '';
28- my $man3pods = '';
29 my $dependencies = '';
30
31 # populate manXpods & dependencies:
32@@ -919,7 +917,7 @@ END
33 foreach my $section (qw(1 3)) {
34 my $pods = $self->{"MAN${section}PODS"};
35 my $p2m = sprintf <<CMD, $] > 5.008 ? " -u" : "";
36- \$(NOECHO) \$(POD2MAN) --section=$section --perm_rw=\$(PERM_RW)%s
37+ \$(NOECHO) \$(POD2MAN) --section=\$(MAN${section}EXT) --perm_rw=\$(PERM_RW)%s
38 CMD
39 push @man_cmds, $self->split_command($p2m, map {($_,$pods->{$_})} sort keys %$pods);
40 }
41@@ -1875,9 +1873,11 @@ sub init_INSTALL_from_PREFIX {
42 $self->{SITEPREFIX} ||= $sprefix;
43 $self->{VENDORPREFIX} ||= $vprefix;
44
45- # Lots of MM extension authors like to use $(PREFIX) so we
46- # put something sensible in there no matter what.
47- $self->{PREFIX} = '$('.uc $self->{INSTALLDIRS}.'PREFIX)';
48+ my $p = $self->{PREFIX} = $self->{PERLPREFIX};
49+ for my $t (qw/PERL SITE VENDOR/)
50+ {
51+ $self->{"${t}PREFIX"} =~ s!^\Q$p\E(?=/|$)!\$(PREFIX)!;
52+ }
53 }
54
55 my $arch = $Config{archname};
56diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
57index 391dc22..4a8e14c 100644
58--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
59+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
60@@ -3077,8 +3077,7 @@ sub prefixify {
61 warn " prefixify $var => $path\n" if $Verbose >= 2;
62 warn " from $sprefix to $rprefix\n" if $Verbose >= 2;
63
64- if( $self->{ARGS}{PREFIX} &&
65- $path !~ s{^\Q$sprefix\E\b}{$rprefix}s )
66+ if( $path !~ s{^\Q$sprefix\E\b}{$rprefix}s && $self->{ARGS}{PREFIX} )
67 {
68
69 warn " cannot prefix, using default.\n" if $Verbose >= 2;
70diff --git a/cpan/ExtUtils-MakeMaker/t/INST.t b/cpan/ExtUtils-MakeMaker/t/INST.t
71index 91058bb..e399ced 100644
72--- a/cpan/ExtUtils-MakeMaker/t/INST.t
73+++ b/cpan/ExtUtils-MakeMaker/t/INST.t
74@@ -65,9 +65,7 @@ isa_ok( $mm, 'ExtUtils::MakeMaker' );
75 is( $mm->{NAME}, 'Big::Dummy', 'NAME' );
76 is( $mm->{VERSION}, 0.01, 'VERSION' );
77
78-my $config_prefix = $Config{installprefixexp} || $Config{installprefix} ||
79- $Config{prefixexp} || $Config{prefix};
80-is( $mm->{PERLPREFIX}, $config_prefix, 'PERLPREFIX' );
81+is( $mm->{PERLPREFIX}, '$(PREFIX)', 'PERLPREFIX' );
82
83 is( !!$mm->{PERL_CORE}, !!$ENV{PERL_CORE}, 'PERL_CORE' );
84
85diff --git a/cpan/ExtUtils-MakeMaker/t/INST_PREFIX.t b/cpan/ExtUtils-MakeMaker/t/INST_PREFIX.t
86index e8de7c6..3fb3f12 100644
87--- a/cpan/ExtUtils-MakeMaker/t/INST_PREFIX.t
88+++ b/cpan/ExtUtils-MakeMaker/t/INST_PREFIX.t
89@@ -10,7 +10,7 @@ BEGIN {
90 }
91
92 use strict;
93-use Test::More tests => 52;
94+use Test::More tests => 47;
95 use MakeMaker::Test::Utils;
96 use MakeMaker::Test::Setup::BFD;
97 use ExtUtils::MakeMaker;
98@@ -62,16 +62,16 @@ like( $stdout->read, qr{
99 (?:Writing\ MYMETA.yml\ and\ MYMETA.json\n)?
100 }x );
101
102-is( $mm->{PREFIX}, '$(SITEPREFIX)', 'PREFIX set based on INSTALLDIRS' );
103+#is( $mm->{PREFIX}, '$(SITEPREFIX)', 'PREFIX set based on INSTALLDIRS' );
104
105 isa_ok( $mm, 'ExtUtils::MakeMaker' );
106
107 is( $mm->{NAME}, 'Big::Dummy', 'NAME' );
108 is( $mm->{VERSION}, 0.01, 'VERSION' );
109
110-foreach my $prefix (qw(PREFIX PERLPREFIX SITEPREFIX VENDORPREFIX)) {
111- unlike( $mm->{$prefix}, qr/\$\(PREFIX\)/ );
112-}
113+#foreach my $prefix (qw(PREFIX PERLPREFIX SITEPREFIX VENDORPREFIX)) {
114+# unlike( $mm->{$prefix}, qr/\$\(PREFIX\)/ );
115+#}
116
117
118 my $PREFIX = File::Spec->catdir('foo', 'bar');
diff --git a/meta/recipes-devtools/perl/perl/debian/prune_libs.diff b/meta/recipes-devtools/perl/perl/debian/prune_libs.diff
new file mode 100644
index 0000000000..b4443f6476
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/prune_libs.diff
@@ -0,0 +1,38 @@
1From 21bc033755f0b609f9bb2aa9e98b10d58424406f Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Fri, 18 Mar 2005 22:22:25 +1100
4Subject: Prune the list of libraries wanted to what we actually need.
5
6Bug-Debian: http://bugs.debian.org/128355
7
8We want to keep the dependencies on perl-base as small as possible,
9and some of the original list may be present on buildds (see Bug#128355).
10
11Patch-Name: debian/prune_libs.diff
12---
13 Configure | 5 ++---
14 1 file changed, 2 insertions(+), 3 deletions(-)
15
16diff --git a/Configure b/Configure
17index 0a405d3..6fcc3bc 100755
18--- a/Configure
19+++ b/Configure
20@@ -1454,8 +1454,7 @@ libswanted_uselargefiles=''
21 : set usesocks on the Configure command line to enable socks.
22 : List of libraries we want.
23 : If anyone needs extra -lxxx, put those in a hint file.
24-libswanted="cl pthread socket bind inet nsl nm ndbm gdbm dbm db malloc dl ld"
25-libswanted="$libswanted sun m crypt sec util c cposix posix ucb bsd BSD"
26+libswanted='gdbm gdbm_compat db dl m c crypt'
27 : We probably want to search /usr/shlib before most other libraries.
28 : This is only used by the lib/ExtUtils/MakeMaker.pm routine extliblist.
29 glibpth=`echo " $glibpth " | sed -e 's! /usr/shlib ! !'`
30@@ -23593,7 +23592,7 @@ sunos*X4*)
31 ;;
32 *) case "$usedl" in
33 $define|true|[yY]*)
34- set X `echo " $libs " | sed -e 's@ -lndbm @ @' -e 's@ -lgdbm @ @' -e 's@ -lgdbm_compat @ @' -e 's@ -ldbm @ @' -e 's@ -ldb @ @'`
35+ set X `echo " $libs " | sed -e 's@ -lgdbm @ @' -e 's@ -lgdbm_compat @ @' -e 's@ -ldb @ @'`
36 shift
37 perllibs="$*"
38 ;;
diff --git a/meta/recipes-devtools/perl/perl/debian/regen-skip.diff b/meta/recipes-devtools/perl/perl/debian/regen-skip.diff
new file mode 100644
index 0000000000..8a3fc9912c
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/regen-skip.diff
@@ -0,0 +1,27 @@
1From cb3e98e17a666896150b109694e9eb9278620845 Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Sat, 17 May 2014 14:57:01 +0300
4Subject: Skip a regeneration check in unrelated git repositories
5
6If the test is run in a git repository without lib/.gitignore,
7for instance because the repository only imported the Perl tarball,
8the regeneration check is broken because lib/.gitignore is missing.
9
10Patch-Name: debian/regen-skip.diff
11---
12 regen/lib_cleanup.pl | 2 +-
13 1 file changed, 1 insertion(+), 1 deletion(-)
14
15diff --git a/regen/lib_cleanup.pl b/regen/lib_cleanup.pl
16index c9d6e43..fece1ed 100644
17--- a/regen/lib_cleanup.pl
18+++ b/regen/lib_cleanup.pl
19@@ -159,7 +159,7 @@ foreach ('win32/Makefile', 'win32/makefile.mk') {
20 }
21
22 # This must come last as it can exit early:
23-if ($TAP && !-d '.git' && !-f 'lib/.gitignore') {
24+if ($TAP && !-d '.git' || !-f 'lib/.gitignore') {
25 print "ok # skip not being run from a git checkout, hence no lib/.gitignore\n";
26 exit 0;
27 }
diff --git a/meta/recipes-devtools/perl/perl/debian/skip-kfreebsd-crash.diff b/meta/recipes-devtools/perl/perl/debian/skip-kfreebsd-crash.diff
new file mode 100644
index 0000000000..ecfc0bc62f
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/skip-kfreebsd-crash.diff
@@ -0,0 +1,40 @@
1From 42853af65a28066b119d23d96e964e94b55a8541 Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Fri, 5 Aug 2011 10:50:18 +0300
4Subject: Skip a crashing test case in t/op/threads.t on GNU/kFreeBSD
5
6Bug: http://rt.perl.org/rt3/Ticket/Display.html?id=96272
7Bug-Debian: http://bugs.debian.org/628493
8
9The crash is not a regression in 5.14, it just gets triggered there by
10a new unrelated test case.
11
12Skip the test until the culprit is found.
13
14Patch-Name: debian/skip-kfreebsd-crash.diff
15---
16 t/op/threads.t | 4 ++++
17 1 file changed, 4 insertions(+)
18
19diff --git a/t/op/threads.t b/t/op/threads.t
20index e76c956..bec210b 100644
21--- a/t/op/threads.t
22+++ b/t/op/threads.t
23@@ -376,6 +376,9 @@ EOF
24 }
25
26
27+SKIP: {
28+ skip "[perl #96272] avoid crash on GNU/kFreeBSD", 1
29+ if $^O eq 'gnukfreebsd';
30 # [perl #78494] Pipes shared between threads block when closed
31 {
32 my $perl = which_perl;
33@@ -384,6 +387,7 @@ EOF
34 threads->create(sub { })->join;
35 ok(1, "Pipes shared between threads do not block when closed");
36 }
37+}
38
39 # [perl #105208] Typeglob clones should not be cloned again during a join
40 {
diff --git a/meta/recipes-devtools/perl/perl/debian/skip-upstream-git-tests.diff b/meta/recipes-devtools/perl/perl/debian/skip-upstream-git-tests.diff
new file mode 100644
index 0000000000..4c87104cce
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/skip-upstream-git-tests.diff
@@ -0,0 +1,28 @@
1From ae9b645d6da2990fd055368eca2c67c449474e38 Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Fri, 22 Apr 2011 11:15:32 +0300
4Subject: Skip tests specific to the upstream Git repository
5
6These tests fail if run from a different git repository than
7upstream. This complicates things needlessly for downstream packagers.
8
9Skip the tests altogether even if the .git directory exists.
10
11Patch-Name: debian/skip-upstream-git-tests.diff
12---
13 t/test.pl | 2 +-
14 1 file changed, 1 insertion(+), 1 deletion(-)
15
16diff --git a/t/test.pl b/t/test.pl
17index cda3840..af579a2 100644
18--- a/t/test.pl
19+++ b/t/test.pl
20@@ -174,7 +174,7 @@ sub skip_all_without_unicode_tables { # (but only under miniperl)
21
22 sub find_git_or_skip {
23 my ($source_dir, $reason);
24- if (-d '.git') {
25+ if (-d '.git' && ! -d 'debian') {
26 $source_dir = '.';
27 } elsif (-l 'MANIFEST' && -l 'AUTHORS') {
28 my $where = readlink 'MANIFEST';
diff --git a/meta/recipes-devtools/perl/perl/debian/squelch-locale-warnings.diff b/meta/recipes-devtools/perl/perl/debian/squelch-locale-warnings.diff
new file mode 100644
index 0000000000..cb31457761
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/squelch-locale-warnings.diff
@@ -0,0 +1,56 @@
1From 487a6d6ada0b08e6a7276520ebc61cd851005e7c Mon Sep 17 00:00:00 2001
2From: Niko Tyni <ntyni@debian.org>
3Date: Sun, 3 Oct 2010 21:36:17 +0300
4Subject: Squelch locale warnings in Debian package maintainer scripts
5
6Bug-Debian: http://bugs.debian.org/508764
7
8The system locales are rather frequently out of sync with the C library
9during package upgrades, causing a huge amount of useless Perl locale
10warnings. Squelch them when running package maintainer scripts, detected
11by the DPKG_RUNNING_VERSION environment variable.
12
13Any real locale problem will show up after the system upgrade too, and
14the warning will be triggered normally again at that point.
15
16Patch-Name: debian/squelch-locale-warnings.diff
17---
18 locale.c | 5 ++++-
19 pod/perllocale.pod | 8 ++++++++
20 2 files changed, 12 insertions(+), 1 deletion(-)
21
22diff --git a/locale.c b/locale.c
23index 7a4a418..fdf911d 100644
24--- a/locale.c
25+++ b/locale.c
26@@ -674,7 +674,10 @@ Perl_init_i18nl10n(pTHX_ int printwarn)
27
28 const bool locwarn = (printwarn > 1
29 || (printwarn
30- && (! bad_lang_use_once
31+ &&
32+ /* Debian specific change - see http://bugs.debian.org/508764 */
33+ (!PerlEnv_getenv("DPKG_RUNNING_VERSION")) &&
34+ (! bad_lang_use_once
35 || (
36 /* disallow with "" or "0" */
37 *bad_lang_use_once
38diff --git a/pod/perllocale.pod b/pod/perllocale.pod
39index 701b422..58cabaf 100644
40--- a/pod/perllocale.pod
41+++ b/pod/perllocale.pod
42@@ -1217,6 +1217,14 @@ B<NOTE>: C<PERL_BADLANG> only gives you a way to hide the warning message.
43 The message tells about some problem in your system's locale support,
44 and you should investigate what the problem is.
45
46+=item DPKG_RUNNING_VERSION
47+
48+On Debian systems, if the DPKG_RUNNING_VERSION environment variable is
49+set (to any value), the locale failure warnings will be suppressed just
50+like with a zero PERL_BADLANG setting. This is done to avoid floods
51+of spurious warnings during system upgrades.
52+See L<http://bugs.debian.org/508764>.
53+
54 =back
55
56 The following environment variables are not specific to Perl: They are
diff --git a/meta/recipes-devtools/perl/perl/debian/writable_site_dirs.diff b/meta/recipes-devtools/perl/perl/debian/writable_site_dirs.diff
new file mode 100644
index 0000000000..53adc2f4db
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/debian/writable_site_dirs.diff
@@ -0,0 +1,36 @@
1From 591c1f9b7d4755bfc59d9665bab1f2ca410de765 Mon Sep 17 00:00:00 2001
2From: Brendan O'Dea <bod@debian.org>
3Date: Tue, 8 Mar 2005 19:30:38 +1100
4Subject: Set umask approproately for site install directories
5
6Policy requires group writable site directories
7
8Patch-Name: debian/writable_site_dirs.diff
9---
10 cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | 6 +++---
11 1 file changed, 3 insertions(+), 3 deletions(-)
12
13diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
14index 197f102..5f1b87f 100644
15--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
16+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
17@@ -2138,7 +2138,7 @@ q{ "$(INST_LIB)" "$(DESTINSTALLPRIVLIB)" \
18
19
20 pure_site_install :: all
21- $(NOECHO) umask 022; $(MOD_INSTALL) \
22+ $(NOECHO) umask 02; $(MOD_INSTALL) \
23 };
24 push @m,
25 q{ read "}.$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist').q{" \
26@@ -2199,8 +2199,8 @@ doc_perl_install :: all
27
28 doc_site_install :: all
29 $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
30- -$(NOECHO) umask 022; $(MKPATH) "$(DESTINSTALLARCHLIB)"
31- -$(NOECHO) umask 022; $(DOC_INSTALL) \
32+ -$(NOECHO) umask 02; $(MKPATH) "$(DESTINSTALLARCHLIB)"
33+ -$(NOECHO) umask 02; $(DOC_INSTALL) \
34 "Module" "$(NAME)" \
35 "installed into" $(INSTALLSITELIB) \
36 LINKTYPE "$(LINKTYPE)" \
diff --git a/meta/recipes-devtools/perl/perl/dynaloaderhack.patch b/meta/recipes-devtools/perl/perl/dynaloaderhack.patch
new file mode 100644
index 0000000000..3df593346c
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/dynaloaderhack.patch
@@ -0,0 +1,23 @@
1Hack the dynamic module loader so that we use native modules since we can't load
2the target ones.
3
4Upstream-Status: Inappropriate
5
6RP
72013/01/13
8
9Index: perl-5.14.2/ext/DynaLoader/DynaLoader_pm.PL
10===================================================================
11--- perl-5.14.2.orig/ext/DynaLoader/DynaLoader_pm.PL 2011-09-19 13:18:22.000000000 +0000
12+++ perl-5.14.2/ext/DynaLoader/DynaLoader_pm.PL 2013-01-19 16:09:51.020584945 +0000
13@@ -310,6 +310,10 @@
14 foreach (@INC) {
15 <<$^O-eq-VMS>>chop($_ = VMS::Filespec::unixpath($_));<</$^O-eq-VMS>>
16 my $dir = "$_/auto/$modpname";
17+
18+ if (defined $ENV{PERL_LIB} and defined $ENV{PERLHOSTLIB}) {
19+ $dir =~ s/$ENV{PERL_LIB}/$ENV{PERLHOSTLIB}/g;
20+ }
21
22 next unless -d $dir; # skip over uninteresting directories
23
diff --git a/meta/recipes-devtools/perl/perl/fix_bad_rpath.patch b/meta/recipes-devtools/perl/perl/fix_bad_rpath.patch
new file mode 100644
index 0000000000..69ac434779
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/fix_bad_rpath.patch
@@ -0,0 +1,24 @@
1Upstream-Status:Inappropriate [embedded specific]
2Signed-Off-By: Nitin A Kamble <nitin.a.kamble@intel.com>
32011/07/01
4
5Fix these Package QA warnings before they are converted into fetal errors:
6
7WARNING: QA Issue: package perl-module-compress contains bad RPATH /build_disk/poky_build/build0/tmp/sysroots/qemux86/usr/lib in file /build_disk/poky_build/build0/tmp/work/i586-poky-linux/perl-5.12.3-r1/packages-split/perl-module-compress/usr/lib/perl/5.12.3/auto/Compress/Raw/Zlib/Zlib.so
8
9This fixes this warning for perl recipe as well as libxml-parser-perl recipe.
10It is a fix to MakeMaker within perl, so all such perl recipes will get
11fixed with this perl fix.
12
13Index: perl-5.14.2/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm
14===================================================================
15--- perl-5.14.2.orig/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm
16+++ perl-5.14.2/cpan/ExtUtils-MakeMaker/lib/ExtUtils/Liblist/Kid.pm
17@@ -55,6 +55,7 @@ sub _unix_os2_ext {
18 my($found) = 0;
19
20 # Debian-specific: don't use LD_RUN_PATH for standard dirs
21+ push(@libpath, "SYSROOTLIB");
22 $ld_run_path_seen{$_}++ for @libpath;
23
24 foreach my $thislib (split ' ', $potential_libs) {
diff --git a/meta/recipes-devtools/perl/perl/generate-sh.patch b/meta/recipes-devtools/perl/perl/generate-sh.patch
new file mode 100644
index 0000000000..27f6e691c0
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/generate-sh.patch
@@ -0,0 +1,56 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3Use the ld flags from the supplied configuration file. For sh we need the
4flags that specify to build PIC code so that the shared libraries work.
5
6Index: perl-5.14.2/Cross/generate_config_sh
7===================================================================
8--- perl-5.14.2.orig/Cross/generate_config_sh 2010-12-30 04:07:14.000000000 +0200
9+++ perl-5.14.2/Cross/generate_config_sh 2012-11-22 15:58:49.852852805 +0200
10@@ -19,10 +19,10 @@
11 $callbacks->{'ar'} = [\&simple_process, ["AR", "arm-linux-ar"]];
12 $callbacks->{'archname'} = [\&simple_process, ["SYS", "armv4l-linux"]];
13 $callbacks->{'cc'} = [\&simple_process, ["CC", "arm-linux-gcc"]];
14-$callbacks->{'cccdlflags'} = [\&simple_process, ["CFLAGS", ""]];
15-$callbacks->{'ccdlflags'} = [\&simple_process, ["CFLAGS", ""]];
16-$callbacks->{'ccflags'} = [\&simple_process, ["CFLAGS", "-fno-strict-aliasing -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]];
17-$callbacks->{'ccflags_uselargefiles'} = [\&simple_process, ["CFLAGS", "-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]];
18+#$callbacks->{'cccdlflags'} = [\&simple_process, ["CFLAGS", ""]];
19+#$callbacks->{'ccdlflags'} = [\&simple_process, ["CFLAGS", ""]];
20+$callbacks->{'ccflags'} = [\&simple_process_insert, ["CFLAGS", "-fno-strict-aliasing -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]];
21+$callbacks->{'ccflags_uselargefiles'} = [\&simple_process_insert, ["CFLAGS", "-D_GNU_SOURCE -DTHREADS_HAVE_PIDS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"]];
22 $callbacks->{'ccname'} = [\&simple_process, ["CC", "arm-linux-gcc"]];
23 $callbacks->{'cpp'} = [\&simple_process, ["CCP", "arm-linux-cpp"]];
24 $callbacks->{'cppflags'} = [\&simple_process, ["CCPFLAGS", "-fno-strict-aliasing"]];
25@@ -30,6 +30,7 @@
26 $callbacks->{'cppstdin'} = [\&simple_process_append, ["CC", "arm-linux-gcc -E", "-E"]];
27 $callbacks->{'full_ar'} = [\&backtick, ["AR", "which $ENV{AR}", "/usr/local/arm/2.95.3/bin/arm-linux-ar"]];
28 $callbacks->{'ld'} = [\&simple_process, ["LD", "arm-linux-ld"]];
29+$callbacks->{'lddlflags'} = [\&simple_process, ["LDDLFLAGS", ""]];
30 $callbacks->{'ldflags'} = [\&simple_process, ["LDFLAGS", ""]];
31 $callbacks->{'ldflags_uselargefiles'} = [\&simple_process, ["LDFLAGS", ""]];
32 $callbacks->{'myarchname'} = [\&simple_process, ["SYS", "armv4l-linux"]];
33@@ -105,6 +106,23 @@
34
35 }
36
37+# Insert env var into the variables value
38+sub simple_process_insert {
39+ my $key = shift;
40+ my $value = shift;
41+ my $envvar = $callbacks->{$key}->[1][0];
42+
43+ if ($ENV{$envvar}) {
44+ # Strip quotes from value
45+ $value =~ s/^\'//;
46+ $value =~ s/\'$//;
47+ # Remove -I/usr/local/... from the value
48+ $value =~ s#\W-I/usr/local/\w+\W# #g;
49+ # Prepend env var (OE setting) to value
50+ print("$key=\'$ENV{$envvar} $value\'\n");
51+ }
52+}
53+
54 sub library_munge {
55 my $key = shift;
56 my $value = shift;
diff --git a/meta/recipes-devtools/perl/perl/installperl.patch b/meta/recipes-devtools/perl/perl/installperl.patch
new file mode 100644
index 0000000000..456012376e
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/installperl.patch
@@ -0,0 +1,17 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3Index: perl-5.12.3/installperl
4===================================================================
5--- perl-5.12.3.orig/installperl
6+++ perl-5.12.3/installperl
7@@ -3,8 +3,8 @@
8 BEGIN {
9 require 5.004;
10 chdir '..' if !-d 'lib' and -d '../lib';
11- @INC = 'lib';
12- $ENV{PERL5LIB} = 'lib';
13+# @INC = 'lib';
14+# $ENV{PERL5LIB} = 'lib';
15
16 # This needs to be at BEGIN time, before any use of Config
17 require './install_lib.pl';
diff --git a/meta/recipes-devtools/perl/perl/letgcc-find-errno.patch b/meta/recipes-devtools/perl/perl/letgcc-find-errno.patch
new file mode 100644
index 0000000000..5161e4c8b6
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/letgcc-find-errno.patch
@@ -0,0 +1,46 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3This removes all the logic that perl uses to locate an appropriate
4errno.h for the target. Instead we simple create a file that does
5
6 #include "errno.h"
7
8and use that as the file to parse. This is needed when using an
9external toolchain since perl will search in ${STAGING_INCDIR} for
10errno.h (when using gcc) and that isn't where it's located - its
11wherever the external toolchain keeps it's headers.
12
13Index: perl-5.12.3/ext/Errno/Errno_pm.PL
14===================================================================
15--- perl-5.12.3.orig/ext/Errno/Errno_pm.PL
16+++ perl-5.12.3/ext/Errno/Errno_pm.PL
17@@ -17,8 +17,18 @@ unlink "Errno.tmp" if -f "Errno.tmp";
18 open OUT, ">Errno.tmp" or die "Cannot open Errno.tmp: $!";
19 select OUT;
20 my $file;
21-my @files = get_files();
22-if ($Config{gccversion} ne '' && $^O eq 'MSWin32') {
23+#my @files = get_files();
24+my @files = ("errno.h");
25+
26+if (1) {
27+ open INCS, '>includes.c' or
28+ die "Cannot open includes.c";
29+ print INCS qq[#include "errno.h"\n];
30+ close INCS;
31+ process_file('includes.c');
32+ unlink 'includes.c';
33+}
34+elsif ($Config{gccversion} ne '' && $^O eq 'MSWin32') {
35 # MinGW complains "warning: #pragma system_header ignored outside include
36 # file" if the header files are processed individually, so include them
37 # all in .c file and process that instead.
38@@ -53,7 +63,7 @@ sub process_file {
39 chomp($file = `cygpath -w "$file"`);
40 }
41
42- return unless defined $file and -f $file;
43+# return unless defined $file and -f $file;
44 # warn "Processing $file\n";
45
46 local *FH;
diff --git a/meta/recipes-devtools/perl/perl/make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch b/meta/recipes-devtools/perl/perl/make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch
new file mode 100644
index 0000000000..de6f65294c
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/make_ext.pl-fix-regenerate-makefile-failed-while-cc-.patch
@@ -0,0 +1,30 @@
1make_ext.pl: fix regenerate makefile failed while $cc changed
2
3While $cc changed, the existance of 'xdefine' caused makefile
4regeneration failed.
5
6Upstream-Status: Pending
7
8Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
9---
10 make_ext.pl | 4 ++++
11 1 file changed, 4 insertions(+)
12
13diff --git a/make_ext.pl b/make_ext.pl
14index b433762..9fc1a36 100644
15--- a/make_ext.pl
16+++ b/make_ext.pl
17@@ -335,6 +335,10 @@ sub build_extension {
18 print "Deleting non-Cross makefile\n";
19 close $mfh or die "close $makefile: $!";
20 _unlink($makefile);
21+ if(-e 'xdefine') {
22+ print "Deleting xdefine for regenerate makefile\n";
23+ _unlink('xdefine');
24+ }
25 }
26 }
27 }
28--
291.8.1.2
30
diff --git a/meta/recipes-devtools/perl/perl/native-nopacklist.patch b/meta/recipes-devtools/perl/perl/native-nopacklist.patch
new file mode 100644
index 0000000000..5482dcb79c
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/native-nopacklist.patch
@@ -0,0 +1,91 @@
1Upstream-Status:Inappropriate [debian patch]
2
3Part of 52_debian_extutils_hacks.patch just to exclude the installation of .packlist files
4
5Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
6---
7 cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm | 35 ++---------------------
8 1 file changed, 3 insertions(+), 32 deletions(-)
9
10diff --git a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
11index f63145c..a589710 100644
12--- a/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
13+++ b/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm
14@@ -2122,11 +2122,6 @@ pure_perl_install :: all
15 };
16
17 push @m,
18-q{ read "}.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{" \
19- write "}.$self->catfile('$(DESTINSTALLARCHLIB)','auto','$(FULLEXT)','.packlist').q{" \
20-} unless $self->{NO_PACKLIST};
21-
22- push @m,
23 q{ "$(INST_LIB)" "$(DESTINSTALLPRIVLIB)" \
24 "$(INST_ARCHLIB)" "$(DESTINSTALLARCHLIB)" \
25 "$(INST_BIN)" "$(DESTINSTALLBIN)" \
26@@ -2158,10 +2153,6 @@ q{ "$(INST_LIB)" "$(DESTINSTALLSITELIB)" \
27 pure_vendor_install :: all
28 $(NOECHO) $(MOD_INSTALL) \
29 };
30- push @m,
31-q{ read "}.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{" \
32- write "}.$self->catfile('$(DESTINSTALLVENDORARCH)','auto','$(FULLEXT)','.packlist').q{" \
33-} unless $self->{NO_PACKLIST};
34
35 push @m,
36 q{ "$(INST_LIB)" "$(DESTINSTALLVENDORLIB)" \
37@@ -2187,37 +2178,19 @@ doc_vendor_install :: all
38
39 push @m, q{
40 doc_perl_install :: all
41- $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
42- -$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
43- -$(NOECHO) $(DOC_INSTALL) \
44- "Module" "$(NAME)" \
45- "installed into" $(INSTALLPRIVLIB) \
46- LINKTYPE "$(LINKTYPE)" \
47- VERSION "$(VERSION)" \
48- EXE_FILES "$(EXE_FILES)" \
49- >> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
50
51 doc_site_install :: all
52- $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
53- -$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
54+ $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLSITEARCH)/perllocal.pod"
55+ -$(NOECHO) $(MKPATH) "$(DESTINSTALLSITEARCH)"
56 -$(NOECHO) $(DOC_INSTALL) \
57 "Module" "$(NAME)" \
58 "installed into" $(INSTALLSITELIB) \
59 LINKTYPE "$(LINKTYPE)" \
60 VERSION "$(VERSION)" \
61 EXE_FILES "$(EXE_FILES)" \
62- >> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
63+ >> "}.$self->catfile('$(DESTINSTALLSITEARCH)','perllocal.pod').q{"
64
65 doc_vendor_install :: all
66- $(NOECHO) $(ECHO) Appending installation info to "$(DESTINSTALLARCHLIB)/perllocal.pod"
67- -$(NOECHO) $(MKPATH) "$(DESTINSTALLARCHLIB)"
68- -$(NOECHO) $(DOC_INSTALL) \
69- "Module" "$(NAME)" \
70- "installed into" $(INSTALLVENDORLIB) \
71- LINKTYPE "$(LINKTYPE)" \
72- VERSION "$(VERSION)" \
73- EXE_FILES "$(EXE_FILES)" \
74- >> "}.$self->catfile('$(DESTINSTALLARCHLIB)','perllocal.pod').q{"
75
76 } unless $self->{NO_PERLLOCAL};
77
78@@ -2226,13 +2199,11 @@ uninstall :: uninstall_from_$(INSTALLDIRS)dirs
79 $(NOECHO) $(NOOP)
80
81 uninstall_from_perldirs ::
82- $(NOECHO) $(UNINSTALL) "}.$self->catfile('$(PERL_ARCHLIB)','auto','$(FULLEXT)','.packlist').q{"
83
84 uninstall_from_sitedirs ::
85 $(NOECHO) $(UNINSTALL) "}.$self->catfile('$(SITEARCHEXP)','auto','$(FULLEXT)','.packlist').q{"
86
87 uninstall_from_vendordirs ::
88- $(NOECHO) $(UNINSTALL) "}.$self->catfile('$(VENDORARCHEXP)','auto','$(FULLEXT)','.packlist').q{"
89 };
90
91 join("",@m);
diff --git a/meta/recipes-devtools/perl/perl/native-perlinc.patch b/meta/recipes-devtools/perl/perl/native-perlinc.patch
new file mode 100644
index 0000000000..f0bb1f6596
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/native-perlinc.patch
@@ -0,0 +1,26 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3Index: perl-5.8.8/lib/ExtUtils/MM_Unix.pm
4===================================================================
5--- perl-5.12.3.orig/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm 2008-10-31 22:01:35.000000000 +0000
6+++ perl-5.12.3/cpan/ExtUtils-MakeMaker/lib/ExtUtils/MM_Unix.pm 2008-10-31 22:01:35.000000000 +0000
7@@ -1597,6 +1597,19 @@
8 $self->{PERL_LIB} ||= $Config{privlibexp};
9 $self->{PERL_ARCHLIB} ||= $Config{archlibexp};
10 $self->{PERL_INC} = $self->catdir("$self->{PERL_ARCHLIB}","CORE"); # wild guess for now
11+ # Check for environment override so we'll find the headers in the correct place
12+ if (defined $ENV{PERL_LIB})
13+ {
14+ $self->{PERL_LIB} = $ENV{PERL_LIB};
15+ }
16+ if (defined $ENV{PERL_ARCHLIB})
17+ {
18+ $self->{PERL_ARCHLIB} = $ENV{PERL_ARCHLIB};
19+ }
20+ if (defined $ENV{PERL_INC})
21+ {
22+ $self->{PERL_INC} = $ENV{PERL_INC};
23+ }
24 my $perl_h;
25
26 if (not -f ($perl_h = $self->catfile($self->{PERL_INC},"perl.h"))
diff --git a/meta/recipes-devtools/perl/perl/perl-archlib-exp.patch b/meta/recipes-devtools/perl/perl/perl-archlib-exp.patch
new file mode 100644
index 0000000000..d912d0031e
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/perl-archlib-exp.patch
@@ -0,0 +1,40 @@
1perl: add archlib_exp variable used to generate ARCHLIB_EXP in config.h
2
3perl.c uses an ARCHLIB_EXP define to generate compile-time code that
4adds the archlibexp path to @INC during run-time initialization of a
5new perl interpreter.
6
7Because we've changed this value in a temporary way to make it
8possible to use ExtUtils::Embed in the target build (the temporary
9value in config.sh gets re-stripped out during packaging), the
10ARCHLIB_EXP value that gets generated still uses the temporary version
11instead of the original expected version (i.e. becauses it's in the
12generated config.h, it doesn't get stripped out during packaging like
13the others in config.sh).
14
15This creates an unmodified version called archlib_exp that gets used
16by a modified config_h.SH to get the correct value into config.h
17
18This patch uses an unmodified version of archlibexp called
19archlib_exp, introduced to config.sh, which is used to generate the
20correct value of ARCHLIB_EXP into config.h
21
22See YOCTO #3099 for more info.
23
24Upstream-Status:Inappropriate [embedded specific]
25
26Signed-off-by: Tom Zanussi <tom.zanussi@intel.com>
27
28Index: perl-5.14.2/config_h.SH
29===================================================================
30--- perl-5.14.2.orig/config_h.SH
31+++ perl-5.14.2/config_h.SH
32@@ -996,7 +996,7 @@ sed <<!GROK!THIS! >$CONFIG_H -e 's!^#und
33 * in programs that are not prepared to deal with ~ expansion at run-time.
34 */
35 #$d_archlib ARCHLIB "$archlib" /**/
36-#$d_archlib ARCHLIB_EXP "$archlibexp" /**/
37+#$d_archlib ARCHLIB_EXP "$archlib_exp" /**/
38
39 /* ARCHNAME:
40 * This symbol holds a string representing the architecture name.
diff --git a/meta/recipes-devtools/perl/perl/perl-configpm-switch.patch b/meta/recipes-devtools/perl/perl/perl-configpm-switch.patch
new file mode 100644
index 0000000000..c6cc15c93f
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/perl-configpm-switch.patch
@@ -0,0 +1,47 @@
1Upstream-Status:Inappropriate [native]
2
3This patch is used for perl-native only. It enables the switching of
4configuration files between Config_heavy.pl and
5Config_heavy-target.pl by setting the environment variables
6PERLCONFIGTARGET - the later containing settings for the target while
7the former contains those for the host. This will allow cpan.bbclass
8to use the settings appropriate for the native and/or target builds
9as required. This also disables the use of the cache since the cached
10values would be valid for the host only.
11
12Index: perl-5.14.2/configpm
13===================================================================
14--- perl-5.14.2.orig/configpm
15+++ perl-5.14.2/configpm
16@@ -658,7 +658,7 @@ sub FETCH {
17 my($self, $key) = @_;
18
19 # check for cached value (which may be undef so we use exists not defined)
20- return exists $self->{$key} ? $self->{$key} : $self->fetch_string($key);
21+ return $self->fetch_string($key);
22 }
23
24 ENDOFEND
25@@ -816,7 +816,21 @@ $config_txt .= sprintf <<'ENDOFTIE', $fa
26 sub DESTROY { }
27
28 sub AUTOLOAD {
29- require 'Config_heavy.pl';
30+ my $cfgfile = 'Config_heavy.pl';
31+ if (defined $ENV{PERLCONFIGTARGET} and $ENV{PERLCONFIGTARGET} eq "yes")
32+ {
33+ $cfgfile = 'Config_heavy-target.pl';
34+ }
35+ if (defined $ENV{PERL_ARCHLIB})
36+ {
37+ push @INC, $ENV{PERL_ARCHLIB};
38+ require $cfgfile;
39+ pop @INC;
40+ }
41+ else
42+ {
43+ require $cfgfile;
44+ }
45 goto \&launcher unless $Config::AUTOLOAD =~ /launcher$/;
46 die "&Config::AUTOLOAD failed on $Config::AUTOLOAD";
47 }
diff --git a/meta/recipes-devtools/perl/perl/perl-configure.sh b/meta/recipes-devtools/perl/perl/perl-configure.sh
new file mode 100755
index 0000000000..e72ce49f99
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/perl-configure.sh
@@ -0,0 +1,43 @@
1#! /bin/sh
2
3#
4# Generate the common perl configuration
5# Needs to be run on a host that matches the bitsize of the target platform
6#
7
8echo sh Configure -des \
9 -Doptimize=-O2 \
10 -Dmyhostname=localhost \
11 -Dperladmin=root@localhost \
12 -Dcc=gcc \
13 -Dcf_by='Open Embedded' \
14 -Dinstallprefix=@DESTDIR@ \
15 -Dprefix=/usr \
16 -Dvendorprefix=/usr \
17 -Dsiteprefix=/usr \
18 -Dotherlibdirs=/usr/lib/perl5/5.12.3 \
19 -Duseshrplib \
20 -Dusethreads \
21 -Duseithreads \
22 -Duselargefiles \
23 -Ud_dosuid \
24 -Dd_semctl_semun \
25 -Ui_db \
26 -Ui_ndbm \
27 -Ui_gdbm \
28 -Di_shadow \
29 -Di_syslog \
30 -Dman3ext=3pm \
31 -Duseperlio \
32 -Dinstallusrbinperl \
33 -Ubincompat5005 \
34 -Uversiononly \
35 -Dpager='/usr/bin/less -isr'
36
37cp -f config.sh config.sh.COMMON
38
39TARGETOS=$(grep myarchname config.sh.COMMON | sed "s#.*'\(.*\)'.*#\1#")
40
41sed -r -i config.sh.COMMON \
42 -e "s#(install.*=')(/usr)/local(.*')#\1@DESTDIR@\2\3#g" \
43 -e 's#'$TARGETOS'#@ARCH@#g'
diff --git a/meta/recipes-devtools/perl/perl/perl-dynloader.patch b/meta/recipes-devtools/perl/perl/perl-dynloader.patch
new file mode 100644
index 0000000000..035beba66a
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/perl-dynloader.patch
@@ -0,0 +1,34 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3Allow the location that .so files are searched for for dynamic
4loading to be changed via an environment variable. This is to allow
5us to load .so's from the host system while building for the target
6system.
7
8Update by Nitin A Kamble <nitin.a.kamble@intel.com> 2011/04/21
9
10Index: perl-5.14.2/dist/XSLoader/XSLoader_pm.PL
11===================================================================
12--- perl-5.14.2.orig/dist/XSLoader/XSLoader_pm.PL
13+++ perl-5.14.2/dist/XSLoader/XSLoader_pm.PL
14@@ -28,6 +28,20 @@ sub load {
15
16 my ($module, $modlibname) = caller();
17
18+ # OE: Allow env to form dynamic loader to look in a different place
19+ # This is so it finds the host .so files, not the targets
20+ if (defined $ENV{PERLHOSTLIB})
21+ {
22+ my $hostlib = $ENV{PERLHOSTLIB};
23+ print STDERR "*** Module name IN: $modlibname\n";
24+ ($p1, $p2, $p3, $p4, $p5) = $modlibname =~ m/(^(.*lib\w*\/)?)((perl\/[0-9\.]*\/)?)(.*)$/;
25+ print STDERR "*** p1: $p1 p3: $p3 p5: $p5\n";
26+ if ( $p1 ne "" ) {
27+ $modlibname = $hostlib.$p5;
28+ }
29+ print STDERR "*** Module name OUT: $modlibname\n";
30+ }
31+
32 if (@_) {
33 $module = $_[0];
34 } else {
diff --git a/meta/recipes-devtools/perl/perl/perl-enable-gdbm.patch b/meta/recipes-devtools/perl/perl/perl-enable-gdbm.patch
new file mode 100644
index 0000000000..aa83fca5ae
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/perl-enable-gdbm.patch
@@ -0,0 +1,19 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3Index: perl-5.8.8/config_h.SH
4===================================================================
5--- perl-5.8.8.orig/config_h.SH 2005-11-01 02:13:05.000000000 +0800
6+++ perl-5.8.8/config_h.SH 2010-11-01 17:06:07.215219738 +0800
7@@ -709,6 +709,12 @@
8 */
9 #$i_float I_FLOAT /**/
10
11+/* I_GDBM:
12+ * This symbol, if defined, indicates that <gdbm.h> exists and should
13+ * be included.
14+ */
15+#$i_gdbm I_GDBM /**/
16+
17 /* I_LIMITS:
18 * This symbol, if defined, indicates to the C program that it should
19 * include <limits.h> to get definition of symbols like WORD_BIT or
diff --git a/meta/recipes-devtools/perl/perl/perl-moreconfig.patch b/meta/recipes-devtools/perl/perl/perl-moreconfig.patch
new file mode 100644
index 0000000000..59ce85a7a3
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/perl-moreconfig.patch
@@ -0,0 +1,18 @@
1Upstream-Status:Inappropriate [embedded specific]
2
3We need ld in the fake config library, but it's not included by default. So
4expand the number of items included. While this works it indicates that the
5rest of the config items are not being picked up and/or are being picked up
6from the host. More investigation needed.
7
8--- perl-5.8.8/configpm 2007/04/20 09:48:05 1.1
9+++ perl-5.8.8/configpm 2007/04/20 09:57:12
10@@ -2,7 +2,7 @@
11 use strict;
12 use vars qw(%Config $Config_SH_expanded);
13
14-my $how_many_common = 22;
15+my $how_many_common = 50;
16
17 # commonly used names to precache (and hence lookup fastest)
18 my %Common;
diff --git a/meta/recipes-devtools/perl/perl/run-ptest b/meta/recipes-devtools/perl/perl/run-ptest
new file mode 100644
index 0000000000..1e2dd1b66d
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/run-ptest
@@ -0,0 +1,2 @@
1#!/bin/sh
2cd t && ./TEST | sed -u -e 's|\(.*\) .* ok$|PASS: \1|' -e 's|\(.*\) .* skipped|SKIP: \1|' -e 's|\(.*\) \.\(.*\)|FAIL: \1|'
diff --git a/meta/recipes-devtools/perl/perl/test/dist-threads-t-join.t-adjust-ps-option.patch b/meta/recipes-devtools/perl/perl/test/dist-threads-t-join.t-adjust-ps-option.patch
new file mode 100644
index 0000000000..08a6b0a5fd
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/test/dist-threads-t-join.t-adjust-ps-option.patch
@@ -0,0 +1,38 @@
1dist/threads/t/join.t: adjust ps option
2
3The ps's option '-f' is not supported by busybox in oe.
4
5Upstream-Status: [oe specific]
6Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
7---
8 dist/threads/t/join.t | 6 +++---
9 1 file changed, 3 insertions(+), 3 deletions(-)
10
11diff --git a/dist/threads/t/join.t b/dist/threads/t/join.t
12--- a/dist/threads/t/join.t
13+++ b/dist/threads/t/join.t
14@@ -118,7 +118,7 @@ if ($^O eq 'linux') {
15 })->join;
16 #print "# mainthread: \$0 = $0\n";
17 #print "# pid = $$\n";
18- if (open PS, "ps -f |") { # Note: must work in (all) systems.
19+ if (open PS, "ps |") { # Note: must work in (all) systems.
20 my ($sawpid, $sawexe);
21 while (<PS>) {
22 chomp;
23@@ -135,10 +135,10 @@ if ($^O eq 'linux') {
24 if ($sawpid) {
25 ok($sawpid && $sawexe, 'altering $0 is effective');
26 } else {
27- skip("\$0 check: did not see pid $$ in 'ps -f |'");
28+ skip("\$0 check: did not see pid $$ in 'ps |'");
29 }
30 } else {
31- skip("\$0 check: opening 'ps -f |' failed: $!");
32+ skip("\$0 check: opening 'ps |' failed: $!");
33 }
34 } else {
35 skip("\$0 check: only on Linux");
36--
371.8.1.2
38
diff --git a/meta/recipes-devtools/perl/perl/test/ext-DynaLoader-t-DynaLoader.t-fix-calling-dl_findfil.patch b/meta/recipes-devtools/perl/perl/test/ext-DynaLoader-t-DynaLoader.t-fix-calling-dl_findfil.patch
new file mode 100644
index 0000000000..1ee818c27b
--- /dev/null
+++ b/meta/recipes-devtools/perl/perl/test/ext-DynaLoader-t-DynaLoader.t-fix-calling-dl_findfil.patch
@@ -0,0 +1,26 @@
1ext/DynaLoader/t/DynaLoader.t: fix calling dl_findfile() failed
2
3Use '$Config{libc}' as the libc file name
4
5Upstream-Status: oe specific
6Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
7---
8 ext/DynaLoader/t/DynaLoader.t | 2 +-
9 1 file changed, 1 insertion(+), 1 deletion(-)
10
11diff --git a/ext/DynaLoader/t/DynaLoader.t b/ext/DynaLoader/t/DynaLoader.t
12index ade1f8e..3567afe 100644
13--- a/ext/DynaLoader/t/DynaLoader.t
14+++ b/ext/DynaLoader/t/DynaLoader.t
15@@ -106,7 +106,7 @@ ok( defined $dlerr, "dl_error() returning an error message: '$dlerr'" );
16 # ... dl_findfile()
17 SKIP: {
18 my @files = ();
19- eval { @files = DynaLoader::dl_findfile("c") };
20+ eval { @files = DynaLoader::dl_findfile($Config{libc}) };
21 is( $@, '', "calling dl_findfile()" );
22 # Some platforms are known to not have a "libc"
23 # (not at least by that name) that the dl_findfile()
24--
251.8.1.2
26