aboutsummaryrefslogtreecommitdiffstats
path: root/testing/java-lz4/0003-prefer-system-lib.patch
diff options
context:
space:
mode:
authorJakub Jirutka <jakub@jirutka.cz>2016-08-17 17:58:35 +0200
committerJakub Jirutka <jakub@jirutka.cz>2016-08-17 17:58:35 +0200
commita99142d7b515b13c288eb9cfae34f0c899f4c04f (patch)
tree0b2fdec1638684d887aac03c4bc75895b1d2e51a /testing/java-lz4/0003-prefer-system-lib.patch
parent87ca2c504aec78f2b93300be70eb3e3953cf4591 (diff)
downloadaports-a99142d7b515b13c288eb9cfae34f0c899f4c04f.tar.bz2
aports-a99142d7b515b13c288eb9cfae34f0c899f4c04f.tar.xz
community/java-lz4: move from testing
Diffstat (limited to 'testing/java-lz4/0003-prefer-system-lib.patch')
-rw-r--r--testing/java-lz4/0003-prefer-system-lib.patch35
1 files changed, 0 insertions, 35 deletions
diff --git a/testing/java-lz4/0003-prefer-system-lib.patch b/testing/java-lz4/0003-prefer-system-lib.patch
deleted file mode 100644
index fd3720c746..0000000000
--- a/testing/java-lz4/0003-prefer-system-lib.patch
+++ /dev/null
@@ -1,35 +0,0 @@
-From 4727fc60f17a67b40c2bdf200a518a5d5708804c Mon Sep 17 00:00:00 2001
-From: Jakub Jirutka <jakub@jirutka.cz>
-Date: Thu, 7 Apr 2016 19:06:53 +0200
-Subject: [PATCH] Try to load lz4-java from java.library.path, then fallback to bundled
-
-Use system-provided lz4-java, if it's available on the java.library.path
-(the default location where Java looks for native libraries), and fallback
-to bundled binary if it's not. This allows user to use lz4 java even
-on systems that are not directly supported, like Linux with musl libc,
-uClibc etc.
----
- src/java/net/jpountz/util/Native.java | 10 ++++++++++
- 1 file changed, 10 insertions(+)
-
-diff --git a/src/java/net/jpountz/util/Native.java b/src/java/net/jpountz/util/Native.java
-index 1856841..e25708e 100644
---- a/src/java/net/jpountz/util/Native.java
-+++ b/src/java/net/jpountz/util/Native.java
-@@ -71,6 +71,16 @@ public static synchronized void load() {
- if (loaded) {
- return;
- }
-+
-+ // Try to load lz4-java (liblz4-java.so on Linux) from the java.library.path.
-+ try {
-+ System.loadLibrary("lz4-java");
-+ loaded = true;
-+ return;
-+ } catch (UnsatisfiedLinkError ex) {
-+ // Doesn't exist, so proceed to loading bundled library.
-+ }
-+
- String resourceName = resourceName();
- InputStream is = Native.class.getResourceAsStream(resourceName);
- if (is == null) {