From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1ZyDYW-0006dQ-5x for mharc-grub-devel@gnu.org; Mon, 16 Nov 2015 01:46:24 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40513) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxqlY-0000AI-E2 for grub-devel@gnu.org; Sun, 15 Nov 2015 01:26:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ZxqlX-00063N-EQ for grub-devel@gnu.org; Sun, 15 Nov 2015 01:26:20 -0500 Received: from mail-lf0-x22e.google.com ([2a00:1450:4010:c07::22e]:32781) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ZxqlS-000635-Vl; Sun, 15 Nov 2015 01:26:15 -0500 Received: by lfaz4 with SMTP id z4so8094303lfa.0; Sat, 14 Nov 2015 22:26:14 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=subject:to:references:from:message-id:date:user-agent:mime-version :in-reply-to:content-type; bh=Ms2iL8goHDS5Fv2GDZlNRCTv8CGiAgtg/QVJqEDfeYc=; b=a5wFEitnSC74yQufp0k0QsVyr9Keqi+eB2HQyOv8voOx9DwIthaCVfhGMwhb+ATx7C 8j3E/ZfAnNmjWXnJ6py/AhehSw0msNBKTHDRFgfzyVeE+bI3efiUd8NfvNm4fsAZ15Za gBo+zDqvR6s56slzCmFnUaikYEbVo9P+R8HrP4f52SWgCk05Pdwgnfa2rdvP2/g1JIC8 fTtpBrgDcG8xmEo2zAOZfjoIOPlo+NiCcodAxDIxhTYCltzC3fuJ8cMPwobrm5lfYvWz ZeKHHXdZqrGzxvraJrDTXvx10pasX1ATH/KY8hZzOmG/LI5ZcE2S0QD2QSM7mV/wB3Kf GucQ== X-Received: by 10.25.170.210 with SMTP id t201mr615000lfe.16.1447568774045; Sat, 14 Nov 2015 22:26:14 -0800 (PST) Received: from [192.168.1.41] (ppp91-76-25-247.pppoe.mtu-net.ru. [91.76.25.247]) by smtp.gmail.com with ESMTPSA id 200sm4537296lfz.48.2015.11.14.22.26.12 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sat, 14 Nov 2015 22:26:12 -0800 (PST) Subject: Re: flex version To: Peter Cheung , grub-devel@gnu.org, help-grub@gnu.org References: From: Andrei Borzenkov Message-ID: <56482583.9050908@gmail.com> Date: Sun, 15 Nov 2015 09:26:11 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/mixed; boundary="------------040605090709080808010308" X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:4010:c07::22e X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 15 Nov 2015 06:26:21 -0000 This is a multi-part message in MIME format. --------------040605090709080808010308 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 14.11.2015 19:22, Peter Cheung пишет: > hi > my flex in mac is installed using macports. > > $flex --version > flex 2.5.35 Apple(flex-31) > > And the line in configure fail > > version=`$LEX --version | $AWK '{ split($NF,x,"."); print x[1]*10000+x[2]*100+x[3]; }’` > > Better to change it to: > > version=`$LEX --version | sed 's/flex //'|sed 's/ .*//'| $AWK '{ split($NF,x,"."); print x[1]*10000+x[2]*100+x[3]; }’` > Does attached patch help? --------------040605090709080808010308 Content-Type: text/x-patch; name="awk-macports.patch" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="awk-macports.patch" From: Andrei Borzenkov Subject: [PATCH] configure: fix macports flex version detection Macports add extra information after version itself: $flex --version flex 2.5.35 Apple(flex-31) We require at least felx 2.5.35 so do not need to care about prehistoric "flex version n.n.n"; just use second field always. Reported by Peter Cheung --- configure.ac | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 9e8a606..3300545 100644 --- a/configure.ac +++ b/configure.ac @@ -315,7 +315,7 @@ AC_PROG_LN_S if test "x$LEX" = "x:"; then AC_MSG_ERROR([flex is not found]) else - version=`$LEX --version | $AWK '{ split($NF,x,"."); print x[[1]]*10000+x[[2]]*100+x[[3]]; }'` + version=`$LEX --version | $AWK '{ split($2,x,"."); print x[[1]]*10000+x[[2]]*100+x[[3]]; }'` if test -n "$version" -a "$version" -ge 20535; then : else -- tg: (7994077..) u/flex-macports (depends on: master) --------------040605090709080808010308--