Skip to contentSkip to conversation

rxtx: put .jar and .so files into the same package (librxtx-java)

PATCH New Mario Domenech Goulart 1 participant 5 messages Mar 31, 2015

lore
Share & tools
lore
#0 lore raw

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

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

---
 recipes-extended/rxtx/rxtx_2.2.0.bb | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)
recipes-extended/rxtx/rxtx_2.2.0.bb +8 -2
index 56c939f..b9b3027 100644
@@ -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"
Signature · 1 line
2.1.4
#1 lore raw

PATCH 2/5 README: typo fix (s/lease/least/)

---
 README | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
README +1 -1
index f530702..c5bba6c 100644
@@ -52,7 +52,7 @@ Main layer maintainers:
 Usage instructions
 ------------------
 
-You should define at lease the following variables in a distro include file or local.conf
+You should define at least the following variables in a distro include file or local.conf
 
 PREFERRED_PROVIDER_virtual/java-initial = "cacao-initial"
 
Signature · 1 line
2.1.4
#2 lore raw

PATCH 3/5 cacao-initial-native, jamvm-initial-native: provide virtual/java-initial-native

In reply to Mario Domenech Goulart

Since bd9c6023, virtual/java-initial is provided by cacao-initial-native and jamvm-initial-native. For consistency, this commit makes them provide virtual/java-initial-native instead.

---
 README                                           | 2 +-
 recipes-core/cacao/cacao-initial-native_0.98.bb  | 2 +-
 recipes-core/ecj/libecj-bootstrap.inc            | 2 +-
 recipes-core/jamvm/jamvm-initial-native_1.4.5.bb | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)
README +1 -1
index c5bba6c..70af588 100644
@@ -54,7 +54,7 @@ Usage instructions
 
 You should define at least the following variables in a distro include file or local.conf
 
-PREFERRED_PROVIDER_virtual/java-initial = "cacao-initial"
+PREFERRED_PROVIDER_virtual/java-initial-native = "cacao-initial-native"
 
 PREFERRED_PROVIDER_virtual/java-native = "jamvm-native"
 PREFERRED_PROVIDER_virtual/javac-native = "ecj-bootstrap-native"
recipes-core/cacao/cacao-initial-native_0.98.bb +1 -1
index 181faca..72c6246 100644
@@ -4,7 +4,7 @@ LICENSE  = "GPL-2.0"
 LIC_FILES_CHKSUM = "file://COPYING;md5=59530bdf33659b29e73d4adb9f9f6552"
 SECTION  = "interpreters"
 
-PROVIDES = "virtual/java-initial"
+PROVIDES = "virtual/java-initial-native"
 
 inherit native autotools-brokensep
 
recipes-core/ecj/libecj-bootstrap.inc +1 -1
index 9fb4156..020b8d3 100644
@@ -5,7 +5,7 @@ HOMEPAGE = "http://www.eclipse.org/"
 LICENSE = "EPL-1.0"
 LIC_FILES_CHKSUM = "file://${COMMON_LICENSE_DIR}/EPL-1.0;md5=57f8d5e2b3e98ac6e088986c12bf94e6"
 
-DEPENDS = "fastjar-native jikes-initial-native virtual/java-initial"
+DEPENDS = "fastjar-native jikes-initial-native virtual/java-initial-native"
 
 INC_PR = "r5"
 
recipes-core/jamvm/jamvm-initial-native_1.4.5.bb +1 -1
index 25b42b0..bf005db 100644
@@ -5,7 +5,7 @@ LIC_FILES_CHKSUM = "file://COPYING;md5=0636e73ff0215e8d672dc4c32c317bb3"
 
 DEPENDS = "zlib-native classpath-initial-native jikes-initial-native libffi-native"
 
-PROVIDES = "virtual/java-initial"
+PROVIDES = "virtual/java-initial-native"
 
 PR = "r1"
 
Signature · 1 line
2.1.4
#3 lore raw

PATCH 4/5 openjdk-7: add /usr/lib/jni to DEFAULT_LIBPATH

In reply to Mario Domenech Goulart

Some recipes install JNI-based bindings into /usr/lib/jni (e.g., rxtx), so it's sensible to add this directory to DEFAULT_LIBPATH (java.library.path). That's also how Debian does.

