[yocto] [meta-cgl][PATCH] recipes-perl: don't set PACKAGE_ARCH = "all"

jackie.huang at windriver.com jackie.huang at windriver.com
Wed Mar 14 01:10:44 PDT 2018


From: Jackie Huang <jackie.huang at windriver.com>

* The allarch bbclass should be used instead of setting PACKAGE_ARCH = "all"
  according to the commit in oe-core:

  """
  commit 591fa7c1ab9e9ff75fdce602c77ecdeda3a255d9
  Author: Richard Purdie <richard.purdie at linuxfoundation.org>
  Date:   Sun Nov 25 20:23:42 2012 +0000

      packagegroup/allarch: Convert to use allarch class

      Currently there is some odd behaviour of the packagegroup class in relation
      to sstate since it sets PACKAGE_ARCH = "all" but does not use the allarch class
      leading to it being undetected by sstate.

      Previously it was not possible to use allarch as the recipe couldn't "undo"
      settings made by the allarch class. Since this no longer happens when
      PACKAGE_ARCH != all, we can use the allarch class.

      This patch also fixes up one case we need to preserve TRANSLATED_TARGET_ARCH
      and ensures sstate only assumes allarch when PACKAGE_ARCH is "all".

      Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
  """

  Or it fails since the menifest file names mismatch.

* These packages are not all arch just like other perl libraries,
  so just remove the setting PACKAGE_ARCH = "all".

Signed-off-by: Jackie Huang <jackie.huang at windriver.com>
---
 meta-cgl-common/recipes-perl/perl/libhtml-tagset-perl_3.20.bb | 2 --
 meta-cgl-common/recipes-perl/perl/libmailtools-perl_2.18.bb   | 2 --
 meta-cgl-common/recipes-perl/perl/libtest-pod-perl_1.51.bb    | 2 --
 meta-cgl-common/recipes-perl/perl/libwww-perl_6.05.bb         | 2 --
 4 files changed, 8 deletions(-)

diff --git a/meta-cgl-common/recipes-perl/perl/libhtml-tagset-perl_3.20.bb b/meta-cgl-common/recipes-perl/perl/libhtml-tagset-perl_3.20.bb
index 96477f6..2765cd2 100644
--- a/meta-cgl-common/recipes-perl/perl/libhtml-tagset-perl_3.20.bb
+++ b/meta-cgl-common/recipes-perl/perl/libhtml-tagset-perl_3.20.bb
@@ -13,7 +13,5 @@ inherit cpan
 
 BBCLASSEXTEND="native"
 
-PACKAGE_ARCH = "all"
-
 SRC_URI[md5sum] = "d2bfa18fe1904df7f683e96611e87437"
 SRC_URI[sha256sum] = "adb17dac9e36cd011f5243881c9739417fd102fce760f8de4e9be4c7131108e2"
diff --git a/meta-cgl-common/recipes-perl/perl/libmailtools-perl_2.18.bb b/meta-cgl-common/recipes-perl/perl/libmailtools-perl_2.18.bb
index e2d2be0..07128e0 100644
--- a/meta-cgl-common/recipes-perl/perl/libmailtools-perl_2.18.bb
+++ b/meta-cgl-common/recipes-perl/perl/libmailtools-perl_2.18.bb
@@ -24,5 +24,3 @@ SRC_URI[sha256sum] = "dfee9e770257371112f20d978e637759e81bc4f19e97b083585c71ecab
 S = "${WORKDIR}/MailTools-${PV}"
 
 inherit cpan
-
-PACKAGE_ARCH = "all"
diff --git a/meta-cgl-common/recipes-perl/perl/libtest-pod-perl_1.51.bb b/meta-cgl-common/recipes-perl/perl/libtest-pod-perl_1.51.bb
index 96e1078..230576f 100644
--- a/meta-cgl-common/recipes-perl/perl/libtest-pod-perl_1.51.bb
+++ b/meta-cgl-common/recipes-perl/perl/libtest-pod-perl_1.51.bb
@@ -17,5 +17,3 @@ SRC_URI[test-pod-perl-1.51.sha256sum] = "c1a1d3cedf4a579e3aad89c36f9878a8542b665
 S = "${WORKDIR}/Test-Pod-${PV}"
 
 inherit cpan
-
-PACKAGE_ARCH = "all"
diff --git a/meta-cgl-common/recipes-perl/perl/libwww-perl_6.05.bb b/meta-cgl-common/recipes-perl/perl/libwww-perl_6.05.bb
index 9ac86b1..21f9df4 100644
--- a/meta-cgl-common/recipes-perl/perl/libwww-perl_6.05.bb
+++ b/meta-cgl-common/recipes-perl/perl/libwww-perl_6.05.bb
@@ -22,5 +22,3 @@ SRC_URI[libwww-perl-6.05.sha256sum] = "7b25799ff7eec18e8e4e97dc0cad7b2a5b433b50b
 S = "${WORKDIR}/libwww-perl-${PV}"
 
 inherit cpan
-
-PACKAGE_ARCH = "all"
-- 
2.7.4




More information about the yocto mailing list