From owner-freebsd-ports@freebsd.org Sat Dec 3 08:22:02 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 4510CC64F32 for ; Sat, 3 Dec 2016 08:22:02 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from mailman.ysv.freebsd.org (unknown [127.0.1.3]) by mx1.freebsd.org (Postfix) with ESMTP id 2E0461839 for ; Sat, 3 Dec 2016 08:22:02 +0000 (UTC) (envelope-from julian@freebsd.org) Received: by mailman.ysv.freebsd.org (Postfix) id 2D693C64F30; Sat, 3 Dec 2016 08:22:02 +0000 (UTC) Delivered-To: ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 2D137C64F2F for ; Sat, 3 Dec 2016 08:22:02 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from vps1.elischer.org (vps1.elischer.org [204.109.63.16]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "vps1.elischer.org", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0B52F1838; Sat, 3 Dec 2016 08:22:02 +0000 (UTC) (envelope-from julian@freebsd.org) Received: from Julian-MBP3.local (ppp121-45-230-194.lns20.per1.internode.on.net [121.45.230.194]) (authenticated bits=0) by vps1.elischer.org (8.15.2/8.15.2) with ESMTPSA id uB38LuxZ075413 (version=TLSv1.2 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Sat, 3 Dec 2016 00:21:59 -0800 (PST) (envelope-from julian@freebsd.org) Subject: Re: jython on FreeBSD 10 ports To: Ruslan Makhmatkhanov , Ruslan Makhmatkhanov , "ports@FreeBSD.org" References: <5ecef8c4-cf1c-7184-5b6e-0cc903d2e113@FreeBSD.org> <91383314-6bea-76e5-7f5d-fdd8c7ff4e38@freebsd.org> <4f0416af-83dc-639d-8922-7836ce724d2e@freebsd.org> <4ccdece8-3308-f72b-ffc9-b135bc7e96e5@yandex.ru> From: Julian Elischer Message-ID: Date: Sat, 3 Dec 2016 16:21:51 +0800 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.5.0 MIME-Version: 1.0 In-Reply-To: <4ccdece8-3308-f72b-ffc9-b135bc7e96e5@yandex.ru> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 03 Dec 2016 08:22:02 -0000 On 3/12/2016 12:46 AM, Ruslan Makhmatkhanov wrote: > Julian Elischer wrote on 12/02/2016 17:19: >> On 29/11/2016 1:57 PM, Ruslan Makhmatkhanov wrote: >>> Julian Elischer wrote on 11/29/2016 08:34: >>>> Ruslan, I'm just wondering if the 404 is supposed to be removed >>>> from the >>>> email address.... >>> >> >> I have it running but it insists on installing the entire JDK. Is it >> possible to use just the JRE? > > If I understand correctly there is no way to depend just upon JRE in > Mk/bsd.java.mk, so this is the reason why it depends upon the whole > JDK. But you may try something like that would seem odd there must be hundreds of packages that just want the runtime. Maybe someone in ports@ can comment? (CC'd) > > -USE_JAVA= yes > -JAVA_VERSION= 1.7+ > +JAVA=/usr/local/openjdk7/bin/java > +BUILD_DEPENDS+=java/openjdk7-jre > +RUN_DEPENDS+=java/openjdk7-jre > > to build a local package that only depends upon JRE 1.7. also the 1.7+ in effect means 1.8. even if 1.7 is installed the pkg will force an install of 1.8. > >>> Afaik the address is correct. I was able to google some of his >>> mailing >>> list submissions from that email: >>> https://marc.info/?a=137339713800014&r=1&w=4 >>> >>> If there would be no response from Sergey till the end of the week, >>> I'll try to answer myself. Maybe jython port just needs some >>> actualization in respect of JRE version. As far I understand, the >>> problem you are expecting was introduced into ports infrastructure at >>> some point after the jython update. >>> >>> Btw, has you tried to just build the port itself with enforcing >>> version 1.7? I'm not yet sure, but it looks like java 1.8 is now >>> default java version in ports tree. This is why pkg insisting on >>> installation of 1.8 >>> >>> >>>> >>>> On 29/11/2016 1:24 AM, Julian Elischer wrote: >>>>> On 23/11/2016 5:32 AM, Ruslan Makhmatkhanov wrote: >>>>>> Hi Julian, >>>>>> >>>>>> Julian Elischer wrote on 11/22/2016 09:46: >>>>>>> Firstly thanks for having done hte last jython update >>>>>>> you say in the notes that it should work with the 1.7 java. >>>>>>> but hte >>>>>>> pkg wants the openJDK8.0 as a dependency. >>>>>>> >>>>>>> so a couple of questions: >>>>>>> Firstly do we need the entire JDK? is the JRE not enough? >>>>>>> Secondly, how do we make it use the openJDK7-JRE that is already >>>>>>> installed on the machine? >>>>>>> >>>>>>> we don't have the room for the full JDK, and certainly not for >>>>>>> two >>>>>>> whole >>>>>>> copies (7 and 8). >>>>>>> >>>>>>> thanks >>>>>>> >>>>>>> Julian julian@freebsd.org with $JOB hat on. >>>>>> >>>>>> while I committed the update, the patch wasn't mine: I just >>>>>> checked >>>>>> the build etc. I added original submitter to cc in hope he'll >>>>>> be able >>>>>> to clarify the situation. >>>>>> >>>>>> Sergey, would you elaborate on JDK/JRE and 1.7/1.8 questions? >>>>>> Thank >>>>>> you! >>>>>> >>>>> Hi Sergey, >>>>> >>>>> thanks.. >>>>> I guess my question is: will pkg complain if 7 is installed and not >>>>> 8? (or do I need both?) and do I need to do anything special to >>>>> make >>>>> it work with 7? >>>>> >>>>> Julian > >