---
 .../icedtea-add-usr-lib-jni-to-DEFAULT_LIBPATH.patch  | 19 +++++++++++++++++++
 recipes-core/openjdk/openjdk-7-release-25b30.inc      |  2 ++
 2 files changed, 21 insertions(+)
 create mode 100644 recipes-core/openjdk/openjdk-7-25b30/icedtea-add-usr-lib-jni-to-DEFAULT_LIBPATH.patch
recipes-core/openjdk/openjdk-7-25b30/icedtea-add-usr-lib-jni-to-DEFAULT_LIBPATH.patch new file +19 -0
new file mode 100644
index 0000000..fb48879
@@ -0,0 +1,19 @@
+From: Mario Domenech Goulart <[email protected]>
+Organization: O.S. Systems Software LTDA.
+
+Upstream-Status: Pending
+---
+--- openjdk/hotspot/src/os/linux/vm/os_linux.cpp	2015-03-30 13:43:43.433168285 -0300
++++ openjdk/hotspot/src/os/linux/vm/os_linux.cpp	2015-03-30 13:45:57.601833592 -0300
+@@ -388,9 +388,9 @@
+  *        7: The default directories, normally /lib and /usr/lib.
+  */
+ #if defined(AMD64) || defined(_LP64) && (defined(SPARC) || defined(PPC) || defined(S390))
+-#define DEFAULT_LIBPATH "/usr/lib64:/lib64:/lib:/usr/lib"
++#define DEFAULT_LIBPATH "/usr/lib64:/lib64:/lib:/usr/lib:/usr/lib64/jni:/usr/lib/jni"
+ #else
+-#define DEFAULT_LIBPATH "/lib:/usr/lib"
++#define DEFAULT_LIBPATH "/lib:/usr/lib:/usr/lib/jni"
+ #endif
+ 
+ #define EXTENSIONS_DIR  "/lib/ext"
recipes-core/openjdk/openjdk-7-release-25b30.inc +2 -0
index 3b7d84e..9888ce3 100644
@@ -81,6 +81,7 @@ ICEDTEAPATCHES = "\
 	file://icedtea-jdk-nio-use-host-cc.patch;apply=no \
         file://icedtea-unset-NIO_PLATFORM_CLASSES_ROOT_DIR.patch;apply=no \
         file://icedtea-openjdk-remove-currency-data-generation-expi.patch;apply=no \
+        file://icedtea-add-usr-lib-jni-to-DEFAULT_LIBPATH.patch;apply=no \
 	"
 ICEDTEAPATCHES_append_powerpc = " \
 	file://icedtea-jdk-ppc64-jvm-cfg.patch;apply=no \
@@ -112,6 +113,7 @@ DISTRIBUTION_PATCHES = "\
 	patches/icedtea-jdk-nio-use-host-cc.patch \
 	patches/icedtea-unset-NIO_PLATFORM_CLASSES_ROOT_DIR.patch \
 	patches/icedtea-openjdk-remove-currency-data-generation-expi.patch \
+	patches/icedtea-add-usr-lib-jni-to-DEFAULT_LIBPATH.patch \
 	"
 
 DISTRIBUTION_PATCHES_append_libc-uclibc = "\
Signature · 1 line
2.1.4
#4 lore raw

PATCH 5/5 icedtea6-native.inc: remove --disable-npplugin

In reply to Mario Domenech Goulart

Fixes:

WARNING: QA Issue: icedtea6-native: configure was passed unrecognised
options: --disable-npplugin

---
 recipes-core/icedtea/icedtea6-native.inc | 1 -
 1 file changed, 1 deletion(-)
recipes-core/icedtea/icedtea6-native.inc +0 -1
index df1be9c..43377ce 100644
@@ -28,7 +28,6 @@ EXTRA_OECONF = "\
 	--disable-docs \
 	--disable-pulse-java \
 	--disable-plugin \
-        --disable-npplugin \
 	--disable-xrender \
 	\
 	--with-ecj=${STAGING_BINDIR_NATIVE}/ecj-bootstrap \
Signature · 1 line
2.1.4