Codebase list jmagick / f41c11f
Fixed the build failure with Java 10 (Closes: #897456) Emmanuel Bourg 5 years ago
4 changed file(s) with 44 addition(s) and 1 deletion(s). Raw diff Collapse all Expand all
55 - Thanks to Adam Conrad for the patch. (Closes: #727776)
66
77 [ Emmanuel Bourg ]
8 * Fixed the build failure with Java 10 (Closes: #897456)
89 * Standards-Version updated to 4.1.4
910 * Switch to debhelper level 10
1011 * Use salsa.debian.org Vcs-* URLs
0 Description: Fixes the build failure with Java 10
1 Author: Emmanuel Bourg <ebourg@apache.org>
2 Forwarded: no
3 --- a/configure.in
4 +++ b/configure.in
5 @@ -211,13 +211,6 @@
6 fi
7 AC_SUBST(JAVAC)
8
9 -dnl Determine if we have the Java header file generator
10 -AC_PATH_PROG(JAVAH, javah, not_found)
11 -if test ${JAVAH} = not_found; then
12 - AC_MSG_ERROR('No Java header generator (javah) found')
13 -fi
14 -AC_SUBST(JAVAH)
15 -
16 dnl Determine if we have jar
17 AC_PATH_PROG(JAR, jar, not_found)
18 if test ${JAR} = not_found; then
19 --- a/Make.rules
20 +++ b/Make.rules
21 @@ -71,6 +71,7 @@
22 $(JAVA_PACKAGE_DIR)/%.class: %.java
23 @-mkdir -p $(dir $@)
24 $(JAVAC) $(JFLAGS) -d $(JAVA_CLASSES_DIR) \
25 + -h $(PACKAGE_GENERATED_DIR) \
26 -sourcepath $(JAVA_SRC_DIR) \
27 -classpath $(JAVA_CLASS_PATH) $<
28
29 @@ -120,11 +121,6 @@
30 # Rule to make header files from java class files.
31 # The originating java source must contain native method specifications.
32 $(PACKAGE_GENERATED_DIR)/$(JNI_HEADER_PREFIX)_%.h: $(JAVA_PACKAGE_DIR)/%.class
33 - @-rm $@ > /dev/null 2>&1
34 - @-mkdir -p $(dir $@)
35 - "$(JAVAH)" -d $(PACKAGE_GENERATED_DIR) -jni \
36 - -classpath $(JAVA_CLASS_PATH) \
37 - $(JAVA_PACKAGE).$(subst .class,,$(notdir $<))
38
39 # Rule to compile JNI C files
40 $(PACKAGE_OBJ_DIR)/%.lo: %.c $(PACKAGE_GENERATED_DIR)/%.h
00 01_fix_load_jnilib.patch
11 02_jmagick_implicit_decl.patch
22 0001-Use-pkgconfig-for-flags.patch
3 04_java10_compatibility.patch
1818 DEB_AUTO_UPDATE_AUTOCONF := yes
1919 VERSION=$(shell dpkg-parsechangelog | sed -rne 's,^Version: ([^~-]+).*,\1,p')
2020
21 export JFLAGS = -source 1.6 -target 1.6 -g
21 export JFLAGS = --release 7 -g
2222
2323 install/libjmagick6-java::
2424 mh_installpom -plibjmagick6-java -e$(VERSION) debian/pom.xml