[oe] [meta-java][PATCH 1/5] rxtx: put .jar and .so files into the same package (librxtx-java)

Mario Domenech Goulart mario at ossystems.com.br
Tue Mar 31 13:22:34 UTC 2015


That's how Debian does, supposedly because it does not make sense to
ship .jar and .so files into separate packages.

Signed-off-by: Mario Domenech Goulart <mario at ossystems.com.br>
---
 recipes-extended/rxtx/rxtx_2.2.0.bb | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/recipes-extended/rxtx/rxtx_2.2.0.bb b/recipes-extended/rxtx/rxtx_2.2.0.bb
index 56c939f..b9b3027 100644
--- a/recipes-extended/rxtx/rxtx_2.2.0.bb
+++ b/recipes-extended/rxtx/rxtx_2.2.0.bb
@@ -26,7 +26,7 @@ SRC_URI[sha256sum] = "3c30373e760f444def3650c76c5a00ae12fb1d860ec008750d084f4880
 
 S = "${WORKDIR}/rxtx-2.2pre2"
 
-INSANE_SKIP_${PN} += "dev-so"
+INSANE_SKIP_${JPN} += "dev-so"
 
 inherit autotools-brokensep java-library
 PACKAGE_ARCH = "${TUNE_PKGARCH}"
@@ -51,5 +51,11 @@ do_install_prepend() {
     install -d ${D}${datadir_java}/ext
 }
 
-FILES_${PN} += "${libdir_jni}"
+PACKAGES_remove = "${PN}"
+
+FILES_${JPN} += "${libdir_jni}"
+RPROVIDES_${JPN} = "${PN}"
+RCONFLICTS_${JPN} = "${PN}"
+RREPLACES_${JPN} = "${PN}"
+
 FILES_${PN}-dbg += "${libdir_jni}/.debug"
-- 
2.1.4




More information about the Openembedded-devel mailing list