Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 16 Jun 2017 10:50:09 -0700
From:      Steve Kargl <sgk@troutmask.apl.washington.edu>
To:        Kyle Evans <kevans91@ksu.edu>
Cc:        Mathieu Arnold <mat@freebsd.org>, freebsd-hackers@freebsd.org, ports-list freebsd <freebsd-ports@freebsd.org>
Subject:   Re: JAVA_VERSION???
Message-ID:  <20170616175009.GA39872@troutmask.apl.washington.edu>
In-Reply-To: <CACNAnaEV4_p8pkDK%2ByU-yy0UOAvd9mvo5EomYujk59GYG9ddVg@mail.gmail.com>
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> <CACNAnaEV4_p8pkDK%2ByU-yy0UOAvd9mvo5EomYujk59GYG9ddVg@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
On Fri, Jun 16, 2017 at 12:40:53PM -0500, Kyle Evans wrote:
> On Fri, Jun 16, 2017 at 12:34 PM, Steve Kargl <
> sgk@troutmask.apl.washington.edu> wrote:
> 
> > 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+
> >
> 
> Please try this patch applied to your bsd.java.mk:
> https://files.kyle-evans.net/freebsd/java.diff
> 
> Thanks,

Kyle,

Thanks.  That patch fixes the problem with the spurious error
message. 

-- 
Steve
20170425 https://www.youtube.com/watch?v=VWUpyCsUKR4
20161221 https://www.youtube.com/watch?v=IbCHE-hONow



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170616175009.GA39872>