From: Andreas Tobler <andreast-list@fgznet.ch>
To: "gdb@sourceware.org" <gdb@sourceware.org>
Subject: Python detection fallout with non GNU sed
Date: Tue, 01 Feb 2011 20:41:00 -0000 [thread overview]
Message-ID: <4D486FE8.7040306@fgznet.ch> (raw)
Hi all,
a recent commit to the configure.ac/configure in src/gdb broke the
machinery on machines which do not have GNU sed.
The issue is the following:
sed -e 's,^.* -l\(python[0-9]*[.]\?[0-9]*\).*$,\1,'`
On certain sed implementations the quantifier '\?' can not be used on
backreferences.
This breaks the detection of python.
Here it fails on darwin and FreeBSD.
I tried the follwoing on those systems and on linux-ppc:
sed -e 's,^.* -l\(python[0-9]*[.][0-9]*\).*$,\1,'`
(the same expression w/o the \? quantifier.)
So far I do not see a drawback. But maybe I did not cover all aspects.
I do not have a *win* system to test on.
What do you think?
Gruss,
Andreas
next reply other threads:[~2011-02-01 20:41 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-02-01 20:41 Andreas Tobler [this message]
2011-02-02 4:45 ` Joel Brobecker
2011-02-02 16:10 ` Andreas Tobler
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4D486FE8.7040306@fgznet.ch \
--to=andreast-list@fgznet.ch \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox