Gentoo Archives: gentoo-dev

From: Joakim Tjernlund <Joakim.Tjernlund@××××××××.com>
To: "gentoo-dev@l.g.o" <gentoo-dev@l.g.o>
Subject: Re: [gentoo-dev] unmasking java 11 on gentoo (for those that maintain packages where java is involved, either directly or conditionally)
Date: Thu, 15 Apr 2021 16:35:23
Message-Id: 9826dad34c80a38809a5a25de7fd9d414d443bc0.camel@infinera.com
In Reply to: Re: [gentoo-dev] unmasking java 11 on gentoo (for those that maintain packages where java is involved, either directly or conditionally) by "Miroslav Šulc"
1 On Thu, 2021-04-15 at 18:28 +0200, Miroslav Šulc wrote:
2 > Dne 15. 04. 21 v 17:56 Joakim Tjernlund napsal(a):
3 > > On Thu, 2021-04-15 at 17:21 +0200, Miroslav Šulc wrote:
4 > > > Dne 15. 04. 21 v 16:34 Joakim Tjernlund napsal(a):
5 > > > > On Wed, 2021-04-14 at 09:45 +0200, Miroslav Šulc wrote:
6 > > > > > in case the package does not work with java > 1.8 (still, i suggest we
7 > > > > > first try to resolve the issue before we use this restriction as it
8 > > > > > might cause some issues in the future)
9 > > > > > virtual/jdk:1.8
10 > > > > > virtual/jre:1.8
11 > > > > This does not seem to be enforced by java eclasses. Example dev-java/icedtea-web has
12 > > > > BDEPEND=virtual/jdk:1.8 but building icedtea-web with openjdk:11 as system default will
13 > > > > try to build with java-11 and the build will fail.
14 > > > not sure about BDEPEND but it should be enforced for DEPEND and RDEPEND.
15 > > > regular java apps use classes from jre (java runtime engine) and so they
16 > > > must have the dep both in DEPEND and RDEPEND, not BDEPEND. wrt this
17 > > > icedtea-web issue, this should be filed as a bug. thank you for
18 > > > mentioning this.
19 > > Don't think it is so simple, even if I add virtual/jdk:1.8 to DEPEND and changed
20 > > RDEPEND to virtual/jdk:1.8 it still fails.
21 > yes, looking at that icedtea-web ebuild, it inherits none of java
22 > eclasses so it can't behave as a package that inherits a java eclass.
23 > gyakovlev would definitely know better. generally, this thread is meant
24 > for packages that inherit one of java eclasses, and even that is
25 > oversimplified.
26 > > >
27
28 Yes, I found the error in dev-java/icedtea-web. Q: Should one use JDK_HOME or JAVA_HOME in ebuilds?
29 However, BDEPEND vs DEPEND is still outstanding. I don't think it is wrong to use BDEPEND here?
30
31 Also, RDEPEND does not seem to matter, only BDEPEND

Replies