File: properly_version_so.patch

package info (click to toggle)
zstd-jni-java 1.5.2-5%2Bds-8
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 528 kB
  • sloc: java: 2,246; ansic: 1,031; sh: 547; xml: 68; makefile: 21
file content (20 lines) | stat: -rw-r--r-- 1,046 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
Description: Modify native library name to comply with Debian policy
 Also allows proper functioning of SONAME system as implemented in
 fix_cmake.patch. This is required because upstream bundles the native binary
 into the JAR file by default. Shipping the native binary separately adheres
 better to Debian library standards and the patches are fairly trivial.
Author: Olek Wojnar <olek@debian.org>
Forwarded: not-needed
Last-Update: 2022-10-20

--- a/src/main/java/com/github/luben/zstd/util/Native.java
+++ b/src/main/java/com/github/luben/zstd/util/Native.java
@@ -10,7 +10,7 @@
     ;
 
     private static final String nativePathOverride = "ZstdNativePath";
-    private static final String libnameShort = "zstd-jni-" + ZstdVersion.VERSION;
+    private static final String libnameShort = "zstd-jni";
     private static final String libname = "lib" + libnameShort;
     private static final String errorMsg = "Unsupported OS/arch, cannot find " +
         resourceName() + " or load " + libnameShort + " from system libraries. Please " +