diff -Nru libsvm-3.24+ds/debian/changelog libsvm-3.24+ds/debian/changelog --- libsvm-3.24+ds/debian/changelog 2020-10-21 19:22:16.000000000 +0000 +++ libsvm-3.24+ds/debian/changelog 2024-02-22 03:33:36.000000000 +0000 @@ -1,3 +1,18 @@ +libsvm (3.24+ds-6ubuntu2) noble; urgency=medium + + * d/control: add java-common to Build-Depends to resolve build + failure on platforms other than amd64. + + -- Vladimir Petko Thu, 22 Feb 2024 16:33:36 +1300 + +libsvm (3.24+ds-6ubuntu1) noble; urgency=medium + + * d/rules, d/target-source.patch: use java_compat_level variable + provided by java-common to adjust -source/-target level to the + minimum required by the default Java (LP: #2054242). + + -- Vladimir Petko Mon, 19 Feb 2024 10:34:10 +1300 + libsvm (3.24+ds-6) unstable; urgency=medium * d/test/control: Add python3-all to python-simple's Depends: diff -Nru libsvm-3.24+ds/debian/control libsvm-3.24+ds/debian/control --- libsvm-3.24+ds/debian/control 2020-10-21 19:21:50.000000000 +0000 +++ libsvm-3.24+ds/debian/control 2024-02-22 03:33:36.000000000 +0000 @@ -1,7 +1,8 @@ Source: libsvm Section: devel Priority: optional -Maintainer: Debian Science Maintainers +Maintainer: Ubuntu Developers +XSBC-Original-Maintainer: Debian Science Maintainers Uploaders: Chen-Tse Tsai , Christian Kastner , @@ -11,6 +12,7 @@ libtool, python3-all:native, dh-python, + java-common, Build-Depends-Indep: default-jdk Rules-Requires-Root: no diff -Nru libsvm-3.24+ds/debian/patches/target-source.patch libsvm-3.24+ds/debian/patches/target-source.patch --- libsvm-3.24+ds/debian/patches/target-source.patch 2020-10-21 19:15:37.000000000 +0000 +++ libsvm-3.24+ds/debian/patches/target-source.patch 2024-02-18 21:25:46.000000000 +0000 @@ -8,7 +8,14 @@ --- a/java/Makefile +++ b/java/Makefile -@@ -11,7 +11,7 @@ JAVAC = javac +@@ -5,13 +5,13 @@ + svm_train.class svm_predict.class svm_toy.class svm_scale.class + + #JAVAC = jikes +-JAVAC_FLAGS = -target 1.7 -source 1.7 ++JAVAC_FLAGS = -target $(JAVA_COMPAT_LEVEL) -source $(JAVA_COMPAT_LEVEL) + JAVAC = javac + # JAVAC_FLAGS = export CLASSPATH := .:$(CLASSPATH) all: $(FILES) diff -Nru libsvm-3.24+ds/debian/rules libsvm-3.24+ds/debian/rules --- libsvm-3.24+ds/debian/rules 2020-10-21 19:15:37.000000000 +0000 +++ libsvm-3.24+ds/debian/rules 2024-02-18 21:24:50.000000000 +0000 @@ -3,6 +3,7 @@ # Uncomment this to turn on verbose mode. #export DH_VERBOSE=1 +include /usr/share/java/java_defaults.mk # For DEB_VERSION_UPSTREAM include /usr/share/dpkg/pkg-info.mk @@ -53,7 +54,7 @@ override_dh_auto_build-indep: dh_auto_build -i - $(MAKE) -C java + $(MAKE) JAVA_COMPAT_LEVEL=$(java_compat_level) -C java override_dh_auto_install: dh_auto_install -- libdir=/usr/lib/$(DEB_HOST_MULTIARCH)/