From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30703 invoked by alias); 1 Feb 2011 20:41:25 -0000 Received: (qmail 30691 invoked by uid 22791); 1 Feb 2011 20:41:24 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from mail.fgznet.ch (HELO smtp.fgznet.ch) (81.92.96.47) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 01 Feb 2011 20:41:16 +0000 Received: from deuterium.andreas.nets (dhclient-91-190-8-131.flashcable.ch [91.190.8.131]) by smtp.fgznet.ch (8.13.8/8.13.8/Submit_SMTPAUTH) with ESMTP id p11KfCrL080914 for ; Tue, 1 Feb 2011 21:41:13 +0100 (CET) (envelope-from andreast-list@fgznet.ch) Message-ID: <4D486FE8.7040306@fgznet.ch> Date: Tue, 01 Feb 2011 20:41:00 -0000 From: Andreas Tobler User-Agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.5; en-US; rv:1.9.2.13) Gecko/20101207 Lightning/1.0b2 Thunderbird/3.1.7 MIME-Version: 1.0 To: "gdb@sourceware.org" Subject: Python detection fallout with non GNU sed Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2011-02/txt/msg00003.txt.bz2 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