Merge ~vpa1977/ubuntu/+source/jlapack:java-21-ftbfs into ubuntu/+source/jlapack:ubuntu/devel

Proposed by Vladimir Petko
Status: Merged
Merge reported by: Vladimir Petko
Merged at revision: c7fa8858ad507706dc1d084280bf88b96e7c1918
Proposed branch: ~vpa1977/ubuntu/+source/jlapack:java-21-ftbfs
Merge into: ubuntu/+source/jlapack:ubuntu/devel
Diff against target: 63 lines (+14/-6)
4 files modified
debian/changelog (+8/-0)
debian/control (+2/-1)
debian/patches/java9.patch (+2/-4)
debian/rules (+2/-1)
Reviewer Review Type Date Requested Status
Matthias Klose Pending
git-ubuntu import Pending
Review via email: mp+460134@code.launchpad.net

Description of the change

This MP resolves Java 21 ftbfs.

PPA: ppa:vpa1977/gettext [1]

Changes:
 - use java_compat_level variable provided by java-common to adjust -source/-target level to the minimum required by the default Java

Testing:
 - rebuild in default Java 21 ppa[2]
 - piuparts test [3]

[1] https://launchpad.net/~vpa1977/+archive/ubuntu/gettext
[2] https://launchpad.net/~vpa1977/+archive/ubuntu/gettext-21/+sourcepub/15775864/+listing-archive-extra
[3] https://bugs.launchpad.net/ubuntu/+source/jlapack/+bug/2052563/comments/1

To post a comment you must log in.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1diff --git a/debian/changelog b/debian/changelog
2index 9eb0c5d..f184fb3 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+jlapack (0.8~dfsg-5ubuntu1) noble; urgency=medium
7+
8+ * d/rules, d/p/java9.patch: use java_compat_level variable provided by
9+ java-common to adjust -source/-target level to the minimum required by the
10+ default Java (LP: #2052563).
11+
12+ -- Vladimir Petko <vladimir.petko@canonical.com> Fri, 17 Nov 2023 20:55:38 +1300
13+
14 jlapack (0.8~dfsg-5) unstable; urgency=medium
15
16 * Fake watch file
17diff --git a/debian/control b/debian/control
18index e19d06e..4e318e1 100644
19--- a/debian/control
20+++ b/debian/control
21@@ -1,5 +1,6 @@
22 Source: jlapack
23-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
24+Maintainer: Ubuntu Developers <ubuntu-devel-discuss@lists.ubuntu.com>
25+XSBC-Original-Maintainer: Debian Java Maintainers <pkg-java-maintainers@lists.alioth.debian.org>
26 Uploaders: Olivier Sallou <osallou@debian.org>,
27 Andreas Tille <tille@debian.org>
28 Section: java
29diff --git a/debian/patches/java9.patch b/debian/patches/java9.patch
30index 5be0659..3c715c1 100644
31--- a/debian/patches/java9.patch
32+++ b/debian/patches/java9.patch
33@@ -9,16 +9,14 @@ Forwarded: no
34 jlapack-3.1.1/make.def | 2 +-
35 1 file changed, 1 insertion(+), 1 deletion(-)
36
37-diff --git a/jlapack-3.1.1/make.def b/jlapack-3.1.1/make.def
38-index 4250a84..054b849 100644
39 --- a/jlapack-3.1.1/make.def
40 +++ b/jlapack-3.1.1/make.def
41-@@ -3,7 +3,7 @@ VERSION=jlapack-0.8
42+@@ -3,7 +3,7 @@
43 F2J=f2java
44 JAVA=java
45 MORE_MEM_FLAG=-Xmx500M
46 -JAVAC=javac -source 1.4 -target 1.4
47-+JAVAC=javac -source 1.7 -target 1.7
48++JAVAC=javac -source $$JAVA_COMPAT_LEVEL -target $$JAVA_COMPAT_LEVEL
49 JAVAB=javab
50 JAR=jar
51 # JAR=/usr/bin/jar
52diff --git a/debian/rules b/debian/rules
53index 5937fae..c8119f7 100755
54--- a/debian/rules
55+++ b/debian/rules
56@@ -1,6 +1,7 @@
57 #!/usr/bin/make -f
58 # -*- makefile -*-
59-
60+include /usr/share/java/java_defaults.mk
61+export JAVA_COMPAT_LEVEL=$(java_compat_level)
62 # Uncomment this to turn on verbose mode.
63 #export DH_VERBOSE=1
64

Subscribers

People subscribed via source and target branches