Skip to contentSkip to conversation

cpan.bbclass: removed legacy staging

PATCH In review Frans Meulenbroeks 3 participants 3 messages Jul 25, 2010 – Jul 26, 2010

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 cpan.bbclass: removed legacy staging

bumped PR for the main perl recipes so this change takes effect

---

removed legacy staging

as QA compared with the poky version.
Also build all perl/lib* recipes with it (using perl 5.8.8).
5 of these fail:
ERROR: 'virtual:native:/home/frans/oe/openembedded/recipes/perl/libcurses-perl_1.28.bb' failed
ERROR: '/home/frans/oe/openembedded/recipes/perl/libcurses-perl_1.28.bb' failed
ERROR: '/home/frans/oe/openembedded/recipes/perl/libsocket6-perl_0.23.bb' failed
ERROR: '/home/frans/oe/openembedded/recipes/perl/libdbd-mysql-perl-native_4.010.bb' failed
ERROR: '/home/frans/oe/openembedded/recipes/perl/libencode-detect-perl_1.01.bb' failed However these 5 also failed before making the change.
These recipes are broken and I did not see an apparent fix

please ack as this affects all perl cpan recipes.

 classes/cpan.bbclass        |   15 ++++-----------
 recipes/perl/perl_5.10.1.bb |    2 +-
 recipes/perl/perl_5.8.8.bb  |    2 +-
 3 files changed, 6 insertions(+), 13 deletions(-)
classes/cpan.bbclass +4 -11
index dfc0926..24e0c6e 100644
@@ -13,6 +13,8 @@ export PERL_INC = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}/CORE"
 export PERL_LIB = "${STAGING_DATADIR}/perl/${@get_perl_version(d)}"
 export PERL_ARCHLIB = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}"
 
+NATIVE_INSTALL_WORKS = "1"
+
 cpan_do_configure () {
 	yes '' | perl Makefile.PL ${EXTRA_CPANFLAGS}
 	if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
@@ -31,16 +33,7 @@ cpan_do_compile () {
 }
 
 cpan_do_install () {
-	if [ ${@is_target(d)} = "yes" ]; then
-		oe_runmake install_vendor
-	fi
-}
-
-cpan_do_stage () {
-	if [ ${@is_target(d)} = "no" ]; then
-		oe_runmake install_vendor
-	fi
+	oe_runmake DESTDIR="${D}" install_vendor
 }
-								
 
-EXPORT_FUNCTIONS do_configure do_compile do_install do_stage
+EXPORT_FUNCTIONS do_configure do_compile do_install
recipes/perl/perl_5.10.1.bb +1 -1
index 86b08dc..e7c90d8 100644
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPL"
 PRIORITY = "optional"
 # We need gnugrep (for -I)
 DEPENDS = "virtual/db perl-native grep-native"
-PR = "r7"
+PR = "r8"
 
 # Not tested enough
 DEFAULT_PREFERENCE = "-1"
recipes/perl/perl_5.8.8.bb +1 -1
index c73fe4e..29ae66c 100644
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPL"
 PRIORITY = "optional"
 # We need gnugrep (for -I)
 DEPENDS = "virtual/db perl-native grep-native"
-PR = "r34"
+PR = "r35"
 
 # Major part of version
 PVM = "5.8"
Signature · 1 line
1.6.4.2
Acked-by on v1 1/1
#1 lore raw

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Quoted 3 lines · Frans Meulenbroeks

bumped PR for the main perl recipes so this change takes effect

Quoted 72 lines

---

removed legacy staging

as QA compared with the poky version.
Also build all perl/lib* recipes with it (using perl 5.8.8).
5 of these fail:
ERROR: 'virtual:native:/home/frans/oe/openembedded/recipes/perl/libcurses-perl_1.28.bb' failed
ERROR: '/home/frans/oe/openembedded/recipes/perl/libcurses-perl_1.28.bb' failed
ERROR: '/home/frans/oe/openembedded/recipes/perl/libsocket6-perl_0.23.bb' failed
ERROR: '/home/frans/oe/openembedded/recipes/perl/libdbd-mysql-perl-native_4.010.bb' failed
ERROR: '/home/frans/oe/openembedded/recipes/perl/libencode-detect-perl_1.01.bb' failed However these 5 also failed before making the change.
These recipes are broken and I did not see an apparent fix

please ack as this affects all perl cpan recipes.

 classes/cpan.bbclass        |   15 ++++-----------
 recipes/perl/perl_5.10.1.bb |    2 +-
 recipes/perl/perl_5.8.8.bb  |    2 +-
 3 files changed, 6 insertions(+), 13 deletions(-)
classes/cpan.bbclass +4 -11
index dfc0926..24e0c6e 100644
@@ -13,6 +13,8 @@ export PERL_INC = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}/CORE"
 export PERL_LIB = "${STAGING_DATADIR}/perl/${@get_perl_version(d)}"
 export PERL_ARCHLIB = "${STAGING_LIBDIR}/perl/${@get_perl_version(d)}"
 
