Ignore:
Timestamp:
2023-10-31T17:21:01+01:00 (7 months ago)
Author:
taylor.smock
Message:

See #17858: Add Java 17 as an option for the Java version in deb packages

By depending upon default-jre with a version specification, we can avoid
hardcoding many specific Java JREs versions via |. Instead, we just indicate
that the default-jre must be >= 17 or the currently installed version must be
Java 8 compatible. This will change on 2023-12-31 when Java 8 support is dropped.
See #17858 for details.

This was verified via the following in an Ubuntu 23.04 container:

  1. curl -O https://josm.openstreetmap.de/apt/pool/universe/j/josm-latest/josm-latest_1.5.svn18887_all.deb
  2. ar x josm-latest_1.5.svn18887_all.deb control.tar.xz
  3. tar xf control.tar.xz control
  4. Edit control to match new control
  5. xz --decompress control.tar.xz && tar uvf control.tar control && xz control.tar
  6. ar r josm-latest_1.5.svn18887_all.deb control.tar.xz

The resulting deb package was then tested against Debian Buster, Bullseye,
Bookworm, Trixie, and Sid, along with Ubuntu 18.04, 20.04, 22.04, 23.04, and
23.10 with
podman run -it --rm --volume $(pwd):/mnt ${IMAGE} /usr/bin/bash -c "apt update && apt install -y /mnt/josm-latest_1.5.svn18887_all.deb && josm-latest --version && josm-latest --status-report"

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/native/linux/tested/DEBIAN/control

    r18160 r18889  
    66Priority: extra
    77Architecture: all
    8 Depends: openjdk-11-jre | java11-runtime | openjdk-8-jre | java8-runtime,
     8Depends: default-jre (>= 2:1.17) | java8-runtime,
    99         proj-data, fonts-noto, openjfx
    1010Conflicts: josm-plugins
Note: See TracChangeset for help on using the changeset viewer.