diff options
author | Jens Rehsack <sno@netbsd.org> | 2020-01-21 17:46:41 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2020-01-22 15:56:14 +0000 |
commit | dba237a1ee36e893fa8f6d68e041069aac519f02 (patch) | |
tree | 28f4b7072825d28df154c15146eb1f044fb798c0 /meta | |
parent | fd983f2e9b6e2ada9bc4cb3779ca1c8950297cbf (diff) | |
download | poky-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')
-rw-r--r-- | meta/recipes-devtools/perl/perl_5.30.1.bb | 47 |
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 | ||
205 | inherit update-alternatives | ||
206 | |||
207 | ALTERNATIVE_PRIORITY = "100" | ||
208 | |||
209 | ALTERNATIVE_${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" | ||
212 | ALTERNATIVE_LINK_NAME[corelist] = "${bindir}/corelist" | ||
213 | ALTERNATIVE_LINK_NAME[cpan] = "${bindir}/cpan" | ||
214 | ALTERNATIVE_LINK_NAME[enc2xs] = "${bindir}/enc2xs" | ||
215 | ALTERNATIVE_LINK_NAME[encguess] = "${bindir}/encguess" | ||
216 | ALTERNATIVE_LINK_NAME[h2ph] = "${bindir}/h2ph" | ||
217 | ALTERNATIVE_LINK_NAME[h2xs] = "${bindir}/h2xs" | ||
218 | ALTERNATIVE_LINK_NAME[instmodsh] = "${bindir}/instmodsh" | ||
219 | ALTERNATIVE_LINK_NAME[json_pp] = "${bindir}/json_pp" | ||
220 | ALTERNATIVE_LINK_NAME[libnetcfg] = "${bindir}/libnetcfg" | ||
221 | ALTERNATIVE_LINK_NAME[piconv] = "${bindir}/piconv" | ||
222 | ALTERNATIVE_LINK_NAME[pl2pm] = "${bindir}/pl2pm" | ||
223 | ALTERNATIVE_LINK_NAME[pod2html] = "${bindir}/pod2html" | ||
224 | ALTERNATIVE_LINK_NAME[pod2man] = "${bindir}/pod2man" | ||
225 | ALTERNATIVE_LINK_NAME[pod2text] = "${bindir}/pod2text" | ||
226 | ALTERNATIVE_LINK_NAME[pod2usage] = "${bindir}/pod2usage" | ||
227 | ALTERNATIVE_LINK_NAME[podchecker] = "${bindir}/podchecker" | ||
228 | ALTERNATIVE_LINK_NAME[podselect] = "${bindir}/podselect" | ||
229 | ALTERNATIVE_LINK_NAME[prove] = "${bindir}/prove" | ||
230 | ALTERNATIVE_LINK_NAME[ptar] = "${bindir}/ptar" | ||
231 | ALTERNATIVE_LINK_NAME[ptardiff] = "${bindir}/ptardiff" | ||
232 | ALTERNATIVE_LINK_NAME[ptargrep] = "${bindir}/ptargrep" | ||
233 | ALTERNATIVE_LINK_NAME[shasum] = "${bindir}/shasum" | ||
234 | ALTERNATIVE_LINK_NAME[splain] = "${bindir}/splain" | ||
235 | ALTERNATIVE_LINK_NAME[xsubpp] = "${bindir}/xsubpp" | ||
236 | ALTERNATIVE_LINK_NAME[zipdetails] = "${bindir}/zipdetails" | ||
237 | |||
205 | require perl-ptest.inc | 238 | require perl-ptest.inc |
206 | 239 | ||
207 | FILES_${PN} = "${bindir}/perl ${bindir}/perl.real ${bindir}/perl${PV} ${libdir}/libperl.so* \ | 240 | FILES_${PN} = "${bindir}/perl ${bindir}/perl.real ${bindir}/perl${PV} ${libdir}/libperl.so* \ |