| 1 |
Descriptionscip-debian debian gatk-fermilite 1.2.1+dfsg-3 gatk-fermilite/patches/`use_Debian_fml.patch`#Description.: fml headers are got through libfml-dev, not by downloading anything |
| 2 |
Also loading the shared library from the Debian canonical location. |
| 3 |
Authorscip-debian debian gatk-fermilite 1.2.1+dfsg-3 gatk-fermilite/patches/`use_Debian_fml.patch`#Author.: Pierre Gruet <[email protected]scip-debian . . . identity/`[email protected]`.> |
| 4 |
Forwardedscip-debian debian gatk-fermilite 1.2.1+dfsg-3 gatk-fermilite/patches/`use_Debian_fml.patch`#Forwarded.: not-needed |
| 5 |
Last-Updatescip-debian debian gatk-fermilite 1.2.1+dfsg-3 gatk-fermilite/patches/`use_Debian_fml.patch`#Last-Update.: 2022-03-25 |
| 6 |
|
| 7 |
--- a/src/main/c/Makefilescip-debian debian gatk-fermilite 1.2.1+dfsg-3 gatk-fermilite/upstream/`src/main/c/Makefile`: |
| 8 |
+++ b/src/main/c/Makefilescip-debian debian gatk-fermilite 1.2.1+dfsg-3 gatk-fermilite/upstream/`src/main/c/Makefile`: |
| 9 |
@@ -6,31 +6,18 @@ |
| 10 |
CFLAGS=-g -O2 -Wall -fPIC $(JNI_INCLUDE_DIRS) |
| 11 |
CC=gcc |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
|
| 16 |
|
| 17 |
|
| 18 |
|
| 19 |
|
| 20 |
+LIB_EXT=so |
| 21 |
|
| 22 |
|
| 23 |
JNI_BASE_NAME=org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler |
| 24 |
|
| 25 |
all: libfml.$(LIB_EXT) |
| 26 |
|
| 27 |
|
| 28 |
+libfml.$(LIB_EXT): $(JNI_BASE_NAME).o /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/libfml.so |
| 29 |
$(CC) -dynamiclib -shared -o $@ $^ -lm -lz -lpthread |
| 30 |
|
| 31 |
|
| 32 |
|
| 33 |
+$(JNI_BASE_NAME).o: $(JNI_BASE_NAME).c /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/libfml.so |
| 34 |
|
| 35 |
|
| 36 |
|
| 37 |
|
| 38 |
|
| 39 |
|
| 40 |
|
| 41 |
+test: test.o /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)/libfml.so |
| 42 |
$(CC) -o $@ $^ -lm -lz -lpthread |
| 43 |
|
| 44 |
clean: |
| 45 |
--- a/src/main/c/org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler.cscip-debian debian gatk-fermilite 1.2.1+dfsg-3 gatk-fermilite/upstream/`src/main/c/org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler.c`: |
| 46 |
+++ b/src/main/c/org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler.cscip-debian debian gatk-fermilite 1.2.1+dfsg-3 gatk-fermilite/upstream/`src/main/c/org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler.c`: |
| 47 |
@@ -1,8 +1,7 @@ |
| 48 |
#include <jni.h> |
| 49 |
#include <stdlib.h> |
| 50 |
#include <string.h> |
| 51 |
|
| 52 |
|
| 53 |
+#include <fml.h> |
| 54 |
|
| 55 |
JNIEXPORT jobject JNICALL |
| 56 |
Java_org_broadinstitute_hellbender_utils_fermi_FermiLiteAssembler_createDefaultOptions( JNIEnv* env, jclass cls ) { |
| 57 |
--- a/src/main/java/org/broadinstitute/hellbender/utils/fermi/FermiLiteAssembler.javascip-debian debian gatk-fermilite 1.2.1+dfsg-3 gatk-fermilite/upstream/`src/main/java/org/broadinstitute/hellbender/utils/fermi/FermiLiteAssembler.java`: |
| 58 |
+++ b/src/main/java/org/broadinstitute/hellbender/utils/fermi/FermiLiteAssembler.javascip-debian debian gatk-fermilite 1.2.1+dfsg-3 gatk-fermilite/upstream/`src/main/java/org/broadinstitute/hellbender/utils/fermi/FermiLiteAssembler.java`: |
| 59 |
@@ -125,41 +125,7 @@ |
| 60 |
if ( !nativeLibLoaded ) { |
| 61 |
synchronized(FermiLiteAssembler.class) { |
| 62 |
if ( !nativeLibLoaded ) { |
| 63 |
|
| 64 |
|
| 65 |
|
| 66 |
|
| 67 |
|
| 68 |
|
| 69 |
|
| 70 |
|
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
|
| 78 |
|
| 79 |
|
| 80 |
|
| 81 |
|
| 82 |
|
| 83 |
|
| 84 |
|
| 85 |
|
| 86 |
|
| 87 |
|
| 88 |
|
| 89 |
|
| 90 |
|
| 91 |
|
| 92 |
|
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
|
| 98 |
+ System.loadLibrary("fml"); |
| 99 |
nativeLibLoaded = true; |
| 100 |
} |
| 101 |
} |