From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-we0-f171.google.com ([74.125.82.171]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1TsDXw-0000in-FY for ptxdist@pengutronix.de; Mon, 07 Jan 2013 15:19:26 +0100 Received: by mail-we0-f171.google.com with SMTP id u3so10231218wey.16 for ; Mon, 07 Jan 2013 06:19:18 -0800 (PST) MIME-Version: 1.0 Date: Mon, 7 Jan 2013 15:19:18 +0100 Message-ID: From: Alexander Aring Subject: [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="===============0468049683==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de --===============0468049683== Content-Type: multipart/alternative; boundary=089e0122896cc2c3b304d2b383a0 --089e0122896cc2c3b304d2b383a0 Content-Type: text/plain; charset=UTF-8 Hello, i am using archlinux with GNU sed version 4.2.2 which generate with 'sed --version': 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. 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. This will fail on sed version check in configure.ac: SED_VERSION=`$SED --version 2>/dev/null | $SED -ne "s/.*version \([[0-9\.]]*\)/\1/p"` With command 'sed --version 2>/dev/null | sed -ne "s/.*version \([[0-9\.]]*\)/\1/p"' I got following output: "3 or later ." and configure failed with: checking sed version... configure: error: we need at least GNU sed 4.x GNU sed gets version string from gnulib see http://git.savannah.gnu.org/gitweb/?p=gnulib.git;a=blob;f=lib/version-etc.c;hb=dbed1625626c6d6f271b715f87fd0930d8e68c2f beginning at line 43. I don't see a "version" substring there, maybe it isn't the best way to match the sed version. Regards Alexander Aring --089e0122896cc2c3b304d2b383a0 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hello,

i am using archlinux with GNU sed version 4.= 2.2 which generate with 'sed --version':

sed (GNU sed) 4.2.2=
Copyright (C) 2012 Free Software Foundation, Inc.
License GPLv3+: GN= U GPL version 3 or later <h= ttp://gnu.org/licenses/gpl.html>.
This is free software: you are free to change and redistribute it.
There= is NO WARRANTY, to the extent permitted by law.

Written by Jay Fenl= ason, Tom Lord, Ken Pizzini,
and Paolo Bonzini.
GNU sed home page: &l= t;http://www.gnu.org/software/= sed/>.
General help using GNU software: <http://www.gnu.org/gethelp/>.
E-mail bug reports to: <bug-sed@gnu.org>.
Be sure to include= the word ``sed'' somewhere in the ``Subject:'' field.


This will fail on sed version check in configure.ac:
SED_VERSION=3D`$SED --version 2>/dev/null | $SE= D -ne "s/.*version \([[0-9\.]]*\)/\1/p"`


With command = 'sed --version 2>/dev/null | sed -ne "s/.*version \([[0-9\.]]*\= )/\1/p"' I got following output:
"3 or later <http://gn= u.org/licenses/gpl.html>."

and configure failed with:checking sed version... configure: error: we need at least GNU sed 4.x


GNU sed gets version string from gnulib see
http://git.savannah.gnu.org/gi= tweb/?p=3Dgnulib.git;a=3Dblob;f=3Dlib/version-etc.c;hb=3Ddbed1625626c6d6f27= 1b715f87fd0930d8e68c2f
beginning at line 43.

I don't see a "version" substrin= g there, maybe it isn't the best way to match the sed version.

R= egards
Alexander Aring
--089e0122896cc2c3b304d2b383a0-- --===============0468049683== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0468049683==-- 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==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Message-ID: <53D79F97.9060804@pengutronix.de> Date: Tue, 29 Jul 2014 15:20:23 +0200 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="===============0389995117==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: Kristof Verdonck , ptxdist This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0389995117== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="OumXLikgsHDJcxHjuuR4Kj6Jvk81lHFn4" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --OumXLikgsHDJcxHjuuR4Kj6Jvk81lHFn4 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hello Kristof, thanks for your mail, please use the ptxdist mailinglist (Cc'ed) in the future. On 07/29/2014 03:08 PM, Kristof Verdonck wrote: > I had a problem with the ptxdist configure script for checking the SED > version. Which version of ptxdist are you using? > Apparently this is a known issue that hasn't been fixed yet. > https://www.mail-archive.com/ptxdist@pengutronix.de/msg06717.html I think the problem has been fixed with the patch: 2a89985 configure.ac: change regex for sed version > I took the regular expression GLIBC used to check the SED version. > I tested it with sed 3.02.80, 4.1.5, 4.2.1 and 4.2.2 > I thought you could use this. >=20 > SED_VERSION=3D`$SED --version 2>/dev/null | $SED -n "s/^.*GNU sed[^0-9]= * > \([0-9]*\.[0-9.]*\).*$/\1/p"` AFAIK we don't have any problems with sed since the above patch in mainline, which is ptxdist-2013.01.0. 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 | --OumXLikgsHDJcxHjuuR4Kj6Jvk81lHFn4 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 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlPXn5cACgkQjTAFq1RaXHNdygCcD4A/2LwzvklzH/LSzQ13P5za wM0An2EFcJpdjHrVJKRXNoGMpubDlhrM =rdYd -----END PGP SIGNATURE----- --OumXLikgsHDJcxHjuuR4Kj6Jvk81lHFn4-- --===============0389995117== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0389995117==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-ob0-x22a.google.com ([2607:f8b0:4003:c01::22a]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XCrjl-0003SD-PW for ptxdist@pengutronix.de; Thu, 31 Jul 2014 16:53:47 +0200 Received: by mail-ob0-f170.google.com with SMTP id wp4so1626364obc.15 for ; Thu, 31 Jul 2014 07:53:38 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <53D9FF7F.6020409@pengutronix.de> References: <53D79F97.9060804@pengutronix.de> <53D9FF7F.6020409@pengutronix.de> Date: Thu, 31 Jul 2014 16:53:38 +0200 Message-ID: From: Kristof Verdonck 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="===============2032748644==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist --===============2032748644== Content-Type: multipart/alternative; boundary=001a11332c8e12f5be04ff7e7004 --001a11332c8e12f5be04ff7e7004 Content-Type: text/plain; charset=UTF-8 You're absolutely right. The double '[' got me. 2014-07-31 10:34 GMT+02:00 Marc Kleine-Budde : > On 07/29/2014 04:39 PM, Kristof Verdonck wrote: > > I'm using an ancient ptxdist, but that doesn't matter because I'm > > isolating the SED-version check. > > > > If I run the regex > > from > http://git.pengutronix.de/?p=ptxdist.git;a=blob;f=configure.ac;h=22c8df03a8c225514a3df7ba4c9fb29c515c3e24;hb=HEAD > > sed --version 2>/dev/null | sed -ne "1 > s/.*GNU.*\s\([[0-9\+\.]]\+\).*/\1/p" > > then it returns empty, both with sed 4.2.1 and 4.2.2. > > Are you using the unmodified regex from the configure.ac in the shell? > > Try this instead: > > sed --version 2>/dev/null | \ > sed -ne "1 s/.*GNU.*\s\([0-9\+\.]\+\).*/\1/p" > > Note: '[' vs. '[[', as you have to quote '[' in configure.ac, as it's > processed by m4. > > Marc > > -- > 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 | > > > -- > ptxdist mailing list > ptxdist@pengutronix.de > > --001a11332c8e12f5be04ff7e7004 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
You're absolutely right.
The double '[' got= me.


2014-= 07-31 10:34 GMT+02:00 Marc Kleine-Budde <mkl@pengutronix.de>:
On 07/29/2014 04:39 PM, Kris= tof Verdonck wrote:
> I'm using an ancient ptxdist, but that doesn't matter because = I'm
> isolating the SED-version check.
>
> If I run the regex
> from http://git.pengutronix.de/?p=3Dptxdist.git;a=3Dblob;f=3Dconf= igure.ac;h=3D22c8df03a8c225514a3df7ba4c9fb29c515c3e24;hb=3DHEAD
> sed --version 2>/dev/null | sed -ne "1 s/.*GNU.*\s\([[0-9\+\.]= ]\+\).*/\1/p"
> then it returns empty, both with sed 4.2.1 and 4.2.2.

Are you using the unmodified regex from the configure.ac in the shell?

Try this instead:

=C2=A0 =C2=A0 sed --version 2>/dev/null | \
=C2=A0 =C2=A0 =C2=A0 =C2=A0 sed -ne "1 s/.*GNU.*\s\([0-9\+\.]\+\).*/\1= /p"

Note: '[' vs. '[[', as you have to quote '[' = in configure.ac, as i= t's
processed by m4.

Marc

--
Pengutronix e.K. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0| Marc Kleine-Budde =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
Industrial Linux Solutions =C2=A0 =C2=A0 =C2=A0 =C2=A0| Phone: +49-231-2826-924 =C2=A0 = =C2=A0 |
Vertretung West/Dortmund =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| Fax: =C2=A0 +49-5121-2= 06917-5555 |
Amtsgericht Hildesheim, HRA 2686 =C2=A0| http://www.pengutronix.de =C2=A0 |


--
ptxdist mailing list
ptxdist@pengutronix.de


--001a11332c8e12f5be04ff7e7004-- --===============2032748644== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============2032748644==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from gallifrey.ext.pengutronix.de ([2001:6f8:1178:4:5054:ff:fe8d:eefb] helo=bjornoya.do.blackshift.org) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XCloS-0008C8-Mn for ptxdist@pengutronix.de; Thu, 31 Jul 2014 10:34:12 +0200 Received: from [IPv6:2001:6f8:105b:1122:5e51:4fff:fed6:c770] (unknown [IPv6:2001:6f8:105b:1122:5e51:4fff:fed6:c770]) (using TLSv1 with cipher ECDHE-RSA-AES128-SHA (128/128 bits)) (Client did not present a certificate) (Authenticated sender: frogger) by bjornoya.do.blackshift.org (Postfix) with ESMTPSA id 680C460091 for ; Thu, 31 Jul 2014 10:34:12 +0200 (CEST) Message-ID: <53D9FF7F.6020409@pengutronix.de> Date: Thu, 31 Jul 2014 10:34:07 +0200 From: Marc Kleine-Budde MIME-Version: 1.0 References: <53D79F97.9060804@pengutronix.de> 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="===============0175447063==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --===============0175447063== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="rTKT2tfUWrKiaAFlNAXNGGAdH4xpSOQO1" This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --rTKT2tfUWrKiaAFlNAXNGGAdH4xpSOQO1 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 07/29/2014 04:39 PM, Kristof Verdonck wrote: > I'm using an ancient ptxdist, but that doesn't matter because I'm > isolating the SED-version check. >=20 > If I run the regex > from http://git.pengutronix.de/?p=3Dptxdist.git;a=3Dblob;f=3Dconfigure.= ac;h=3D22c8df03a8c225514a3df7ba4c9fb29c515c3e24;hb=3DHEAD > sed --version 2>/dev/null | sed -ne "1 s/.*GNU.*\s\([[0-9\+\.]]\+\).*/\= 1/p" > then it returns empty, both with sed 4.2.1 and 4.2.2. Are you using the unmodified regex from the configure.ac in the shell? Try this instead: sed --version 2>/dev/null | \ sed -ne "1 s/.*GNU.*\s\([0-9\+\.]\+\).*/\1/p" Note: '[' vs. '[[', as you have to quote '[' in configure.ac, as it's processed by m4. 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 | --rTKT2tfUWrKiaAFlNAXNGGAdH4xpSOQO1 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 Comment: Using GnuPG with Icedove - http://www.enigmail.net/ iEYEARECAAYFAlPZ/38ACgkQjTAFq1RaXHOjEACffCdHxkPwFjcOOeCToC5witqZ TQ4AoIC3ddSd0+S8NPdMYG/KVyVxHs4C =9oP+ -----END PGP SIGNATURE----- --rTKT2tfUWrKiaAFlNAXNGGAdH4xpSOQO1-- --===============0175447063== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============0175447063==-- From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-oa0-x231.google.com ([2607:f8b0:4003:c02::231]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1XC8YW-0002xK-Rx for ptxdist@pengutronix.de; Tue, 29 Jul 2014 16:39:10 +0200 Received: by mail-oa0-f49.google.com with SMTP id eb12so10282045oac.36 for ; Tue, 29 Jul 2014 07:39:02 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <53D79F97.9060804@pengutronix.de> References: <53D79F97.9060804@pengutronix.de> Date: Tue, 29 Jul 2014 16:39:02 +0200 Message-ID: From: Kristof Verdonck 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="===============1608314601==" Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist --===============1608314601== Content-Type: multipart/alternative; boundary=047d7bd6ac482d7ecc04ff560083 --047d7bd6ac482d7ecc04ff560083 Content-Type: text/plain; charset=UTF-8 I'm using an ancient ptxdist, but that doesn't matter because I'm isolating the SED-version check. If I run the regex from http://git.pengutronix.de/?p=ptxdist.git;a=blob;f=configure.ac;h=22c8df03a8c225514a3df7ba4c9fb29c515c3e24;hb=HEAD sed --version 2>/dev/null | sed -ne "1 s/.*GNU.*\s\([[0-9\+\.]]\+\).*/\1/p" then it returns empty, both with sed 4.2.1 and 4.2.2. 2014-07-29 15:20 GMT+02:00 Marc Kleine-Budde : > Hello Kristof, > > thanks for your mail, please use the ptxdist mailinglist (Cc'ed) in the > future. > > On 07/29/2014 03:08 PM, Kristof Verdonck wrote: > > I had a problem with the ptxdist configure script for checking the SED > > version. > > Which version of ptxdist are you using? > > > Apparently this is a known issue that hasn't been fixed yet. > > https://www.mail-archive.com/ptxdist@pengutronix.de/msg06717.html > > I think the problem has been fixed with the patch: > > 2a89985 configure.ac: change regex for sed version > > > I took the regular expression GLIBC used to check the SED version. > > I tested it with sed 3.02.80, 4.1.5, 4.2.1 and 4.2.2 > > I thought you could use this. > > > > SED_VERSION=`$SED --version 2>/dev/null | $SED -n "s/^.*GNU sed[^0-9]* > > \([0-9]*\.[0-9.]*\).*$/\1/p"` > > AFAIK we don't have any problems with sed since the above patch in > mainline, which is ptxdist-2013.01.0. > > Marc > > -- > 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 | > > --047d7bd6ac482d7ecc04ff560083 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I'm using an ancient ptxdis= t, but that doesn't matter because I'm isolating the SED-version ch= eck.

If I run the regex from=C2=A0http://git.pengutronix.de/?p=3Dptxdist.git;a=3Db= lob;f=3Dconfigure.ac;h=3D22c8df03a8c225514a3df7ba4c9fb29c515c3e24;hb=3DHEAD=
sed=C2=A0--version=C2=A02>/dev/null=C2=A0|=C2=A0sed=C2=A0-ne= =C2=A0"1=C2=A0s/.*GNU.*\s\([[0-9\+\.]]\+\).*/\1/p" then it returns empty, both with sed 4.2.1 and 4.2.2.


2014-07-29 15:20 GMT+02:00 Marc Kleine-Budde <mkl= @pengutronix.de>:
Hello Kristof,

thanks for your mail, please use the ptxdist mailinglist (Cc'ed) in the=
future.

On 07/29/2014 03:08 PM, Kristof Verdonck wrote:
> I had a problem with the ptxdist configure script for checking the SED=
> version.

Which version of ptxdist are you using?

> Apparently this is a known issue that hasn't been fixed yet.
> https://www.mail-archive.com/ptxdist@pengutronix.= de/msg06717.html

I think the problem has been fixed with the patch:

=C2=A0 =C2=A0 2a89985 con= figure.ac: change regex for sed version

> I took the regular expression GLIBC used to check the SED version.
> I tested it with sed 3.02.80, 4.1.5, 4.2.1 and 4.2.2
> I thought you could use this.
>
> SED_VERSION=3D`$SED --version 2>/dev/null | $SED -n "s/^.*GNU = sed[^0-9]*
> \([0-9]*\.[0-9.]*\).*$/\1/p"`

AFAIK we don't have any problems with sed since the above patch i= n
mainline, which is ptxdist-2013.01.0.

Marc

--
Pengutronix e.K. =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 = =C2=A0| Marc Kleine-Budde =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 |
Industrial Linux Solutions =C2=A0 =C2=A0 =C2=A0 =C2=A0| Phone: +49-231-2826-924 =C2=A0 = =C2=A0 |
Vertretung West/Dortmund =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| Fax: =C2=A0 +49-5121-2= 06917-5555 |
Amtsgericht Hildesheim, HRA 2686 =C2=A0| http://www.pengutronix.de =C2=A0 |



--047d7bd6ac482d7ecc04ff560083-- --===============1608314601== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline -- ptxdist mailing list ptxdist@pengutronix.de --===============1608314601==--