Date: Fri, 16 Jun 2017 12:40:53 -0500 From: Kyle Evans <kevans91@ksu.edu> To: <sgk@troutmask.apl.washington.edu> Cc: Mathieu Arnold <mat@freebsd.org>, <freebsd-hackers@freebsd.org>, ports-list freebsd <freebsd-ports@freebsd.org> Subject: Re: JAVA_VERSION??? Message-ID: <CACNAnaEV4_p8pkDK%2ByU-yy0UOAvd9mvo5EomYujk59GYG9ddVg@mail.gmail.com> In-Reply-To: <20170616173422.GA38774@troutmask.apl.washington.edu> References: <20170615234533.GA2871@troutmask.apl.washington.edu> <582b49d8-5910-35b5-40ed-307475830a64@FreeBSD.org> <20170616144318.GA11287@troutmask.apl.washington.edu> <bc82d042-19fd-2138-e682-c2491d00580c@FreeBSD.org> <20170616173422.GA38774@troutmask.apl.washington.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 16, 2017 at 12:34 PM, Steve Kargl < sgk@troutmask.apl.washington.edu> wrote: > On Fri, Jun 16, 2017 at 05:07:30PM +0200, Mathieu Arnold wrote: > > Le 16/06/2017 =C3=A0 16:43, Steve Kargl a =C3=A9crit : > > > On Fri, Jun 16, 2017 at 02:17:03PM +0200, Mathieu Arnold wrote: > > >> Le 16/06/2017 =C3=A0 01:45, Steve Kargl a =C3=A9crit : > > >>> Is this the expected behavior? > > >>> > > >>> % cd ports/math/octave > > >>> % make fetch > > >>> octave-4.0.3_5: Makefile error: "1.7+" is not a valid value for > JAVA_VERSION. It should be one or more of: 1.6 1.7 1.8 (with an optional > "+" suffix.) > > >>> % grep JAVA_VERSION Makefile > > >>> JAVA_VERSION=3D 1.7+ > > >> > > >> Not really. What OSVERSION are you running? > > >> > > >> What is the content of the _JAVA_VERSION_LIST and > > >> _JAVA_VERSION_LIST_REGEXP variables ? > > >> > > > I'm running a month old freebsd-current. > > > > > > % uname -a > > > FreeBSD troutmask.apl.washington.edu 12.0-CURRENT FreeBSD 12.0-CURREN= T > > > #0 r318546: Fri May 19 12:51:04 PDT 2017 > > > > > > % cd /usr/ports/math/octave > > > % make -d v fetch |& grep JAVA_VERSION > > > > $ make -V _JAVA_VERSION_LIST > > 1.6 1.7 1.8 1.6+ 1.7+ 1.8+ > > $ make -V _JAVA_VERSION_LIST_REGEXP > > 1.6\|1.7\|1.8\|1.6+\|1.7+\|1.8+ > > > > You should get the same as me. I wonder if it is not a difference in ho= w > > grep behaves on 12 where it does not match 1.7+ with the regexp in ther= e. > > > > Yes, it appears to be a grep issue. In Mk/bsd.java.mk, I removed > the @ in line 227 to see what the test did. I then try to reproduce > just the part with grep (without the -q option) at a Bourne shell > prompt. > > # echo "1.7+" > 1.7+ > # echo "1.7+" | /usr/bin/tr " " "\n" > 1.7+ > # echo "1.7+" | /usr/bin/tr " " "\n" | /usr/bin/grep > "1.6\|1.7\|1.8\|1.6+\|1.7+\|1.8+" > # > > So, nothing is returned. If I reduce the regex pattern, I see > > # echo "1.7+" | /usr/bin/tr " " "\n" | /usr/bin/grep "1.7+" > 1.7+ > > Hi, Please try this patch applied to your bsd.java.mk: https://files.kyle-evans.net/freebsd/java.diff Thanks, Kyle Evans
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CACNAnaEV4_p8pkDK%2ByU-yy0UOAvd9mvo5EomYujk59GYG9ddVg>