From 6e4bfac48aa1e48086d7995c23eb5d4db66a79b8 Mon Sep 17 00:00:00 2001 From: Jingdong Lu Date: Mon, 1 Nov 2010 17:58:09 +0800 Subject: perl: Fix adding GDBM_File module for LSB test. No GDBM_File module will cause 2 perl test cases of LSB failed. Signed-off-by: Jingdong Lu --- meta/recipes-devtools/perl/perl-5.8.8/config.sh | 8 ++++---- .../perl/perl-5.8.8/perl-enable-gdbm.patch | 17 +++++++++++++++++ meta/recipes-devtools/perl/perl_5.8.8.bb | 4 +++- 3 files changed, 24 insertions(+), 5 deletions(-) create mode 100644 meta/recipes-devtools/perl/perl-5.8.8/perl-enable-gdbm.patch (limited to 'meta') diff --git a/meta/recipes-devtools/perl/perl-5.8.8/config.sh b/meta/recipes-devtools/perl/perl-5.8.8/config.sh index 8d1f904f20..3d4c193a3d 100644 --- a/meta/recipes-devtools/perl/perl-5.8.8/config.sh +++ b/meta/recipes-devtools/perl/perl-5.8.8/config.sh @@ -507,7 +507,7 @@ dlsrc='dl_dlopen.xs' doublesize='8' drand01='drand48()' drand48_r_proto='REENTRANT_PROTO_I_ST' -dynamic_ext='attrs B ByteLoader Cwd Data/Dumper Devel/DProf Devel/Peek Devel/PPPort Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 Opcode PerlIO/encoding PerlIO/scalar PerlIO/via POSIX re SDBM_File Socket Storable Sys/Hostname Sys/Syslog threads Time/HiRes Unicode/Normalize XS/APItest XS/Typemap threads/shared' +dynamic_ext='attrs B ByteLoader Cwd Data/Dumper Devel/DProf Devel/Peek Devel/PPPort Digest/MD5 Encode Fcntl File/Glob Filter/Util/Call I18N/Langinfo IO IPC/SysV List/Util MIME/Base64 Opcode PerlIO/encoding PerlIO/scalar PerlIO/via POSIX re GDBM_File SDBM_File Socket Storable Sys/Hostname Sys/Syslog threads Time/HiRes Unicode/Normalize XS/APItest XS/Typemap threads/shared' eagain='EAGAIN' ebcdic='undef' echo='echo' @@ -593,7 +593,7 @@ i_fcntl='undef' i_float='define' i_fp='undef' i_fp_class='undef' -i_gdbm='undef' +i_gdbm='define' i_grp='define' i_ieeefp='undef' i_inttypes='define' @@ -981,7 +981,7 @@ zcat='' zip='zip' # Configure command line arguments. config_arg0='Configure' -config_args='-des -Doptimize=-O2 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Open Embedded -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dotherlibdirs=/usr/lib/perl5/5.8.8 -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=/usr/bin/less -isr' +config_args='-des -Doptimize=-O2 -Dmyhostname=localhost -Dperladmin=root@localhost -Dcc=gcc -Dcf_by=Open Embedded -Dprefix=/usr -Dvendorprefix=/usr -Dsiteprefix=/usr -Dotherlibdirs=/usr/lib/perl5/5.8.8 -Duseshrplib -Dusethreads -Duseithreads -Duselargefiles -Ud_dosuid -Dd_semctl_semun -Ui_db -Ui_ndbm -Di_gdbm -Di_shadow -Di_syslog -Dman3ext=3pm -Duseperlio -Dinstallusrbinperl -Ubincompat5005 -Uversiononly -Dpager=/usr/bin/less -isr' config_argc=27 config_arg1='-des' config_arg2='-Doptimize=-O2' @@ -1001,7 +1001,7 @@ config_arg15='-Ud_dosuid' config_arg16='-Dd_semctl_semun' config_arg17='-Ui_db' config_arg18='-Ui_ndbm' -config_arg19='-Ui_gdbm' +config_arg19='-Di_gdbm' config_arg20='-Di_shadow' config_arg21='-Di_syslog' config_arg22='-Dman3ext=3pm' diff --git a/meta/recipes-devtools/perl/perl-5.8.8/perl-enable-gdbm.patch b/meta/recipes-devtools/perl/perl-5.8.8/perl-enable-gdbm.patch new file mode 100644 index 0000000000..c0874c372d --- /dev/null +++ b/meta/recipes-devtools/perl/perl-5.8.8/perl-enable-gdbm.patch @@ -0,0 +1,17 @@ +Index: perl-5.8.8/config_h.SH +=================================================================== +--- perl-5.8.8.orig/config_h.SH 2005-11-01 02:13:05.000000000 +0800 ++++ perl-5.8.8/config_h.SH 2010-11-01 17:06:07.215219738 +0800 +@@ -709,6 +709,12 @@ + */ + #$i_float I_FLOAT /**/ + ++/* I_GDBM: ++ * This symbol, if defined, indicates that exists and should ++ * be included. ++ */ ++#$i_gdbm I_GDBM /**/ ++ + /* I_LIMITS: + * This symbol, if defined, indicates to the C program that it should + * include to get definition of symbols like WORD_BIT or diff --git a/meta/recipes-devtools/perl/perl_5.8.8.bb b/meta/recipes-devtools/perl/perl_5.8.8.bb index 2774942ba2..2515b6e0b9 100644 --- a/meta/recipes-devtools/perl/perl_5.8.8.bb +++ b/meta/recipes-devtools/perl/perl_5.8.8.bb @@ -7,7 +7,8 @@ LIC_FILES_CHKSUM = "file://Copying;md5=2b4c6ffbcfcbdee469f02565f253d81a \ PRIORITY = "optional" # We need gnugrep (for -I) DEPENDS = "virtual/db perl-native grep-native" -PR = "r20" +DEPENDS += "gdbm" +PR = "r21" # Major part of version PVM = "5.8" @@ -32,6 +33,7 @@ SRC_URI = "ftp://ftp.funet.fi/pub/CPAN/src/perl-${PV}.tar.gz \ file://64_debian_enc2xs_inc.patch;patch=1 \ file://asm-pageh-fix.patch;patch=1 \ file://native-perlinc.patch;patch=1 \ + file://perl-enable-gdbm.patch;patch=1 \ file://config.sh \ file://config.sh-32 \ file://config.sh-32-le \ -- cgit v1.2.3