summaryrefslogtreecommitdiffstats
path: root/meta/recipes-devtools/perl
diff options
context:
space:
mode:
authorJens Rehsack <sno@netbsd.org>2020-01-21 17:46:41 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-01-22 15:56:14 +0000
commitdba237a1ee36e893fa8f6d68e041069aac519f02 (patch)
tree28f4b7072825d28df154c15146eb1f044fb798c0 /meta/recipes-devtools/perl
parentfd983f2e9b6e2ada9bc4cb3779ca1c8950297cbf (diff)
downloadpoky-dba237a1ee36e893fa8f6d68e041069aac519f02.tar.gz
perl: support cpan versions of core modules
Most of perl core modules are dual-life modules which exists on CPAN as well as they do in perl core. Sometime, fixes are uploaded to CPAN before a new perl is released which contains the fix of the core module. Also, some modules recent releases aren't fully backported to earlier releases (out of support, lack of specific feature, ...), which makes it up to the distribution build to choose between core or CPAN version, respectively. (From OE-Core rev: 9dfb3c3dffac467ec0a3751b1a350e01c4759496) Signed-off-by: Jens Rehsack <sno@netbsd.org> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-devtools/perl')
-rw-r--r--meta/recipes-devtools/perl/perl_5.30.1.bb47
1 files changed, 40 insertions, 7 deletions
diff --git a/meta/recipes-devtools/perl/perl_5.30.1.bb b/meta/recipes-devtools/perl/perl_5.30.1.bb
index 90a9fad68b..3634122686 100644
--- a/meta/recipes-devtools/perl/perl_5.30.1.bb
+++ b/meta/recipes-devtools/perl/perl_5.30.1.bb
@@ -181,13 +181,13 @@ perl_package_preprocess () {
181 -e "s,${STAGING_BINDIR_NATIVE}/,,g" \ 181 -e "s,${STAGING_BINDIR_NATIVE}/,,g" \
182 -e "s,${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX},${bindir},g" \ 182 -e "s,${STAGING_BINDIR_TOOLCHAIN}/${TARGET_PREFIX},${bindir},g" \
183 -e 's:${RECIPE_SYSROOT}::g' \ 183 -e 's:${RECIPE_SYSROOT}::g' \
184 ${PKGD}${bindir}/h2xs \ 184 ${PKGD}${bindir}/h2xs.perl \
185 ${PKGD}${bindir}/h2ph \ 185 ${PKGD}${bindir}/h2ph.perl \
186 ${PKGD}${bindir}/pod2man \ 186 ${PKGD}${bindir}/pod2man.perl \
187 ${PKGD}${bindir}/pod2text \ 187 ${PKGD}${bindir}/pod2text.perl \
188 ${PKGD}${bindir}/pod2usage \ 188 ${PKGD}${bindir}/pod2usage.perl \
189 ${PKGD}${bindir}/podchecker \ 189 ${PKGD}${bindir}/podchecker.perl \
190 ${PKGD}${bindir}/podselect \ 190 ${PKGD}${bindir}/podselect.perl \
191 ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/config.h \ 191 ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/config.h \
192 ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/perl.h \ 192 ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/perl.h \
193 ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/pp.h \ 193 ${PKGD}${libdir}/perl5/${PV}/${TARGET_ARCH}-linux/CORE/pp.h \
@@ -202,6 +202,39 @@ perl_package_preprocess () {
202 ${PKGD}${libdir}/perl5/config.sh 202 ${PKGD}${libdir}/perl5/config.sh
203} 203}
204 204
205inherit update-alternatives
206
207ALTERNATIVE_PRIORITY = "100"
208
209ALTERNATIVE_${PN}-misc = "corelist cpan enc2xs encguess h2ph h2xs instmodsh json_pp libnetcfg \
210 piconv pl2pm pod2html pod2man pod2text pod2usage podchecker podselect \
211 prove ptar ptardiff ptargrep shasum splain xsubpp zipdetails"
212ALTERNATIVE_LINK_NAME[corelist] = "${bindir}/corelist"
213ALTERNATIVE_LINK_NAME[cpan] = "${bindir}/cpan"
214ALTERNATIVE_LINK_NAME[enc2xs] = "${bindir}/enc2xs"
215ALTERNATIVE_LINK_NAME[encguess] = "${bindir}/encguess"
216ALTERNATIVE_LINK_NAME[h2ph] = "${bindir}/h2ph"
217ALTERNATIVE_LINK_NAME[h2xs] = "${bindir}/h2xs"
218ALTERNATIVE_LINK_NAME[instmodsh] = "${bindir}/instmodsh"
219ALTERNATIVE_LINK_NAME[json_pp] = "${bindir}/json_pp"
220ALTERNATIVE_LINK_NAME[libnetcfg] = "${bindir}/libnetcfg"
221ALTERNATIVE_LINK_NAME[piconv] = "${bindir}/piconv"
222ALTERNATIVE_LINK_NAME[pl2pm] = "${bindir}/pl2pm"
223ALTERNATIVE_LINK_NAME[pod2html] = "${bindir}/pod2html"
224ALTERNATIVE_LINK_NAME[pod2man] = "${bindir}/pod2man"
225ALTERNATIVE_LINK_NAME[pod2text] = "${bindir}/pod2text"
226ALTERNATIVE_LINK_NAME[pod2usage] = "${bindir}/pod2usage"
227ALTERNATIVE_LINK_NAME[podchecker] = "${bindir}/podchecker"
228ALTERNATIVE_LINK_NAME[podselect] = "${bindir}/podselect"
229ALTERNATIVE_LINK_NAME[prove] = "${bindir}/prove"
230ALTERNATIVE_LINK_NAME[ptar] = "${bindir}/ptar"
231ALTERNATIVE_LINK_NAME[ptardiff] = "${bindir}/ptardiff"
232ALTERNATIVE_LINK_NAME[ptargrep] = "${bindir}/ptargrep"
233ALTERNATIVE_LINK_NAME[shasum] = "${bindir}/shasum"
234ALTERNATIVE_LINK_NAME[splain] = "${bindir}/splain"
235ALTERNATIVE_LINK_NAME[xsubpp] = "${bindir}/xsubpp"
236ALTERNATIVE_LINK_NAME[zipdetails] = "${bindir}/zipdetails"
237
205require perl-ptest.inc 238require perl-ptest.inc
206 239
207FILES_${PN} = "${bindir}/perl ${bindir}/perl.real ${bindir}/perl${PV} ${libdir}/libperl.so* \ 240FILES_${PN} = "${bindir}/perl ${bindir}/perl.real ${bindir}/perl${PV} ${libdir}/libperl.so* \