From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 52C091382C5 for ; Thu, 22 Apr 2021 06:37:57 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 70139E0845; Thu, 22 Apr 2021 06:37:53 +0000 (UTC) Received: from mail-ot1-x332.google.com (mail-ot1-x332.google.com [IPv6:2607:f8b0:4864:20::332]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id EA89FE0841 for ; Thu, 22 Apr 2021 06:37:52 +0000 (UTC) Received: by mail-ot1-x332.google.com with SMTP id y14-20020a056830208eb02902a1c9fa4c64so4702881otq.9 for ; Wed, 21 Apr 2021 23:37:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to; bh=E/Xyp3jzBdt+6FlW5uEo3R8OyzsnN5/4NqWgH7n8Vk0=; b=YZQ+RyZsAR9jeto+cFg0hhi5oHDbkbFIRasiia3UdZnTLq5vbuzk2aDFiMNMF42l9t 04dGldRzVY8L/yGBwXFtt6xooKfcN1hmafbfCnC+uCA1HNA19LGqEeZGTvZOkH3dm0Yw 9WrL+IgbT2SrZJzf3VCosHgfU5V/wkDhEI2S90lSBP7aKh2fyuMhbscLIwfb0sLD03yJ VgUx3zUGovsV3kNr89EoeM/CDifJMura3fpcynSz8wftio6mOQhyKaQ75wUXy4Kfe01S PrClAhmMjZlRaQu18r6f5Tg0AKo0OA6WCPlCaEj2S2fye1Id0J5CGa3WY0ZzfvyGwdYY a/zQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to; bh=E/Xyp3jzBdt+6FlW5uEo3R8OyzsnN5/4NqWgH7n8Vk0=; b=Fs0R19hy1EnQVa6UE14L7lD+PVnDerUUPkB6C2YolJYSFUrIvc2pTz9TVqIbCZ7CVH BpCbUG0MFgfcaYedoK+2+9AsH4Bu88SCRZ1U6jKqe5Ytzmqq7yElnAzXUs2yjOQBCKHX sMPJIIosgv4qGuGWW/+7ec6rGeKO8ZsoFobkybVuKs0V1kAmrs/0F2cnzw0ELBxq74Kz wqqiTkNwGAcgh7kXQxw286OuQtDilCRrtzbovDOmVtdwbcXb7QgoVaKSgU8/1XBH0yfr b7AX0fYIGYIeBwNXiK2KscpUEp4xsjZPEQ2bJfsD1+X4q7tZyF2Oz7+2VALtKAebHcSr yWfw== X-Gm-Message-State: AOAM531G1Q5cga+ZQ7P4DPnCHU2tGUGGyLxfNp6PAr6/Gj7q2RUO3Fmv o+MqwdkvG18HxAzqZOPS4bgQMIuLbTKtoScSuF094RHu9FgzVw== X-Google-Smtp-Source: ABdhPJwFNxjnttoCsDKkbJWndLKnfxiby4XWSidGVHQvxp1XJiPHzqzmSolZXPlqjJGhnEm9tPv7wdFG7KHcLMKJaxA= X-Received: by 2002:a05:6830:10e:: with SMTP id i14mr1568640otp.297.1619073471809; Wed, 21 Apr 2021 23:37:51 -0700 (PDT) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-dev@lists.gentoo.org Reply-to: gentoo-dev@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply MIME-Version: 1.0 References: In-Reply-To: From: Kaibo Ma Date: Thu, 22 Apr 2021 14:37:39 +0800 Message-ID: Subject: Re: [gentoo-dev] unmasking java 11 on gentoo (for those that maintain packages where java is involved, either directly or conditionally) To: gentoo-dev@lists.gentoo.org Content-Type: multipart/alternative; boundary="00000000000027095f05c089eb0e" X-Archives-Salt: 4fc82de6-df69-4f02-a644-638e44239fc9 X-Archives-Hash: 1bd9dfc83748fc0454785db3f75fa93c --00000000000027095f05c089eb0e Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Is there a tracking issue for Java 11 on Bugzilla? Kaibo Ma On Wed, 14 Apr 2021 at 15:45, Miroslav =C5=A0ulc wrot= e: > hi guys, > > we're still far from unmasking java 11 on gentoo, but i hope it will > happen, one day (or another...). currently there is one issue across the > whole gentoo tree that is a sure blocker and could and should be easily > resolved. as java 11 does not compile bytecode older than 1.6, > everything that specifies in deps virtual/(jdk|jre)-1.[2-5] will fail to > compile and run. these deps should be lifted up to > virtual/(jdk|jre)-1.8. also, packages that depend on > virtual/(jdk|jre)-1.[67] should be lifted up to 1.8 as that is the > lowest version that we support on gentoo and future versions of java > might drop support for 1.6 and 1.7 as well, but it's not a blocker for no= w. > > just to get an idea how many ebuilds are affected, here's a short summary= : > > $ git --no-pager grep -Eho "virtual/(jre|jdk)-1.[2-7]" | sort | uniq -c > 1 virtual/jdk-1.2 > 7 virtual/jdk-1.3 > 68 virtual/jdk-1.4 > 119 virtual/jdk-1.5 > 444 virtual/jdk-1.6 > 136 virtual/jdk-1.7 > 1 virtual/jre-1.2 > 7 virtual/jre-1.3 > 68 virtual/jre-1.4 > 124 virtual/jre-1.5 > 460 virtual/jre-1.6 > 113 virtual/jre-1.7 > > here's the list of all packages where java 1.5 or older is used: > > $ git --no-pager grep -Elo "virtual/(jre|jdk)-1.[2-5]" | sed -E > "s%/[^/]+$%%g" | sort | uniq > app-accessibility/brltty > app-accessibility/freetts > app-crypt/jacksum > app-emacs/jde > app-misc/jitac > app-office/hourglass > app-text/hyperestraier > dev-db/db-je > dev-db/hsqldb > dev-db/qdbm > dev-java/ant-contrib > dev-java/ant-owanttask > dev-java/apple-java-extensions-bin > dev-java/apt-mirror > dev-java/aspectj > dev-java/avalon-framework > dev-java/bcel > dev-java/bnd-junit > dev-java/bndlib > dev-java/browserlauncher2 > dev-java/bytelist > dev-java/cal10n > dev-java/cdegroot-db > dev-java/cldc-api > dev-java/codemodel > dev-java/commons-el > dev-java/commons-fileupload > dev-java/commons-lang > dev-java/commons-math > dev-java/commons-net > dev-java/commons-pool > dev-java/commons-validator > dev-java/dtdparser > dev-java/easymock-classextension > dev-java/ehcache > dev-java/ezmorph > dev-java/fastinfoset > dev-java/fscript > dev-java/glassfish-persistence > dev-java/gnu-classpath > dev-java/gson > dev-java/hamcrest-integration > dev-java/hawtjni-runtime > dev-java/helpgui > dev-java/higlayout > dev-java/htmlcleaner > dev-java/ical4j > dev-java/jansi > dev-java/jarbundler > dev-java/java-dep-check > dev-java/java-getopt > dev-java/javahelp > dev-java/java-service-wrapper > dev-java/javolution > dev-java/jaxen > dev-java/jbitcollider-core > dev-java/jboss-logmanager > dev-java/jcmdline > dev-java/jcodings > dev-java/jdbc2-stdext > dev-java/jdbm > dev-java/jebl > dev-java/jgoodies-looks > dev-java/jid3 > dev-java/jinput > dev-java/jisp > dev-java/jlibeps > dev-java/jnr-ffi > dev-java/jnr-netdb > dev-java/joni > dev-java/jortho > dev-java/jreleaseinfo > dev-java/jstun > dev-java/jta > dev-java/junit-addons > dev-java/junrar > dev-java/jvmstat > dev-java/jvyamlb > dev-java/jzlib > dev-java/j2ssh > dev-java/ldapsdk > dev-java/libg > dev-java/libmatthew-java > dev-java/l2fprod-common > dev-java/miglayout > dev-java/minlog > dev-java/mockito > dev-java/msv > dev-java/nekohtml > dev-java/odfdom > dev-java/osgi-compendium > dev-java/osgi-enterprise-api > dev-java/osgi-foundation > dev-java/pdf-renderer > dev-java/picocontainer > dev-java/prefuse > dev-java/radeox > dev-java/resin-servlet-api > dev-java/sblim-cim-client > dev-java/skinlf > dev-java/slf4j-ext > dev-java/spymemcached > dev-java/squareness-jlf > dev-java/stax-ex > dev-java/stax2-api > dev-java/sun-httpserver-bin > dev-java/sun-jai-bin > dev-java/sun-jimi > dev-java/sun-jms > dev-java/sun-jmx > dev-java/swingx > dev-java/swt > dev-java/tagsoup > dev-java/tapestry > dev-java/validation-api > dev-java/werken-xpath > dev-java/wsdl4j > dev-java/xmlstreambuffer > dev-java/xom > dev-java/zeus-jscl > dev-lang/interprolog > dev-lang/R > dev-lang/xsb > dev-libs/OpenNI > dev-libs/OpenNI2 > dev-lisp/abcl > dev-ruby/rjb > dev-tex/tex4ht > dev-util/android-sdk-update-manager > dev-util/jarwizard > dev-util/oprofile > games-board/domination > games-board/megamek > games-puzzle/pauker > java-virtuals/jmx > media-gfx/freewrl > media-gfx/graphviz > media-gfx/povtree > media-libs/libcaca > media-libs/libjpeg-turbo > media-libs/libpano13 > media-libs/mlt > media-sound/entagged-tageditor > media-sound/protux > media-tv/channeleditor > media-video/projectx > net-analyzer/munin > net-analyzer/neti > net-dns/libidn > net-libs/NativeThread > net-misc/tigervnc > net-nds/jxplorer > sci-biology/amap > sci-libs/cdf > sci-libs/libsigrok > sci-libs/libsvm > sci-libs/plplot > sci-misc/netlogo-bin > sci-physics/jaxodraw > sci-physics/thepeg > sys-devel/gettext > sys-libs/db > > i would like to ask you to revisit your packages where java 1.5 or lower > is specified and lift the restriction up to 1.8. you might want to do > the same for 1.7 and 1.8 or just leave it for the time when bumping the > package. you must do the update in a revbump, as it affects the format > of java (.jar) files generated and it would not be picked up if done > in-place and would cause an issue in the future that the existing java > files would not be supported at the runtime (if not recompiled) due to > an obsolete format. > > the correct ways to specify the deps are those: > > in case you want to support java 1.8 and newer > >=3Dvirtual/jdk-1.8:* > >=3Dvirtual/jre-1.8:* > > in case the package does not work with java > 1.8 (still, i suggest we > first try to resolve the issue before we use this restriction as it > might cause some issues in the future) > virtual/jdk:1.8 > virtual/jre:1.8 > > if, during the update to java 1.8, you come across an issue that you > would not be able to resolve, you can create a pr at github and assign > it to me, i will help you resolve that issue. > > still, after unmasking java 11, there might be issues with compiling > those packages with java 11 (one of the cases might be that java 11 does > not provide some packages that java 8 does which can be resolved by > adding the missing deps that should be packaged separately, other might > be related to api changes). i suppose most of you won't want to bother > with setting up java 11 for compiling your packages and testing and > resolving that so imo we can for now just resolve the min java version > and once, when java 11 is unmasked, and should any issues pop up, you > can cc java team if not sure how to fix the issue and we can help to > resolve it. > > for those that want to try java 11, here's what you need to do to unmask > java 11 for compilation on your systems: > > # grep -r openjdk /etc/portage/* > /etc/portage/package.use/multi:dev-java/openjdk gentoo-vm > jvm_variant_client source > /etc/portage/package.use/multi:dev-java/openjdk-bin gentoo-vm source > /etc/portage/profile/package.use.mask/multi:dev-java/openjdk:11 -gentoo-v= m > /etc/portage/profile/package.use.mask/multi:dev-java/openjdk-bin:11 > -gentoo-vm > > in fact, i have this setup for longer than i can remember (over a year > definitely) and i'm a java dev myself so probably have more java > packages on my systems than you do, and everything i need is working. > > > guys, thank you for your attention and have a nice day. should you have > any questions or need some clarifications, just let me know. > > > fordfrog > > > --00000000000027095f05c089eb0e Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Is there a tracking issue for Java 1= 1 on Bugzilla?

Kaibo Ma

On Wed, 14 Apr 20= 21 at 15:45, Miroslav =C5=A0ulc <= fordfrog@gentoo.org> wrote:
hi guys,

we're still far from unmasking java 11 on gentoo, but i hope it will happen, one day (or another...). currently there is one issue across the whole gentoo tree that is a sure blocker and could and should be easily resolved. as java 11 does not compile bytecode older than 1.6,
everything that specifies in deps virtual/(jdk|jre)-1.[2-5] will fail to compile and run. these deps should be lifted up to
virtual/(jdk|jre)-1.8. also, packages that depend on
virtual/(jdk|jre)-1.[67] should be lifted up to 1.8 as that is the
lowest version that we support on gentoo and future versions of java
might drop support for 1.6 and 1.7 as well, but it's not a blocker for = now.

just to get an idea how many ebuilds are affected, here's a short summa= ry:

$ git --no-pager grep -Eho "virtual/(jre|jdk)-1.[2-7]" | sort | u= niq -c
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 virtual/jdk-1.2
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 7 virtual/jdk-1.3
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 68 virtual/jdk-1.4
=C2=A0=C2=A0=C2=A0=C2=A0 119 virtual/jdk-1.5
=C2=A0=C2=A0=C2=A0=C2=A0 444 virtual/jdk-1.6
=C2=A0=C2=A0=C2=A0=C2=A0 136 virtual/jdk-1.7
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 1 virtual/jre-1.2
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 7 virtual/jre-1.3
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 68 virtual/jre-1.4
=C2=A0=C2=A0=C2=A0=C2=A0 124 virtual/jre-1.5
=C2=A0=C2=A0=C2=A0=C2=A0 460 virtual/jre-1.6
=C2=A0=C2=A0=C2=A0=C2=A0 113 virtual/jre-1.7

here's the list of all packages where java 1.5 or older is used:

$ git --no-pager grep -Elo "virtual/(jre|jdk)-1.[2-5]" | sed -E <= br> "s%/[^/]+$%%g" | sort | uniq
app-accessibility/brltty
app-accessibility/freetts
app-crypt/jacksum
app-emacs/jde
app-misc/jitac
app-office/hourglass
app-text/hyperestraier
dev-db/db-je
dev-db/hsqldb
dev-db/qdbm
dev-java/ant-contrib
dev-java/ant-owanttask
dev-java/apple-java-extensions-bin
dev-java/apt-mirror
dev-java/aspectj
dev-java/avalon-framework
dev-java/bcel
dev-java/bnd-junit
dev-java/bndlib
dev-java/browserlauncher2
dev-java/bytelist
dev-java/cal10n
dev-java/cdegroot-db
dev-java/cldc-api
dev-java/codemodel
dev-java/commons-el
dev-java/commons-fileupload
dev-java/commons-lang
dev-java/commons-math
dev-java/commons-net
dev-java/commons-pool
dev-java/commons-validator
dev-java/dtdparser
dev-java/easymock-classextension
dev-java/ehcache
dev-java/ezmorph
dev-java/fastinfoset
dev-java/fscript
dev-java/glassfish-persistence
dev-java/gnu-classpath
dev-java/gson
dev-java/hamcrest-integration
dev-java/hawtjni-runtime
dev-java/helpgui
dev-java/higlayout
dev-java/htmlcleaner
dev-java/ical4j
dev-java/jansi
dev-java/jarbundler
dev-java/java-dep-check
dev-java/java-getopt
dev-java/javahelp
dev-java/java-service-wrapper
dev-java/javolution
dev-java/jaxen
dev-java/jbitcollider-core
dev-java/jboss-logmanager
dev-java/jcmdline
dev-java/jcodings
dev-java/jdbc2-stdext
dev-java/jdbm
dev-java/jebl
dev-java/jgoodies-looks
dev-java/jid3
dev-java/jinput
dev-java/jisp
dev-java/jlibeps
dev-java/jnr-ffi
dev-java/jnr-netdb
dev-java/joni
dev-java/jortho
dev-java/jreleaseinfo
dev-java/jstun
dev-java/jta
dev-java/junit-addons
dev-java/junrar
dev-java/jvmstat
dev-java/jvyamlb
dev-java/jzlib
dev-java/j2ssh
dev-java/ldapsdk
dev-java/libg
dev-java/libmatthew-java
dev-java/l2fprod-common
dev-java/miglayout
dev-java/minlog
dev-java/mockito
dev-java/msv
dev-java/nekohtml
dev-java/odfdom
dev-java/osgi-compendium
dev-java/osgi-enterprise-api
dev-java/osgi-foundation
dev-java/pdf-renderer
dev-java/picocontainer
dev-java/prefuse
dev-java/radeox
dev-java/resin-servlet-api
dev-java/sblim-cim-client
dev-java/skinlf
dev-java/slf4j-ext
dev-java/spymemcached
dev-java/squareness-jlf
dev-java/stax-ex
dev-java/stax2-api
dev-java/sun-httpserver-bin
dev-java/sun-jai-bin
dev-java/sun-jimi
dev-java/sun-jms
dev-java/sun-jmx
dev-java/swingx
dev-java/swt
dev-java/tagsoup
dev-java/tapestry
dev-java/validation-api
dev-java/werken-xpath
dev-java/wsdl4j
dev-java/xmlstreambuffer
dev-java/xom
dev-java/zeus-jscl
dev-lang/interprolog
dev-lang/R
dev-lang/xsb
dev-libs/OpenNI
dev-libs/OpenNI2
dev-lisp/abcl
dev-ruby/rjb
dev-tex/tex4ht
dev-util/android-sdk-update-manager
dev-util/jarwizard
dev-util/oprofile
games-board/domination
games-board/megamek
games-puzzle/pauker
java-virtuals/jmx
media-gfx/freewrl
media-gfx/graphviz
media-gfx/povtree
media-libs/libcaca
media-libs/libjpeg-turbo
media-libs/libpano13
media-libs/mlt
media-sound/entagged-tageditor
media-sound/protux
media-tv/channeleditor
media-video/projectx
net-analyzer/munin
net-analyzer/neti
net-dns/libidn
net-libs/NativeThread
net-misc/tigervnc
net-nds/jxplorer
sci-biology/amap
sci-libs/cdf
sci-libs/libsigrok
sci-libs/libsvm
sci-libs/plplot
sci-misc/netlogo-bin
sci-physics/jaxodraw
sci-physics/thepeg
sys-devel/gettext
sys-libs/db

i would like to ask you to revisit your packages where java 1.5 or lower is specified and lift the restriction up to 1.8. you might want to do
the same for 1.7 and 1.8 or just leave it for the time when bumping the package. you must do the update in a revbump, as it affects the format
of java (.jar) files generated and it would not be picked up if done
in-place and would cause an issue in the future that the existing java
files would not be supported at the runtime (if not recompiled) due to
an obsolete format.

the correct ways to specify the deps are those:

in case you want to support java 1.8 and newer
=C2=A0>=3Dvirtual/jdk-1.8:*
=C2=A0>=3Dvirtual/jre-1.8:*

in case the package does not work with java > 1.8 (still, i suggest we <= br> first try to resolve the issue before we use this restriction as it
might cause some issues in the future)
virtual/jdk:1.8
virtual/jre:1.8

if, during the update to java 1.8, you come across an issue that you
would not be able to resolve, you can create a pr at github and assign
it to me, i will help you resolve that issue.

still, after unmasking java 11, there might be issues with compiling
those packages with java 11 (one of the cases might be that java 11 does not provide some packages that java 8 does which can be resolved by
adding the missing deps that should be packaged separately, other might be related to api changes). i suppose most of you won't want to bother =
with setting up java 11 for compiling your packages and testing and
resolving that so imo we can for now just resolve the min java version
and once, when java 11 is unmasked, and should any issues pop up, you
can cc java team if not sure how to fix the issue and we can help to
resolve it.

for those that want to try java 11, here's what you need to do to unmas= k
java 11 for compilation on your systems:

# grep -r openjdk /etc/portage/*
/etc/portage/package.use/multi:dev-java/openjdk gentoo-vm
jvm_variant_client source
/etc/portage/package.use/multi:dev-java/openjdk-bin gentoo-vm source
/etc/portage/profile/package.use.mask/multi:dev-java/openjdk:11 -gentoo-vm<= br> /etc/portage/profile/package.use.mask/multi:dev-java/openjdk-bin:11
-gentoo-vm

in fact, i have this setup for longer than i can remember (over a year
definitely) and i'm a java dev myself so probably have more java
packages on my systems than you do, and everything i need is working.


guys, thank you for your attention and have a nice day. should you have any questions or need some clarifications, just let me know.


fordfrog


--00000000000027095f05c089eb0e--