From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <50EAFA1C.1040006@pengutronix.de> Date: Mon, 07 Jan 2013 17:38:52 +0100 From: Marc Kleine-Budde MIME-Version: 1.0 References: In-Reply-To: Subject: Re: [ptxdist] configure failed with sed version 4.2.2 Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: multipart/mixed; boundary="===============1543171803==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Cc: Alexander Aring This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --===============1543171803== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7BF0CC3A86F7CD57DF341720" This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7BF0CC3A86F7CD57DF341720 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 01/07/2013 03:19 PM, Alexander Aring wrote: > Hello, >=20 > i am using archlinux with GNU sed version 4.2.2 which generate with 'se= d > --version': >=20 > sed (GNU sed) 4.2.2 > Copyright (C) 2012 Free Software Foundation, Inc. > License GPLv3+: GNU GPL version 3 or later > . > This is free software: you are free to change and redistribute it. > There is NO WARRANTY, to the extent permitted by law. >=20 > Written by Jay Fenlason, Tom Lord, Ken Pizzini, > and Paolo Bonzini. > GNU sed home page: . > General help using GNU software: . > E-mail bug reports to: . > Be sure to include the word ``sed'' somewhere in the ``Subject:'' field= =2E >=20 >=20 > This will fail on sed version check in configure.ac: > SED_VERSION=3D`$SED --version 2>/dev/null | $SED -ne "s/.*version > \([[0-9\.]]*\)/\1/p"` >=20 >=20 > With command 'sed --version 2>/dev/null | sed -ne "s/.*version > \([[0-9\.]]*\)/\1/p"' I got following output: > "3 or later ." >=20 > and configure failed with: > checking sed version... configure: error: we need at least GNU sed 4.x >=20 >=20 > GNU sed gets version string from gnulib see > http://git.savannah.gnu.org/gitweb/?p=3Dgnulib.git;a=3Dblob;f=3Dlib/ver= sion-etc.c;hb=3Ddbed1625626c6d6f271b715f87fd0930d8e68c2f > beginning at line 43. >=20 > I don't see a "version" substring there, maybe it isn't the best way to= > match the sed version. Since 4.2.1 the output of sed --version changed: > $ sed --version > GNU sed version 4.2.1 > Copyright (C) 2009 Free Software Foundation, Inc. > This is free software; see the source for copying conditions. There is= NO > warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURP= OSE, > to the extent permitted by law. >=20 > GNU sed home page: . > General help using GNU software: . > E-mail bug reports to: . > Be sure to include the word ``sed'' somewhere in the ``Subject:'' field= =2E Can you please improve the regex to parse both version of sed? regards, Marc --=20 Pengutronix e.K. | Marc Kleine-Budde | Industrial Linux Solutions | Phone: +49-231-2826-924 | Vertretung West/Dortmund | Fax: +49-5121-206917-5555 | Amtsgericht Hildesheim, HRA 2686 | http://www.pengutronix.de | --------------enig7BF0CC3A86F7CD57DF341720 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (GNU/Linux) Comment: Using GnuPG with undefined - http://www.enigmail.net/ iEYEARECAAYFAlDq+iAACgkQjTAFq1RaXHPLfgCdG4aGhtUBVh4Y9NofulVhDqAT uUQAn3xUh0XLL+CVz/z6QQXuzhc4kV3w =xzCM -----END PGP SIGNATURE----- --------------enig7BF0CC3A86F7CD57DF341720-- --===============1543171803== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1543171803==--