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}"
-- 
_______________________________________________
Openembedded-devel mailing list
Openembedded-devel@lists.openembedded.org
http://lists.openembedded.org/mailman/listinfo/openembedded-devel

Reply via email to