perl/perl-native: Sync with OE

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@618 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Richard Purdie 2006-08-18 22:19:53 +00:00
parent 467265320c
commit 017f9dbb6b
7 changed files with 3130 additions and 25 deletions

File diff suppressed because it is too large Load Diff

View File

@ -10,7 +10,7 @@
# Source directory : . # Source directory : .
# Configuration time: Wed Mar 9 04:09:49 CST 2005 # Configuration time: Wed Mar 9 04:09:49 CST 2005
# Configured by : kergoth # Configured by : kergoth
# Target system : linux hyperion 2.6.11-ck1 #1 wed mar 2 23:48:21 cst 2005 i686 gnulinux # Target system : linux hyperion 2.6.11-ck1 #1 wed mar 2 23:48:21 cst 2005 i586 gnulinux
Author='' Author=''
Date='$Date' Date='$Date'
@ -36,10 +36,10 @@ api_subversion='0'
api_version='8' api_version='8'
api_versionstring='5.8.0' api_versionstring='5.8.0'
ar='ar' ar='ar'
archlib='/usr/lib/perl5/5.8.7/i686-linux' archlib='/usr/lib/perl5/5.8.7/i586-linux'
archlibexp='/usr/lib/perl5/5.8.7/i686-linux' archlibexp='/usr/lib/perl5/5.8.7/i586-linux'
archname64='' archname64=''
archname='i686-linux' archname='i586-linux'
archobjs='' archobjs=''
asctime_r_proto='0' asctime_r_proto='0'
awk='awk' awk='awk'
@ -55,7 +55,7 @@ castflags='0'
cat='cat' cat='cat'
cc='cc' cc='cc'
cccdlflags='-fpic' cccdlflags='-fpic'
ccdlflags='-Wl,-E -Wl,-rpath,./install_me_here/usr/lib/perl5/5.8.7/i686-linux/CORE' ccdlflags='-Wl,-E -Wl,-rpath,./install_me_here/usr/lib/perl5/5.8.7/i586-linux/CORE'
ccflags='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' ccflags='-fno-strict-aliasing -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64' ccflags_uselargefiles='-D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64'
ccname='gcc' ccname='gcc'
@ -82,7 +82,7 @@ cpplast='-'
cppminus='-' cppminus='-'
cpprun='cc -E' cpprun='cc -E'
cppstdin='cc -E' cppstdin='cc -E'
cppsymbols='__ELF__=1 _FILE_OFFSET_BITS=64 __GLIBC__=2 __GLIBC_MINOR__=3 __GNU_LIBRARY__=6 i386=1 __i386=1 __i386__=1 __i486=1 __i486__=1 _LARGEFILE_SOURCE=1 linux=1 __linux=1 __linux__=1 _POSIX_C_SOURCE=199506 _POSIX_SOURCE=1 __STDC__=1 unix=1 __unix=1 __unix__=1 __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_LARGEFILE=1 __USE_MISC=1 __USE_POSIX=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_POSIX2=1 __USE_SVID=1' cppsymbols='__ELF__=1 _FILE_OFFSET_BITS=64 __GLIBC__=2 __GLIBC_MINOR__=3 __GNU_LIBRARY__=6 i586=1 __i586=1 __i586__=1 __i586=1 __i586__=1 _LARGEFILE_SOURCE=1 linux=1 __linux=1 __linux__=1 _POSIX_C_SOURCE=199506 _POSIX_SOURCE=1 __STDC__=1 unix=1 __unix=1 __unix__=1 __USE_BSD=1 __USE_FILE_OFFSET64=1 __USE_LARGEFILE=1 __USE_MISC=1 __USE_POSIX=1 __USE_POSIX199309=1 __USE_POSIX199506=1 __USE_POSIX2=1 __USE_SVID=1'
crypt_r_proto='0' crypt_r_proto='0'
cryptlib='' cryptlib=''
csh='csh' csh='csh'
@ -671,7 +671,7 @@ inc_version_list=' '
inc_version_list_init='0' inc_version_list_init='0'
incpath='' incpath=''
inews='' inews=''
installarchlib='./install_me_here/usr/lib/perl5/5.8.7/i686-linux' installarchlib='./install_me_here/usr/lib/perl5/5.8.7/i586-linux'
installbin='./install_me_here/usr/bin' installbin='./install_me_here/usr/bin'
installhtml1dir='' installhtml1dir=''
installhtml3dir='' installhtml3dir=''
@ -681,7 +681,7 @@ installprefix='./install_me_here/usr'
installprefixexp='./install_me_here/usr' installprefixexp='./install_me_here/usr'
installprivlib='./install_me_here/usr/lib/perl5/5.8.7' installprivlib='./install_me_here/usr/lib/perl5/5.8.7'
installscript='./install_me_here/usr/bin' installscript='./install_me_here/usr/bin'
installsitearch='./install_me_here/usr/lib/perl5/site_perl/5.8.7/i686-linux' installsitearch='./install_me_here/usr/lib/perl5/site_perl/5.8.7/i586-linux'
installsitebin='./install_me_here/usr/bin' installsitebin='./install_me_here/usr/bin'
installsitehtml1dir='' installsitehtml1dir=''
installsitehtml3dir='' installsitehtml3dir=''
@ -760,10 +760,10 @@ modetype='mode_t'
more='more' more='more'
multiarch='undef' multiarch='undef'
mv='' mv=''
myarchname='i686-linux' myarchname='i586-linux'
mydomain='.kergoth.com' mydomain='.kergoth.com'
myhostname='hyperion' myhostname='hyperion'
myuname='linux hyperion 2.6.11-ck1 #1 wed mar 2 23:48:21 cst 2005 i686 gnulinux ' myuname='linux hyperion 2.6.11-ck1 #1 wed mar 2 23:48:21 cst 2005 i586 gnulinux '
n='-n' n='-n'
need_va_copy='undef' need_va_copy='undef'
netdb_hlen_type='size_t' netdb_hlen_type='size_t'
@ -873,8 +873,8 @@ sig_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
sig_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' sig_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'
sig_size='69' sig_size='69'
signal_t='void' signal_t='void'
sitearch='/usr/lib/perl5/site_perl/5.8.7/i686-linux' sitearch='/usr/lib/perl5/site_perl/5.8.7/i586-linux'
sitearchexp='/usr/lib/perl5/site_perl/5.8.7/i686-linux' sitearchexp='/usr/lib/perl5/site_perl/5.8.7/i586-linux'
sitebin='/usr/bin' sitebin='/usr/bin'
sitebinexp='/usr/bin' sitebinexp='/usr/bin'
sitehtml1dir='' sitehtml1dir=''

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@ DESCRIPTION = "Perl is a popular scripting language."
MAINTAINER="David Karlstrom <daka@thg.se>" MAINTAINER="David Karlstrom <daka@thg.se>"
HOMEPAGE = "http://www.perl.org/" HOMEPAGE = "http://www.perl.org/"
LICENSE = "Artistic|GPL" LICENSE = "Artistic|GPL"
PR = "r1" PR = "r3"
SECTION = "libs" SECTION = "libs"
inherit native inherit native
@ -18,9 +18,9 @@ PARALLEL_MAKE = ""
do_configure () { do_configure () {
./Configure \ ./Configure \
-Dcc="${BUILD_CC}" \ -Dcc="${CC}" \
-Dcflags="${BUILD_CFLAGS}" \ -Dcflags="${CFLAGS}" \
-Dldflags="${BUILD_LDFLAGS} -Wl,-rpath,${STAGING_LIBDIR}" \ -Dldflags="$LDFLAGS}" \
-Dusethreads \ -Dusethreads \
-Duselargefiles \ -Duselargefiles \
-Dprefix=${prefix} \ -Dprefix=${prefix} \

View File

@ -46,7 +46,9 @@ do_compile() {
do_install() { do_install() {
oe_runmake install oe_runmake install
mv ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/CORE/libperl.so ${D}/${libdir}/libperl.so.${PV} # Make sure the shared library is configured before trying to move it
grep -q "useshrplib='false'" ${S}/config.sh ||
mv ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/CORE/libperl.so ${D}/${libdir}/libperl.so.${PV}
( cd ${D}/usr/bin/; rm perl; ln -s perl${PV} perl ) ( cd ${D}/usr/bin/; rm perl; ln -s perl${PV} perl )
} }
@ -65,9 +67,9 @@ python populate_packages_prepend () {
do_split_packages(d, libdir, '(.*)\.(pm|pl)', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True) do_split_packages(d, libdir, '(.*)\.(pm|pl)', 'perl-module-%s', 'perl module %s', recursive=True, allow_dirs=False, match_path=True)
} }
PACKAGES = "perl perl-misc perl-lib perl-dev perl-pod" PACKAGES = "perl-dbg perl perl-misc perl-lib perl-dev perl-pod"
FILES_${PN} = "/usr/bin/perl /usr/bin/perl${PV}" FILES_${PN} = "/usr/bin/perl /usr/bin/perl${PV}"
FILES_${PN}-lib = "/usr/lib/libperl.so*" FILES_${PN}-lib = "/usr/lib/libperl.so*"
FILES_${PN}-dev = "/usr/lib/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/CORE/" FILES_${PN}-dev = "/usr/lib/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/CORE/"
FILES_${PN}-pod = "/usr/lib/perl5/${PV}/pod" FILES_${PN}-pod = "/usr/lib/perl5/${PV}/pod"
FILES_perl-misc = "/usr/bin/" FILES_perl-misc = "/usr/bin/*"

View File

@ -1,12 +1,18 @@
MAINTAINER="David Karlstrom <daka@thg.se>" MAINTAINER="David Karlstrom <daka@thg.se>"
include perl.inc require perl.inc
SRC_URI += "file://config.sh-armeb-linux \ SRC_URI += "file://config.sh-armeb-linux \
file://config.sh-arm-linux \ file://config.sh-arm-linux \
file://config.sh-i386-linux" file://config.sh-i386-linux \
file://config.sh-i486-linux \
file://config.sh-i586-linux \
file://config.sh-sh3-linux \
file://config.sh-sh4-linux"
PR = "r15" PARALLEL_MAKE = ""
PR = "r17"
do_configure() { do_configure() {
ln -sf ${HOSTPERL} ${STAGING_BINDIR}/hostperl ln -sf ${HOSTPERL} ${STAGING_BINDIR}/hostperl
@ -15,9 +21,13 @@ do_configure() {
rm Makefile.SH.patch rm Makefile.SH.patch
cp ${WORKDIR}/Makefile.SH.patch . cp ${WORKDIR}/Makefile.SH.patch .
cp ${WORKDIR}/config.sh-mipsel-linux . cp ${WORKDIR}/config.sh-mipsel-linux .
cp ${WORKDIR}/config.sh-i686-linux .
cp ${WORKDIR}/config.sh-i386-linux . cp ${WORKDIR}/config.sh-i386-linux .
cp ${WORKDIR}/config.sh-i486-linux .
cp ${WORKDIR}/config.sh-i586-linux .
cp ${WORKDIR}/config.sh-i686-linux .
cp ${WORKDIR}/config.sh-armeb-linux . cp ${WORKDIR}/config.sh-armeb-linux .
cp ${WORKDIR}/config.sh-sh3-linux .
cp ${WORKDIR}/config.sh-sh4-linux .
#perl insists on an extra config.sh for arm EABI #perl insists on an extra config.sh for arm EABI
cp config.sh-arm-linux config.sh-arm-linux-gnueabi cp config.sh-arm-linux config.sh-arm-linux-gnueabi
# nslu2 LE uclibc builds do not work with the default config.sh # nslu2 LE uclibc builds do not work with the default config.sh
@ -33,6 +43,13 @@ do_configure() {
s,d_sockatmark='define',d_sockatmark='undef',g;" > $newfile s,d_sockatmark='define',d_sockatmark='undef',g;" > $newfile
done done
sed -i -e 's,./install_me_here,${D},g' config.sh-${TARGET_ARCH}-${TARGET_OS} sed -i -e 's,./install_me_here,${D},g' config.sh-${TARGET_ARCH}-${TARGET_OS}
sed -i -e "s%/usr/include/%${STAGING_INCDIR}/%g" config.sh-${TARGET_ARCH}-${TARGET_OS}
#These are strewn all over the source tree
for foo in `grep -m1 \/usr\/include\/.*\\.h ${WORKDIR}/* -r | cut -f 1 -d ":"` ; do
echo Fixing: $foo
sed -e "s%/usr/include/%${STAGING_INCDIR}/%g" -i $foo
done
rm -f config rm -f config
echo "ARCH = ${TARGET_ARCH}" > config echo "ARCH = ${TARGET_ARCH}" > config
echo "OS = ${TARGET_OS}" >> config echo "OS = ${TARGET_OS}" >> config
@ -40,7 +57,9 @@ do_configure() {
} }
do_install_append() { do_install_append() {
ln -s libperl.so.${PV} ${D}/${libdir}/libperl.so.5 # Make sure the shared library is configured before trying to symlink it
grep -q "useshrplib='false'" ${S}/config.sh ||
ln -s libperl.so.${PV} ${D}/${libdir}/libperl.so.5
sed -i -e "s,${D},,g" ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/Config_heavy.pl sed -i -e "s,${D},,g" ${D}/${libdir}/perl5/${PV}/${TARGET_ARCH}-${TARGET_OS}/Config_heavy.pl
} }
@ -52,7 +71,7 @@ RRECOMMENDS_perl-modules = "${PACKAGES}"
RPROVIDES_perl-lib = "perl-lib" RPROVIDES_perl-lib = "perl-lib"
include perl-rdepends_${PV}.inc require perl-rdepends_${PV}.inc
# To create/update the perl-rdepends_${PV}.inc use this piece of ugly script (modified for your arch/paths etc): # To create/update the perl-rdepends_${PV}.inc use this piece of ugly script (modified for your arch/paths etc):
# daka@DaKa2:/home/slug/slugos/tmp/work/perl-5.8.7-r14/install$ egrep -r "use|require" * | grep ";$" | egrep ".pm:use |.pm:require " | grep -v v5.6.0 | grep -v 5.00 | grep -v \$module | sed -e "s, \+, ,g" | cut -f1,2 -d" " | sed -e "s,;, ,g" | sed -e "s,(), ,g" | sed -e "s,::,-,g" | sort | uniq | tr [:upper:] [:lower:] | sed -e "s,/[^ ]\+ , += \"perl-module-,g" | sed -e "s, \?$, \",g" | sed -e "s,_,-,g" | sed -e "s,^,RDEPENDS_,g" | sed -e "s,armeb-linux,\$\{TARGET_ARCH\}-\$\{TARGET_OS\},g" | egrep -v "perl-module-5|perl-module-tk|perl-module-mac-internetconfig|perl-module-ndbm-file|perl-module-html-treebuilder|perl-module-lwp-simple|perl-module-vms-filespec|perl-module-fcgi|perl-module-vms-stdio|perl-module-mac-buildtools" > /home/slug/openembedded/packages/perl/perl-rdepends_5.8.7.inc # daka@DaKa2:/home/slug/slugos/tmp/work/perl-5.8.7-r14/install$ egrep -r "use|require" * | grep ";$" | egrep ".pm:use |.pm:require " | grep -v v5.6.0 | grep -v 5.00 | grep -v \$module | sed -e "s, \+, ,g" | cut -f1,2 -d" " | sed -e "s,;, ,g" | sed -e "s,(), ,g" | sed -e "s,::,-,g" | sort | uniq | tr [:upper:] [:lower:] | sed -e "s,/[^ ]\+ , += \"perl-module-,g" | sed -e "s, \?$, \",g" | sed -e "s,_,-,g" | sed -e "s,^,RDEPENDS_,g" | sed -e "s,armeb-linux,\$\{TARGET_ARCH\}-\$\{TARGET_OS\},g" | egrep -v "perl-module-5|perl-module-tk|perl-module-mac-internetconfig|perl-module-ndbm-file|perl-module-html-treebuilder|perl-module-lwp-simple|perl-module-vms-filespec|perl-module-fcgi|perl-module-vms-stdio|perl-module-mac-buildtools" > /home/slug/openembedded/packages/perl/perl-rdepends_5.8.7.inc