mirror of
https://git.yoctoproject.org/poky
synced 2026-09-15 06:49:33 +02:00
perl-native: Update for userelocatableinc and non-shared libperl
Rather than using a wrapper switch to using upstreams support for relocation. While in here, bring in the mangling to use /usr/bin/env perl rather than /full/path/to in order to work in deep directory paths. Also drop the DEPENDS on gpbm and db since we disable these in the configure and don't use them. Signed-off-by: Tom Rini <tom_rini@mentor.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
@@ -4,8 +4,7 @@ SECTION = "libs"
|
|||||||
LICENSE = "Artistic|GPL"
|
LICENSE = "Artistic|GPL"
|
||||||
LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
|
LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
|
||||||
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
|
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
|
||||||
DEPENDS = "virtual/db-native gdbm-native"
|
PR = "r3"
|
||||||
PR = "r2"
|
|
||||||
|
|
||||||
LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
|
LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \
|
||||||
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
|
file://Artistic;md5=f921793d03cc6d63ec4b15e9be8fd3f8"
|
||||||
@@ -29,19 +28,21 @@ do_configure () {
|
|||||||
-Dcflags="${CFLAGS}" \
|
-Dcflags="${CFLAGS}" \
|
||||||
-Dldflags="${LDFLAGS}" \
|
-Dldflags="${LDFLAGS}" \
|
||||||
-Dcf_by="Open Embedded" \
|
-Dcf_by="Open Embedded" \
|
||||||
|
\
|
||||||
-Dprefix=${prefix} \
|
-Dprefix=${prefix} \
|
||||||
-Dvendorprefix=${prefix} \
|
-Dvendorprefix=${prefix} \
|
||||||
-Dvendorprefix=${prefix} \
|
-Dvendorprefix=${prefix} \
|
||||||
-Dsiteprefix=${prefix} \
|
-Dsiteprefix=${prefix} \
|
||||||
\
|
\
|
||||||
-Dprivlib=${STAGING_LIBDIR}/perl/${PV} \
|
-Dprivlib=.../../lib/perl/${PV} \
|
||||||
-Darchlib=${STAGING_LIBDIR}/perl/${PV} \
|
-Darchlib=.../../lib/perl/${PV} \
|
||||||
-Dvendorlib=${STAGING_LIBDIR}/perl/${PV} \
|
-Dvendorlib=.../../lib/perl/${PV} \
|
||||||
-Dvendorarch=${STAGING_LIBDIR}/perl/${PV} \
|
-Dvendorarch=.../../lib/perl/${PV} \
|
||||||
-Dsitelib=${STAGING_LIBDIR}/perl/${PV} \
|
-Dsitelib=.../../lib/perl/${PV} \
|
||||||
-Dsitearch=${STAGING_LIBDIR}/perl/${PV} \
|
-Dsitearch=.../../lib/perl/${PV} \
|
||||||
|
-Duserelocatableinc="y" \
|
||||||
\
|
\
|
||||||
-Duseshrplib \
|
-Uuseshrplib \
|
||||||
-Dusethreads \
|
-Dusethreads \
|
||||||
-Duseithreads \
|
-Duseithreads \
|
||||||
-Duselargefiles \
|
-Duselargefiles \
|
||||||
@@ -89,8 +90,12 @@ do_install () {
|
|||||||
install $i ${D}${libdir}/perl/${PV}/CORE
|
install $i ${D}${libdir}/perl/${PV}/CORE
|
||||||
done
|
done
|
||||||
|
|
||||||
create_wrapper ${D}${bindir}/perl PERL5LIB='$PERL5LIB:${STAGING_LIBDIR}/perl/5.12.2:${STAGING_LIBDIR}/perl/'
|
# Make sure we use /usr/bin/env perl
|
||||||
|
for PERLSCRIPT in `grep -rIEl '#!.*/perl' ${D}${bindir}`; do
|
||||||
|
sed -i -e '1s|^#!.*|#!/usr/bin/env perl|' $PERLSCRIPT
|
||||||
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
do_install_append_nylon() {
|
do_install_append_nylon() {
|
||||||
# get rid of definitions not supported by the gcc version we use for nylon...
|
# get rid of definitions not supported by the gcc version we use for nylon...
|
||||||
for i in ${D}${libdir}/perl/${PV}/Config_heavy.pl ${D}${libdir}/perl/config.sh; do
|
for i in ${D}${libdir}/perl/${PV}/Config_heavy.pl ${D}${libdir}/perl/config.sh; do
|
||||||
|
|||||||
Reference in New Issue
Block a user