From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms1.migadu.com with LMTPS id wHeyLuCkJGZcCgAAe85BDQ:P1 (envelope-from ) for ; Sun, 21 Apr 2024 07:32:16 +0200 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id wHeyLuCkJGZcCgAAe85BDQ (envelope-from ) for ; Sun, 21 Apr 2024 07:32:16 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=QiTr+JzD; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=lepiller.eu ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1713677536; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=oXyMx5mSWaSLLrI7S/+o+G8pdV0NG05jqHV13fMvSUM=; b=giRla6HJFGDw43BxOFviqP21Ey9OFCTjgUhMhsbM782R6U0VRhIE7PvHp3rzrHIrl5h2AM lhY/zVEqzTxO4fRkO5CEFRTirxCIFnw7b9obN6wBlmHIJepcC3C8w3GS3ph8E/TPissCuI HZjmBA//fzBZ56UEVLlGPz5t5JjUmCKD9TAmM08NDeT6VwsutVLN7VkohjiJe+D7vSGnzF 6d1PbrEwt6DUgy+SAVgEjpYgcdeZTtiwwzTzeDtpvNWcVd+uvMEXtS1RNS/KNRkrUN9ED3 ILBc19aFVkLk7oKPj7eswOa6KPmgw7tH2QGVZLsj3hGHui+7d2rGg+NKjLb2YA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1713677536; a=rsa-sha256; cv=none; b=m/1q6bv6bGwuPVmbI/lifllZu2dVfcKSMfF08l4gM/3RZJaNnVxRZsGgv19DdwdHj0r+Ls upXea1VWubWj96rqENJsGaxjmw5fSt8Ll+oufsUUIHVioekKx19wP4gdArgbHlhIGH/vZ2 1hUbrBkgC35Z5J9ncL0j+r8CYvIqyG7UIGxoIRzv0SDWAHjtxnVIFJexZAP+BdHtde6809 3CYGmnl/Qx3OsPto4FV29ShmaodlJEYR5zisN3HkdDDob2cRfREgtkzLMjSLZ4Xs19EiA/ NXuuxPfI0kQDMF2PFelj6/QNekz0w7G2u91sQmNIRCLQlzW6e7iWQnIow26dNQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=lepiller.eu header.s=dkim header.b=QiTr+JzD; spf=pass (aspmx1.migadu.com: domain of "guix-devel-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="guix-devel-bounces+larch=yhetil.org@gnu.org"; dmarc=pass (policy=none) header.from=lepiller.eu Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 8E3CD393ED for ; Sun, 21 Apr 2024 07:32:15 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1ryPnO-0006vw-JD; Sun, 21 Apr 2024 01:31:22 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryPnJ-0006vh-KH for guix-devel@gnu.org; Sun, 21 Apr 2024 01:31:19 -0400 Received: from lepiller.eu ([89.234.186.109]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1ryPnH-00011C-AI for guix-devel@gnu.org; Sun, 21 Apr 2024 01:31:17 -0400 Received: from lepiller.eu (localhost [127.0.0.1]) by lepiller.eu (OpenSMTPD) with ESMTP id 19dea3d4; Sun, 21 Apr 2024 05:31:09 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed; d=lepiller.eu; h=date:from :to:cc:subject:in-reply-to:references:message-id:mime-version :content-type:content-transfer-encoding; s=dkim; bh=McIlPeTqfslH 902dibLWXLdlqExAsVTfufREhXrt0e8=; b=QiTr+JzDGdpAKUbEJaFJ6WjZXkng 1tzga2HBOejeuIOX5168Vv2JYOvWG90g87ly3GrKeLQ6SNbciKmJnApCxRheo5Ru 0IBppupqByU0LJAuKIK2NoueW1hPK5qMyl96evuw+nmKGthZMhNUV+Yezm01c9SI 3pmLKgGMt5NWLhL64fIamB8YurmX7rGtRsdlJQ+qGycNcvmz1Ki8WzV/BuhEkAP9 NTq7jOvcsYA9Tsy4FxyRg6qNg1sJJykI9Op5u/nrtprQuQ3NpdkDeGrjYPxggwGz YRD5wXBWafuWZYy4x0/dN/nVR0zYlPI53ikzR52sbZs6r+srAFSy5kM4+w== Received: by lepiller.eu (OpenSMTPD) with ESMTPSA id c5ad60b3 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); Sun, 21 Apr 2024 05:31:09 +0000 (UTC) Date: Sun, 21 Apr 2024 07:31:08 +0200 From: Julien Lepiller To: Markku Korkeala CC: Vagrant Cascadian , guix-devel@gnu.org Subject: Re: No default OpenJDK version? User-Agent: K-9 Mail for Android In-Reply-To: References: <875xwh2gxu.fsf@wireframe> <7E2D3637-9BD5-407A-8314-0C08A0D216B3@lepiller.eu> Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=89.234.186.109; envelope-from=julien@lepiller.eu; helo=lepiller.eu X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: guix-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+larch=yhetil.org@gnu.org Sender: guix-devel-bounces+larch=yhetil.org@gnu.org X-Migadu-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -8.87 X-Spam-Score: -8.87 X-Migadu-Queue-Id: 8E3CD393ED X-Migadu-Scanner: mx13.migadu.com X-TUID: YIH3H0VCxCIX I think the first step would be to target openjdk 9, since it already intro= duces quite a lot of changes compared to java 8=2E To do it, I would sugges= t to change the default jdk in the ant-build-system and maven-build-system,= and see what is broken, if it can simply be updated without breaking depen= dents, or if it (and its dependencies) needs to be built with an older jdk= =2E Some packages are bootstrap packages that are quite old and will never sup= port a newer jdk=2E For some of them, we can simply specify a source/target= level (not sure it's supported by the build-system yet), but I remember tr= ying and a few need java 5, which is no longer a supported level=2E I have already added support for java modules in the ant-build-system, and= I just pushed a few updates to some packages that could not previously be = built with java 9=2E Le 20 avril 2024 19:19:37 GMT+02:00, Markku Korkeala a =C3=A9crit=C2=A0: >On Tue, Apr 16, 2024 at 10:37:30PM +0200, Julien Lepiller wrote: >> Currently, most java packages use the implicit jdk from the build syste= m (ant- or maven-build-system), which is=E2=80=A6 icedtea@8=2E We still hav= e quite a lot of old packages that don't build with openjdk9, so I'm not su= re when we can update the default jdk=E2=80=A6 > >Hi, > >is there effort to update the default jdk at some point? I could help wit= h >it=2E I'm not familiar with the guix java build systems, but have long >experience as a Java developer=2E I also maintain few java packages in Fe= dora >and saw the transition to to jdk11 [1], jdk17 [2] and now to jdk21 [3]=2E= The >pages have documented common issues and workarounds, which might help=2E > >[1]: https://fedoraproject=2Eorg/wiki/Changes/Java11 >[2]: https://fedoraproject=2Eorg/wiki/Changes/Java17 >[3]: https://fedoraproject=2Eorg/wiki/Changes/Java21 > >Best wishes, >Markku > >> Le 16 avril 2024 22:25:33 GMT+02:00, Vagrant Cascadian a =C3=A9crit=C2=A0: >> >When recently taking a look at diffoscope, I was reminded that there i= s >> >effectively no default openjdk version, you have to pick a specific >> >version for each package definition=2E=2E=2E >> > >> >At some time in diffoscope's history, that was openjdk@12=2E >> > >> >But there are quite a few versions to choose from: >> > >> > guix package -A openjdk | sort -V >> > openjdk 9=2E181 out,jdk,doc gnu/packages/java=2Escm:86= 9:2 >> > openjdk 10=2E46 out,jdk,doc gnu/packages/java=2Escm:11= 40:2 >> > openjdk 11=2E0=2E22 out,jdk,doc gnu/packages/java=2Escm:= 1218:2 >> > openjdk 12=2E33 out,jdk,doc gnu/packages/java=2Escm:15= 36:2 >> > openjdk 13=2E0=2E14 out,jdk,doc gnu/packages/java=2Escm:= 1576:2 >> > openjdk 14=2E0=2E2 out,jdk,doc gnu/packages/java=2Escm:= 1583:2 >> > openjdk 15=2E0=2E10 out,jdk,doc gnu/packages/java=2Escm:= 1598:2 >> > openjdk 16=2E0=2E2 out,jdk,doc gnu/packages/java=2Escm:= 1617:2 >> > openjdk 17=2E0=2E10 out,jdk,doc gnu/packages/java=2Escm:= 1625:2 >> > openjdk 18=2E0=2E2=2E1 out,jdk,doc gnu/packages/java=2Esc= m:1642:2 >> > openjdk 19=2E0=2E2 out,jdk,doc gnu/packages/java=2Escm:= 1646:2 >> > openjdk 20=2E0=2E2 out,jdk,doc gnu/packages/java=2Escm:= 1663:2 >> > openjdk 21=2E0=2E2 out,jdk,doc gnu/packages/java=2Escm:= 1667:2 >> > >> >Some packages may only work with a specific era of openjdk, but I >> >suspect many of the packages in guix just picked whatever version >> >happened to be present when it was added to guix=2E >> > >> >Which makes it hard to know when to update the openjdk dependency=2E= =2E=2E >> > >> >In the diffoscope case, it seems to have work fine with openjdk@21, wi= th >> >the only result being that some openjdk-version-specific tests pass an= d >> >some are skipped as a one-for-one trade compared to the old openjdk@12= =2E >> > >> >Alternately, I would be tempted to switch to openjdk@17, which is the >> >current default in Debian, so has a little more testing behind it=2E= =2E=2E >> > >> >Though there is a bit of a perverse incentive to stick with the oldest >> >version that still works, due to openjdk having a very long bootstrap >> >chain of itself=2E=2E=2E >> > >> >And then the question gets to be of diffoscope's dependencies, what >> >versions of openjdk do they pull in (notably enjarify, which uses >> >openjdk@12, although that also seems to work ok with openjdk@21)? >> > >> > >> >Would it make sense to have an openjdk "default" version, so packages >> >could instead depend on that, and only need to specify a version if >> >needed for some particular reason? Or is compatibility across openjdk >> >versions troublesome enough that it really always needs to be handled = on >> >a case-by-case basis? >> > >> > >> >live well, >> > vagrant >>=20