Skip to content

Compile targeting Java 17#14886

Open
uckelman wants to merge 7 commits into
vassalengine:release-3.7from
uckelman:java_17
Open

Compile targeting Java 17#14886
uckelman wants to merge 7 commits into
vassalengine:release-3.7from
uckelman:java_17

Conversation

@uckelman

Copy link
Copy Markdown
Contributor

No description provided.

@uckelman uckelman added this to the 3.7.25 milestone Jul 10, 2026
@uckelman uckelman changed the title Compile for Java 17. Compile for Java 17 Jul 10, 2026
@uckelman uckelman requested a review from cholmcc July 11, 2026 13:39
@uckelman uckelman changed the title Compile for Java 17 Compile targeting Java 17 Jul 11, 2026

@cholmcc cholmcc left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

See the individual comments below. There's no need to try to capture the specific Java installation, as

  • in all likeliness, the installation system will have a new enough Java,
  • it is not OK to specify alternatives when build, and
  • build systems will have at least Java 17

Comment thread debian/control
Uploaders: Christian Holm Christensen <cholmcc@gmail.com>
Build-Depends:
debhelper-compat (= 13),
default-jdk,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is no good. A package cannot Build-Depends on a selection of packages. Just leave it at default-jdk. There's no chance that the package will be build on oldoldstable - which is the only distro release that has pre-17.

Comment thread debian/control
Architecture: all
Depends:
bash (>= 5.0.0),
default-jre,

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Similar to the above comment. Also, because a newer Java is used at build time, that requirement will automatically propagate to install-time.

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Leave it at default-jre. There's no need to change this at all.

- name: Install build dependencies
run: |
dep=$(cat debian/control | \
sed -E ':a ; $!N ; s/\n\s+/ /; ta P ; D' | \

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is not needed. See other comments.

Comment thread dist/linux/vassal.spec.in
Source0: https://github.com/@REPOSITORY@/releases/download/@RELEASE@/VASSAL-@RELEASE@-linux.tar.bz2
URL: https://vassalengine.org/
BuildArch: noarch
Requires: java

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is dubious. There are really no releases that are stuck on Java 11 or earlier. I think you can do

Requires: java >= 1:1.17.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants