From owner-freebsd-hackers@freebsd.org Fri Jun 16 17:50:10 2017 Return-Path: Delivered-To: freebsd-hackers@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 B7D8EC796C8; Fri, 16 Jun 2017 17:50:10 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (troutmask.apl.washington.edu [128.95.76.21]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "troutmask", Issuer "troutmask" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 8FFF464FF3; Fri, 16 Jun 2017 17:50:10 +0000 (UTC) (envelope-from sgk@troutmask.apl.washington.edu) Received: from troutmask.apl.washington.edu (localhost [127.0.0.1]) by troutmask.apl.washington.edu (8.15.2/8.15.2) with ESMTPS id v5GHo9G5039900 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Fri, 16 Jun 2017 10:50:09 -0700 (PDT) (envelope-from sgk@troutmask.apl.washington.edu) Received: (from sgk@localhost) by troutmask.apl.washington.edu (8.15.2/8.15.2/Submit) id v5GHo9P0039899; Fri, 16 Jun 2017 10:50:09 -0700 (PDT) (envelope-from sgk) Date: Fri, 16 Jun 2017 10:50:09 -0700 From: Steve Kargl To: Kyle Evans Cc: Mathieu Arnold , freebsd-hackers@freebsd.org, ports-list freebsd Subject: Re: JAVA_VERSION??? Message-ID: <20170616175009.GA39872@troutmask.apl.washington.edu> Reply-To: sgk@troutmask.apl.washington.edu References: <20170615234533.GA2871@troutmask.apl.washington.edu> <582b49d8-5910-35b5-40ed-307475830a64@FreeBSD.org> <20170616144318.GA11287@troutmask.apl.washington.edu> <20170616173422.GA38774@troutmask.apl.washington.edu> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.7.2 (2016-11-26) X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 16 Jun 2017 17:50:10 -0000 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