+NATIVE_INSTALL_WORKS = "1"
+
 cpan_do_configure () {
 	yes '' | perl Makefile.PL ${EXTRA_CPANFLAGS}
 	if [ "${BUILD_SYS}" != "${HOST_SYS}" ]; then
@@ -31,16 +33,7 @@ cpan_do_compile () {
 }
 
 cpan_do_install () {
-	if [ ${@is_target(d)} = "yes" ]; then
-		oe_runmake install_vendor
-	fi
-}
-
-cpan_do_stage () {
-	if [ ${@is_target(d)} = "no" ]; then
-		oe_runmake install_vendor
-	fi
+	oe_runmake DESTDIR="${D}" install_vendor
 }
-								
 
-EXPORT_FUNCTIONS do_configure do_compile do_install do_stage
+EXPORT_FUNCTIONS do_configure do_compile do_install
recipes/perl/perl_5.10.1.bb +1 -1
index 86b08dc..e7c90d8 100644
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPL"
 PRIORITY = "optional"
 # We need gnugrep (for -I)
 DEPENDS = "virtual/db perl-native grep-native"
-PR = "r7"
+PR = "r8"
 
 # Not tested enough
 DEFAULT_PREFERENCE = "-1"
recipes/perl/perl_5.8.8.bb +0 -0
index c73fe4e..29ae66c 100644

recipes/perl/perl_5.8.8.bb LICENSE = "Artistic|GPL" · line 11

Quoted 8 lines
recipes/perl/perl_5.8.8.bb +1 -1
@@ -5,7 +5,7 @@ LICENSE = "Artistic|GPL"
 PRIORITY = "optional"
 # We need gnugrep (for -I)
 DEPENDS = "virtual/db perl-native grep-native"
-PR = "r34"
+PR = "r35"
 
 # Major part of version
 PVM = "5.8"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)

iD8DBQFMTT5jMkyGM64RGpERAmVFAJ0X3198XhL9ReCP0qWglOSu6rB4dgCghdOX 1sUnckvbCx8xrX63kAMRCYM=
=ZPjp
-----END PGP SIGNATURE-----

Acked-by on v1 1/1
#2 lore raw
In reply to Frans Meulenbroeks

В сообщении от Воскресенье 25 июля 2010 20:32:05 автор Frans Meulenbroeks написал:

Quoted 7 lines

bumped PR for the main perl recipes so this change takes effect

---

removed legacy staging

Quoted 14 lines

as QA compared with the poky version.
Also build all perl/lib* recipes with it (using perl 5.8.8).
5 of these fail:
ERROR:
'virtual:native:/home/frans/oe/openembedded/recipes/perl/libcurses-perl_1.
28.bb' failed ERROR:
'/home/frans/oe/openembedded/recipes/perl/libcurses-perl_1.28.bb' failed
ERROR: '/home/frans/oe/openembedded/recipes/perl/libsocket6-perl_0.23.bb' failed ERROR:
'/home/frans/oe/openembedded/recipes/perl/libdbd-mysql-perl-native_4.010.b
b' failed ERROR:
'/home/frans/oe/openembedded/recipes/perl/libencode-detect-perl_1.01.bb' failed However these 5 also failed before making the change.
These recipes are broken and I did not see an apparent fix

As for the broken recipes, changes are high for at least mine part of them that they actually require Perl 5.10 (I'm not using 5.8.8 for almost a year now).