[oe-commits] org.oe.dev perl-native 5.8.8: Fix for cross-compile badness in the perl build. The

lenehan commit openembedded-commits at lists.openembedded.org
Sun May 6 23:58:16 UTC 2007


perl-native 5.8.8: Fix for cross-compile badness in the perl build. The
perl-native configure script was added -I/usr/include/gdbm to the ccflags if
you host had a /usr/include/gdbm/ndbm.h header, even though gdbm support is
disabled. This patch stops the configure script adding that even if it finds
the header there.

Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: dfd9359fdf9065bf2c8a6ae6d87b8f8d6e44e0b5
ViewMTN: http://monotone.openembedded.org/revision.psp?id=dfd9359fdf9065bf2c8a6ae6d87b8f8d6e44e0b5
Files:
1
packages/perl/perl-5.8.8/native-no-gdbminc.patch
packages/perl/perl-native_5.8.8.bb
Diffs:

#
# mt diff -rf9d679b49c9ccfedc3565929011b677de9852036 -rdfd9359fdf9065bf2c8a6ae6d87b8f8d6e44e0b5
#
# 
# 
# add_file "packages/perl/perl-5.8.8/native-no-gdbminc.patch"
#  content [2034c4cbe2757b3a279858a9086261d4ababa61f]
# 
# patch "packages/perl/perl-native_5.8.8.bb"
#  from [dea51077833f032c2afe303da502686ffa85ddef]
#    to [c6acaf7900c9782a7f249fe189049ad01df9d175]
# 
============================================================
--- packages/perl/perl-5.8.8/native-no-gdbminc.patch	2034c4cbe2757b3a279858a9086261d4ababa61f
+++ packages/perl/perl-5.8.8/native-no-gdbminc.patch	2034c4cbe2757b3a279858a9086261d4ababa61f
@@ -0,0 +1,18 @@
+If you have a /usr/include/gdbm/ndbm.h host on the header then the configure
+script adds -I/usr/include/gdbm to the ccflags even though gdbm support is
+disabled. Prevent perl from doing this so we don't get cross compile badness
+errors while building perl.
+
+--- perl-5.8.8/Configure	2007/05/06 23:42:18	1.1
++++ perl-5.8.8/Configure	2007/05/06 23:42:48
+@@ -20033,8 +20033,8 @@
+     # ndbm.h header in /usr/include/gdbm/ndbm.h.
+     if $test -f /usr/include/gdbm/ndbm.h; then
+ 	echo '<gdbm/ndbm.h> found.'
+-        ccflags="$ccflags -I/usr/include/gdbm"
+-        cppflags="$cppflags -I/usr/include/gdbm"
++#        ccflags="$ccflags -I/usr/include/gdbm"
++#        cppflags="$cppflags -I/usr/include/gdbm"
+         t_ndbm=$define
+     fi
+     ;;
============================================================
--- packages/perl/perl-native_5.8.8.bb	dea51077833f032c2afe303da502686ffa85ddef
+++ packages/perl/perl-native_5.8.8.bb	c6acaf7900c9782a7f249fe189049ad01df9d175
@@ -1,9 +1,9 @@ DEPENDS = "virtual/db-native gdbm-native
 DESCRIPTION = "Perl is a popular scripting language."
 HOMEPAGE = "http://www.perl.org/"
 SECTION = "libs"
 LICENSE = "Artistic|GPL"
 DEPENDS = "virtual/db-native gdbm-native"
-PR = "r4"
+PR = "r6"
 
 FILESDIR = "${@os.path.dirname(bb.data.getVar('FILE',d,1))}/perl-${PV}"
 
@@ -13,7 +13,8 @@ SRC_URI = "http://ftp.funet.fi/pub/CPAN/
            file://perl-5.8.8-gcc-4.2.patch;patch=1 \
            file://Configure-multilib.patch;patch=1 \
            file://perl-configpm-switch.patch;patch=1 \
-           file://native-nopacklist.patch;patch=1"
+           file://native-nopacklist.patch;patch=1 \
+           file://native-no-gdbminc.patch;patch=1"
 
 S = "${WORKDIR}/perl-${PV}"
 






More information about the Openembedded-commits mailing list