[oe] [meta-java][bug] java-library inherit allarch

nick83ola nick83ola at gmail.com
Thu Nov 15 13:18:39 UTC 2018


Hi all,

got some issue compiling the rxtx package in meta java.

In particular regarding this patch

https://patchwork.openembedded.org/patch/89023/

this approach is still valid (inherit allarch in java-library class)?

Regards
Nicola Lunghi

=======================================================

[meta-java,v2,4/6] java-library: inherit allarch

Use the allarch class to make every packages in the 'all' ARCH.
Recipes inheriting java-library which build additional packages which
don't belong in to all ARCH must manually setting PACKAGE_ARCH after
inheritting java-library.

diff --git a/classes/java-library.bbclass b/classes/java-library.bbclass
index a74c8d3..144cd2f 100644
--- a/classes/java-library.bbclass
+++ b/classes/java-library.bbclass
@@ -7,8 +7,12 @@
 # starts with "lib" and/or ends with "-java". In case the "lib"
prefix is part of
 # your package's normal name (e.g. liberator) the guessing is wrong
and you have
 # to set JPN manually!
+#
+# package archs are set to all, if the recipe builds also packages which
+# can not be used for all archs, then set the PACKAGE_ARCH of that package
+# manually, see rxtx_xx.bb for an example.

-inherit java
+inherit java allarch

.......

 inherit java-library
+PACKAGE_ARCH = "${TUNE_PKGARCH}"


More information about the Openembedded-devel mailing list