Merge ~vpa1977/ubuntu/+source/jsurf-alggeo:java21-ftbfs into ubuntu/+source/jsurf-alggeo:ubuntu/devel

Proposed by Vladimir Petko
Status: Merged
Merged at revision: bde6de0388582d6af57325a41b3d28e53a1076cd
Proposed branch: ~vpa1977/ubuntu/+source/jsurf-alggeo:java21-ftbfs
Merge into: ubuntu/+source/jsurf-alggeo:ubuntu/devel
Diff against target: 36 lines (+10/-1)
2 files modified
debian/changelog (+8/-0)
debian/rules (+2/-1)
Reviewer Review Type Date Requested Status
Julian Andres Klode (community) Approve
git-ubuntu import Pending
Review via email: mp+460423@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/15785409/+listing-archive-extra
[3] https://bugs.launchpad.net/ubuntu/+source/jsurf-alggeo/+bug/2052990/comments/1

To post a comment you must log in.
Revision history for this message
Julian Andres Klode (juliank) wrote :

Uploaded, thanks

review: Approve

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 c99cbdf..0c136e5 100644
3--- a/debian/changelog
4+++ b/debian/changelog
5@@ -1,3 +1,11 @@
6+jsurf-alggeo (0.4.1+ds-4ubuntu2) noble; urgency=medium
7+
8+ * d/rules: use java_compat_level variable provided by java-common to
9+ adjust -source/-target level to the minimum required by the default
10+ Java (LP: #2052990).
11+
12+ -- Vladimir Petko <vladimir.petko@canonical.com> Tue, 13 Feb 2024 16:18:10 +1300
13+
14 jsurf-alggeo (0.4.1+ds-4ubuntu1) mantic; urgency=medium
15
16 * d/p/check-interrupted-status.patch: add retries to the test to avoid race
17diff --git a/debian/rules b/debian/rules
18index 8b0885f..c5fb549 100755
19--- a/debian/rules
20+++ b/debian/rules
21@@ -1,5 +1,6 @@
22 #!/usr/bin/make -f
23 include /usr/share/dpkg/pkg-info.mk
24+include /usr/share/java/java_defaults.mk
25
26 UPS_PKG_VERSION = $(shell echo $(DEB_VERSION_UPSTREAM) | sed s/+.*//)
27 DEB_PKG_VERSION = $(DEB_VERSION)
28@@ -16,7 +17,7 @@ default:
29 dh $@ --with javahelper --with jh_maven_repo_helper
30
31 override_jh_build-indep:
32- jh_build --javacopts="-source 1.7 -target 1.7" --javadoc-opts="-source 1.7"
33+ jh_build --javacopts="-source $(java_compat_level) -target $(java_compat_level)" --javadoc-opts="-source $(java_compat_level)"
34
35 override_dh_prep-indep:
36 $(MKDIR_P) debian/poms

Subscribers

People subscribed via source and target branches