Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.debian.maint.java > #12637
| Path | csiph.com!1.us.feeder.erje.net!3.us.feeder.erje.net!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!bofh.it!news.nic.it!robomod |
|---|---|
| From | Loïc Rouchon <loic@loicrouchon.com> |
| Newsgroups | linux.debian.maint.java |
| Subject | Re: Packaging applications with JVM version restrictions |
| Date | Sat, 06 May 2023 15:40:02 +0200 |
| Message-ID | <GsqiK-71wY-5@gated-at.bofh.it> (permalink) |
| References | <GlD1n-2Hkw-5@gated-at.bofh.it> <GlDb3-2HnB-1@gated-at.bofh.it> <GlTzb-2RD1-1@gated-at.bofh.it> <GmagF-31YP-1@gated-at.bofh.it> <GmcVb-33zk-5@gated-at.bofh.it> <GmGJz-3ldC-3@gated-at.bofh.it> |
| X-Mailbox-Line | From debian-java-request@lists.debian.org Sat May 6 13:36:12 2023 |
| Old-Return-Path | <loic@loicrouchon.com> |
| X-Amavis-Spam-Status | No, score=-2.111 tagged_above=-10000 required=5.3 tests=[BAYES_00=-2, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FOURLA=0.1, RCVD_IN_MSPIKE_H2=-0.001, T_SCC_BODY_TEXT_LINE=-0.01] autolearn=no autolearn_force=no |
| X-Policyd-Weight | NOT_IN_SBL_XBL_SPAMHAUS=-1.5 CL_IP_EQ_HELO_IP=-2 (check from: .loicrouchon. - helo: .mail-40136.proton. - helo-domain: .proton.) FROM/MX_MATCHES_NOT_HELO(DOMAIN)=0; rate: -3.5 |
| Feedback-ID | 55091204:user:proton |
| MIME-Version | 1.0 |
| Content-Type | text/plain; charset=utf-8 |
| Content-Transfer-Encoding | quoted-printable |
| X-Mailing-List | <debian-java@lists.debian.org> archive/latest/23309 |
| List-ID | <debian-java.lists.debian.org> |
| List-URL | <https://lists.debian.org/debian-java/> |
| List-Archive | https://lists.debian.org/msgid-search/5DN4r2e8RHjRzUYICY-opVhUutcBp1pYcXYGCCLfAsaKkVdR18bnrrlMJrlZ_vyHo_0IrlhYsHQZ2t3_foJtL89G1qI5OxDSVDEzpJkD4L0=@loicrouchon.com |
| Approved | robomod@news.nic.it |
| Lines | 83 |
| Organization | linux.* mail to news gateway |
| Sender | robomod@news.nic.it |
| X-Original-Cc | Thorsten Glaser <t.glaser@tarent.de>, Rob Browning <rlb@defaultvalue.org>, debian-java@lists.debian.org |
| X-Original-Date | Sat, 06 May 2023 13:20:18 +0000 |
| X-Original-Message-ID | <5DN4r2e8RHjRzUYICY-opVhUutcBp1pYcXYGCCLfAsaKkVdR18bnrrlMJrlZ_vyHo_0IrlhYsHQZ2t3_foJtL89G1qI5OxDSVDEzpJkD4L0=@loicrouchon.com> |
| X-Original-References | <87a5z6cncx.fsf@trouble.defaultvalue.org> <ef484fe1-5f8d-43fe-a01-4b21806ee3d@tarent.de> <40kgFV1MA9c7_foqMvXNHZczvu785kZf8rAuqb_d4N2grN1JYQ2tGc0M82wJN9DamnUGCKMp1aYdqOfKnbOFtgxRYuncFt0FM-kaiAuKXdk=@loicrouchon.com> <fd4fac73-98ff-f218-434-9a4c7129d0ee@tarent.de> <abPjlHrnDNEBB4Itmx_HSHCAnOmvK-7ksdInQSPtRwt4fBLFKINdgtnJN4W9XVjd44sd6iB9wjpCYsOlonAR63l98lBhdCAe7jkW-sb9Omo=@loicrouchon.com> <ZEF2g8ti6qZKS7oy@jadzia.comodo.priv.at> |
| Xref | csiph.com linux.debian.maint.java:12637 |
Show key headers only | View raw
Hi Gregor, >From what I've seen of the java-wrappers package, it seems to solve the problem in a single direction: specifying the minimum JVM's version, but not the maximum. That was one of the remark of Thorsten to me. The more I think about it, the more I think it is not a problem which should be solved by Debian. Nor by Fedora, Nor by Homebrew, ... I'd like to have a solution that is common for all systems/platform to ease the packaging of java applications. So I started a prototype of a program that would choose a JVM based on criteria like the minimum/maximum java specification version, the vendor of the JVM, the capabilities of the JVM (java, javac, javap, native-image, ...) It would consist of two steps: - JVMs discovery - JVM selection I would typically expect the paths/environment variables to use for the discovery to be OS/package managers specific. For Debian, it could be /usr/bin/java, /usr/lib/jvm, $JAVA_HOME. Rules could be specified at system level to say for example: use a JVM in the [11, 17] range. Those rules could be overridden on a per program basis. Here is the prototype: https://github.com/loicrouchon/jvm-finder/tree/main#readme It's written in Go so that the JVM selection is quite fast. I'm more of a Java developer, so probably not great Go, but I'll improve it over time. I do not expect any of you to help me with the implementation, but feel free ;) However, I would love you to contribute to the requirements of such a program. Because I have the point of view of someone wanting to distribute a Java program. But I lack the point of view of distributions/packages maintainers PS: I'll be at Devoxx UK next week and will try to discuss of this topic with other Java developers. Regards, ------- Original Message ------- On Thursday, April 20th, 2023 at 19:29, gregor herrmann <gregoa@debian.org> wrote: > > > On Wed, 19 Apr 2023 09:48:54 +0000, Loïc Rouchon wrote: > > > Debian would need to provide a way to perform the "JRE with exact java $version exists" > > check. This could be done by providing stable symlinks, or alternatives like > > /etc/alternatives/jre_<VERSION> > > > (I haven't read the complete thread in detail, so this might be not > completely appropriate): > > There's also the java-wrappers package which helps to find java > runtimes from shell wrapper scripts. > > > Cheers, > gregor > > -- > .''`. https://info.comodo.priv.at -- Debian Developer https://www.debian.org : :' : OpenPGP fingerprint D1E1 316E 93A7 60A8 104D 85FA BB3A 6801 8649 AA06` . `' Member VIBE!AT & SPI Inc. -- Supporter Free Software Foundation Europe` -
Back to linux.debian.maint.java | Previous | Next — Previous in thread | Find similar
Packaging applications with JVM version restrictions Rob Browning <rlb@defaultvalue.org> - 2023-04-17 21:50 +0200
Re: Packaging applications with JVM version restrictions Thorsten Glaser <t.glaser@tarent.de> - 2023-04-17 22:00 +0200
Re: Packaging applications with JVM version restrictions Loïc Rouchon <loic@loicrouchon.com> - 2023-04-18 15:30 +0200
Re: Packaging applications with JVM version restrictions Thorsten Glaser <t.glaser@tarent.de> - 2023-04-19 09:20 +0200
Re: Packaging applications with JVM version restrictions Loïc Rouchon <loic@loicrouchon.com> - 2023-04-19 12:10 +0200
Re: Packaging applications with JVM version restrictions gregor herrmann <gregoa@debian.org> - 2023-04-20 20:00 +0200
Re: Packaging applications with JVM version restrictions Loïc Rouchon <loic@loicrouchon.com> - 2023-05-06 15:40 +0200
csiph-web