Return-Path: X-Original-To: apmail-subversion-dev-archive@minotaur.apache.org Delivered-To: apmail-subversion-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0D42718189 for ; Fri, 15 May 2015 17:49:40 +0000 (UTC) Received: (qmail 48871 invoked by uid 500); 15 May 2015 17:49:39 -0000 Delivered-To: apmail-subversion-dev-archive@subversion.apache.org Received: (qmail 48816 invoked by uid 500); 15 May 2015 17:49:39 -0000 Mailing-List: contact dev-help@subversion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list dev@subversion.apache.org Received: (qmail 48801 invoked by uid 99); 15 May 2015 17:49:39 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 15 May 2015 17:49:39 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id 2D38D18283E for ; Fri, 15 May 2015 17:49:39 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.898 X-Spam-Level: ** X-Spam-Status: No, score=2.898 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=3, RCVD_IN_MSPIKE_H2=-0.001, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (1024-bit key) header.d=wandisco.com Received: from mx1-us-east.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id Qv7DRqKd8rS3 for ; Fri, 15 May 2015 17:49:37 +0000 (UTC) Received: from mail-ie0-f172.google.com (mail-ie0-f172.google.com [209.85.223.172]) by mx1-us-east.apache.org (ASF Mail Server at mx1-us-east.apache.org) with ESMTPS id 8219742B0E for ; Fri, 15 May 2015 17:49:37 +0000 (UTC) Received: by ieczm2 with SMTP id zm2so49661058iec.1 for ; Fri, 15 May 2015 10:49:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=wandisco.com; s=gapps; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=Tn5LjftEVVDYSIlmLgBwmValuWvVGHslicIE+aDcgnc=; b=h1QmfKqMvuNk4WXzUcD26zFLVSPxDNWI2dwcUq9aCR7qeDaqK/8onGzVbk4OQ3w570 TKKX+iC+SDmVClTiAPmeLJqIKH0QGAvn+PxJYiDOdxwIyua4LoLJj60ttA3kEaeB9eOO GYkz9jrv3luTe+prmoikRdYvvr4tHJdlSLaRc= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc:content-type; bh=Tn5LjftEVVDYSIlmLgBwmValuWvVGHslicIE+aDcgnc=; b=SAeS8RwKMeNrYhiAKFdRJC74ELo3vt1FwJ5bR/QEXGq/xkDt1T4y8M68Cea2F7D5OF d4c5kOPX6V8XVWsU7VMXZEk8nvBtk7i5TGWRqJ8vTNDLLsi3a1iSVxOXWenRe4OwTT1p 6q9n+Wi1gIJsLK0ZIYKkUnwIHVO7x+jkzDJaM1BsUu7NdxxYqWIYBDQH54pQuJeBOMw9 sjT3iVv+hl09ClTRy3425g9WS4Glti2fagiKWXm+b83E6L1ET08NChU7f8KIHNWuHAkd 9BRfNyCcLhBWPLVL9ysOpZY4s33QlJMkkY4OLIwg11F0WgE4KbZoONav6jSkBK12EaGd QE5w== X-Gm-Message-State: ALoCoQkyraaQRjBnmsX7kAKUY8b0FSDvh81J5zyDcgThfXcdKWlBEk09xVVOh9JME4RewKEX9TR0 MIME-Version: 1.0 X-Received: by 10.43.60.14 with SMTP id wq14mr6918609icb.60.1431712177159; Fri, 15 May 2015 10:49:37 -0700 (PDT) Received: by 10.36.73.164 with HTTP; Fri, 15 May 2015 10:49:37 -0700 (PDT) Received: by 10.36.73.164 with HTTP; Fri, 15 May 2015 10:49:37 -0700 (PDT) In-Reply-To: <72b68e9be40146aeabb649f7d2fd8ce7@SP39.realvnc.ltd> References: <72b68e9be40146aeabb649f7d2fd8ce7@SP39.realvnc.ltd> Date: Fri, 15 May 2015 19:49:37 +0200 Message-ID: Subject: Re: Subversion configure script broken for serf if sysroot path contains "-D" From: =?UTF-8?Q?Branko_=C4=8Cibej?= To: Bruce Bye Cc: Subversion Development Content-Type: multipart/alternative; boundary=bcaec51ddef1bd9522051622773f --bcaec51ddef1bd9522051622773f Content-Type: text/plain; charset=UTF-8 >> >> There's really no completely safe way to rewrite that regular expression. But I think you can avoid even invoking it by passing --with-serf=/path/to/serf/prefix to configure; if the Serf path is provided, we won't invoke pkg-config. > > Of course - a completely safe fix would have to do something rather different from a simple regex to ensure it wasn't catching something it didn't intend to, and may not be worth the effort. I would think that adding a space in the regex before the hyphen might be sufficient, but I don't know if you need to worry about a -D option at the very start of the cflags string. Adding the space into the regex is how I'm working around the issue for now. Right. Adding the space, and a separate check for the start of the string, would help. > > But then, since what the code is actually trying to get is the include path and not the full cflags, perhaps it could instead request --variable=includedir from pkg-config, and not need to munge the string at all. Do you mind trying that? I'm sure a patch that does away with the regex filter entirely would be welcome. -- Brane --bcaec51ddef1bd9522051622773f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable


>>
>> There's really no completely safe way to rewrite that regular = expression. But I think you can avoid even invoking it by passing --with-se= rf=3D/path/to/serf/prefix to configure; if the Serf path is provided, we wo= n't invoke pkg-config.
>
> Of course - a completely safe fix would have to do something rather di= fferent from a simple regex to ensure it wasn't catching something it d= idn't intend to, and may not be worth the effort. I would think that ad= ding a space in the regex before the hyphen might be sufficient, but I don&= #39;t know if you need to worry about a -D option at the very start of the = cflags string.=C2=A0 Adding the space into the regex is how I'm working= around the issue for now.

Right. Adding the space, and a separate check for the start = of the string, would help.

>
> But then, since what the code is actually trying to get is the include= path and not the full cflags, perhaps it could instead request --variable= =3Dincludedir from pkg-config, and not need to munge the string at all.

Do you mind trying that? I'm sure a patch that does away= with the regex filter entirely would be welcome.

-- Brane

--bcaec51ddef1bd9522051622773f--