[oe] [PATCH 1/3] perl: honour DISTRO_FEATURE largefile
Bernhard Reutner-Fischer
rep.dot.nop at gmail.com
Wed Aug 4 13:51:56 UTC 2010
Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop at gmail.com>
---
recipes/perl/perl-native_5.8.8.bb | 4 ++--
recipes/perl/perl_5.8.8.bb | 6 ++++--
2 files changed, 6 insertions(+), 4 deletions(-)
diff --git a/recipes/perl/perl-native_5.8.8.bb b/recipes/perl/perl-native_5.8.8.bb
index fe1bc84..41a85bc 100644
--- a/recipes/perl/perl-native_5.8.8.bb
+++ b/recipes/perl/perl-native_5.8.8.bb
@@ -3,7 +3,7 @@ HOMEPAGE = "http://www.perl.org/"
SECTION = "libs"
LICENSE = "Artistic|GPL"
DEPENDS = "virtual/db-native gdbm-native"
-PR = "r20"
+PR = "r21"
NATIVE_INSTALL_WORKS = "1"
FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/perl-${PV}"
@@ -44,7 +44,7 @@ do_configure () {
-Duseshrplib \
-Dusethreads \
-Duseithreads \
- -Duselargefiles \
+ ${@base_contains("DISTRO_FEATURES", "largefile", "-Duselargefiles", "-Uuselargefiles", d)} \
-Dnoextensions=ODBM_File \
-Ud_dosuid \
-Ui_db \
diff --git a/recipes/perl/perl_5.8.8.bb b/recipes/perl/perl_5.8.8.bb
index ed489f4..5400e69 100644
--- a/recipes/perl/perl_5.8.8.bb
+++ b/recipes/perl/perl_5.8.8.bb
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPL"
PRIORITY = "optional"
# We need gnugrep (for -I)
DEPENDS = "virtual/db perl-native grep-native"
-PR = "r35"
+PR = "r36"
# Major part of version
PVM = "5.8"
@@ -66,7 +66,9 @@ do_configure() {
${WORKDIR}/config.sh-${SITEINFO_BITS}-${SITEINFO_ENDIANNESS}; do
cat $i >> config.sh-${TARGET_ARCH}-${TARGET_OS}
done
-
+ uselargefiles="${@base_contains("DISTRO_FEATURES", "largefile", "define", "undef", d)}"
+ sed -i -e "s,^\(uselargefiles=\).*,\1'$uselargefiles',g" \
+ config.sh-${TARGET_ARCH}-${TARGET_OS}
# Fixups for uclibc
if [ "${TARGET_OS}" = "linux-uclibc" -o "${TARGET_OS}" = "linux-uclibceabi" ]; then
sed -i -e "s,\(d_crypt_r=\)'define',\1'undef',g" \
--
1.7.1
More information about the Openembedded-devel
mailing list