[oe-commits] org.oe.dev perl: Update cpan.bbclass to set CCFLAGS to CFLAGS so that the compiler

lenehan commit openembedded-commits at lists.openembedded.org
Thu Sep 28 21:27:21 UTC 2006


perl: Update cpan.bbclass to set CCFLAGS to CFLAGS so that the compiler
settings for the current OE build are used instead of the made up values in
the perl config (which were manually generated since we are cross
compiling). Remove this from each of the perl modules that was manually
setting this.

Author: lenehan at openembedded.org
Branch: org.openembedded.dev
Revision: f839455104d2dd56e574ff24632050d341da320a
ViewMTN: http://monotone.openembedded.org/revision.psp?id=f839455104d2dd56e574ff24632050d341da320a
Files:
1
classes/cpan.bbclass
packages/perl/libcompress-zlib-perl_1.42.bb
packages/perl/libdigest-sha1-perl_2.11.bb
packages/perl/libipc-sharelite-perl_0.09.bb
packages/perl/libparams-validate-perl_0.86.bb
Diffs:

#
# mt diff -r91c0213e4f1e1332a89e1ebbfa972a4b1cca7ab9 -rf839455104d2dd56e574ff24632050d341da320a
#
# 
# 
# patch "classes/cpan.bbclass"
#  from [bcdb802e7fdeb8159868542162d2cc47440c1096]
#    to [9517b9fbc43fd62a48aa4444a2989c3ddc386777]
# 
# patch "packages/perl/libcompress-zlib-perl_1.42.bb"
#  from [7b02adf09c13bb0f6320139766fe8a9d266e0fc3]
#    to [53362188dc5e4c39d07655e9ccb4ecec97a30cd2]
# 
# patch "packages/perl/libdigest-sha1-perl_2.11.bb"
#  from [d22a15840be72152a1296ccc2fc0364add8dc827]
#    to [5048ac25d9c6072dd75fca77aff391b268bf1a7e]
# 
# patch "packages/perl/libipc-sharelite-perl_0.09.bb"
#  from [bbb9a9a6e4ac047246b00ec6dbad382f086297cd]
#    to [e45884eaf94d81d8cf759d4526e80293b908e12e]
# 
# patch "packages/perl/libparams-validate-perl_0.86.bb"
#  from [0c8f34c59e61f50d08f5afffb6400465c3c40152]
#    to [79ca7938c4173267fd9aedbaab39ce4d9b4ac10c]
# 
============================================================
--- classes/cpan.bbclass	bcdb802e7fdeb8159868542162d2cc47440c1096
+++ classes/cpan.bbclass	9517b9fbc43fd62a48aa4444a2989c3ddc386777
@@ -17,7 +17,7 @@ cpan_do_compile () {
 }
 
 cpan_do_compile () {
-        oe_runmake PASTHRU_INC="${CFLAGS}"
+        oe_runmake PASTHRU_INC="${CFLAGS}" CCFLAGS="${CFLAGS}"
 }
 
 cpan_do_install () {
============================================================
--- packages/perl/libcompress-zlib-perl_1.42.bb	7b02adf09c13bb0f6320139766fe8a9d266e0fc3
+++ packages/perl/libcompress-zlib-perl_1.42.bb	53362188dc5e4c39d07655e9ccb4ecec97a30cd2
@@ -9,6 +9,3 @@ inherit cpan
 S = "${WORKDIR}/Compress-Zlib-${PV}"
 
 inherit cpan
-
-# Stop from searching /include - should put this in cpan class?
-export CCFLAGS = "${CFLAGS}"
============================================================
--- packages/perl/libdigest-sha1-perl_2.11.bb	d22a15840be72152a1296ccc2fc0364add8dc827
+++ packages/perl/libdigest-sha1-perl_2.11.bb	5048ac25d9c6072dd75fca77aff391b268bf1a7e
@@ -1,8 +1,8 @@ LICENSE = "Artistic"
 DESCRIPTION = "Digest::SHA1 - Perl interface to the SHA-1 algorithm"
 SECTION = "libs"
 MAINTAINER = "Jamie Lenehan <lenehan at twibble.org>"
 LICENSE = "Artistic"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/Digest-SHA1-2.11.tar.gz"
 
@@ -14,6 +14,3 @@ FILES_${PN}-dbg += "${libdir}/perl5/*/*/
                 ${libdir}/perl5/*/*/auto/Digest/SHA1/.packlist \
                 ${libdir}/perl5/*/*/Digest"
 FILES_${PN}-dbg += "${libdir}/perl5/*/*/auto/Digest/SHA1/.debug"
-
-# Stop from searching /include - should put this in cpan class?
-export CCFLAGS = "${CFLAGS}"
============================================================
--- packages/perl/libipc-sharelite-perl_0.09.bb	bbb9a9a6e4ac047246b00ec6dbad382f086297cd
+++ packages/perl/libipc-sharelite-perl_0.09.bb	e45884eaf94d81d8cf759d4526e80293b908e12e
@@ -1,8 +1,8 @@ LICENSE = "Artistic"
 DESCRIPTION = "IPC::ShareLite - Light-weight interface to shared memory"
 SECTION = "libs"
 MAINTAINER = "Jamie Lenehan <lenehan at twibble.org>"
 LICENSE = "Artistic"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "http://search.cpan.org/CPAN/authors/id/M/MA/MAURICE/IPC-ShareLite-0.09.tar.gz"
 
@@ -14,6 +14,3 @@ FILES_${PN}-dbg += "${libdir}/perl5/*/*/
                 ${libdir}/perl5/*/*/auto/IPC/ShareLite/.packlist \
                 ${libdir}/perl5/*/*/IPC"
 FILES_${PN}-dbg += "${libdir}/perl5/*/*/auto/IPC/ShareLite/.debug"
-
-# Stop from searching /include - should put this in cpan class?
-export CCFLAGS = "${CFLAGS}"
============================================================
--- packages/perl/libparams-validate-perl_0.86.bb	0c8f34c59e61f50d08f5afffb6400465c3c40152
+++ packages/perl/libparams-validate-perl_0.86.bb	79ca7938c4173267fd9aedbaab39ce4d9b4ac10c
@@ -1,8 +1,8 @@ LICENSE = "Artistic"
 DESCRIPTION = "Params::Validate - Validate method/function parameters"
 SECTION = "libs"
 MAINTAINER = "Jamie Lenehan <lenehan at twibble.org>"
 LICENSE = "Artistic"
-PR = "r4"
+PR = "r5"
 
 SRC_URI = "http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/Params-Validate-0.86.tar.gz"
 
@@ -15,6 +15,3 @@ FILES_${PN}-dbg += "${libdir}/perl5/*/*/
                 ${libdir}/perl5/*/*/Params \
                 ${libdir}/perl5/*/*/Attribute"
 FILES_${PN}-dbg += "${libdir}/perl5/*/*/auto/Params/Validate/.debug"
-
-# Stop from searching /include - should put this in cpan class?
-export CCFLAGS = "${CFLAGS}"






More information about the Openembedded-commits mailing list