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 3C7CC1382C5 for ; Thu, 15 Apr 2021 16:28:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C6FCFE0814; Thu, 15 Apr 2021 16:28:52 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (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 827E3E07F1 for ; Thu, 15 Apr 2021 16:28:52 +0000 (UTC) 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 References: <8103dc67284bd3fb0f6a792298bec78bce8c64ca.camel@infinera.com> <84d738ebe11b7e2e022e18d2baa3af1c5f143801.camel@infinera.com> From: =?UTF-8?Q?Miroslav_=c5=a0ulc?= Message-ID: <830356b0-5649-ed02-25bc-78a2abb3deda@gentoo.org> Date: Thu, 15 Apr 2021 18:28:46 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.9.1 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 In-Reply-To: <84d738ebe11b7e2e022e18d2baa3af1c5f143801.camel@infinera.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Archives-Salt: 9198e6b5-8ae4-4bba-a6a1-893dcf61d75c X-Archives-Hash: 23b986747b6af8640227e113fa2fb5ff Dne 15. 04. 21 v 17:56 Joakim Tjernlund napsal(a): > On Thu, 2021-04-15 at 17:21 +0200, Miroslav Šulc wrote: >> Dne 15. 04. 21 v 16:34 Joakim Tjernlund napsal(a): >>> On Wed, 2021-04-14 at 09:45 +0200, Miroslav Šulc wrote: >>>> 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 >>> This does not seem to be enforced by java eclasses. Example dev-java/icedtea-web has >>> BDEPEND=virtual/jdk:1.8 but building icedtea-web with openjdk:11 as system default will >>> try to build with java-11 and the build will fail. >> not sure about BDEPEND but it should be enforced for DEPEND and RDEPEND. >> regular java apps use classes from jre (java runtime engine) and so they >> must have the dep both in DEPEND and RDEPEND, not BDEPEND. wrt this >> icedtea-web issue, this should be filed as a bug. thank you for >> mentioning this. > Don't think it is so simple, even if I add virtual/jdk:1.8 to DEPEND and changed > RDEPEND to virtual/jdk:1.8 it still fails. yes, looking at that icedtea-web ebuild, it inherits none of java eclasses so it can't behave as a package that inherits a java eclass. gyakovlev would definitely know better. generally, this thread is meant for packages that inherit one of java eclasses, and even that is oversimplified. >>>   Jocke fordfrog