delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2015/03/13/07:20:36

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; q=dns; s=default; b=ALUolf9XIa6fH4Wkzg1BjoJ94CxKQ
oHpfkDGLFaDYvd2Vpsa+GcNVv7NaG+4dNcBBGt4XEPnlFZR5KtwwG0swanFXUwYF
Ep4MFAMrneUSRSVwf6/o++iahuW5tE4r9PIqWjev/T4LcPYvxIs9zl6w1GVwiQVv
DApkx3BQrjx0gE=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:from:to:subject:date:message-id:references
:in-reply-to:content-type:content-transfer-encoding
:mime-version; s=default; bh=EykOc97IabLzdT7kch4Cv8hawzk=; b=mO0
unTanoKEnldwwcXjbdDGRYocRSdxAsRH7RadDrQrs1+YPywz45SfEtmd5uesYSHJ
czlJbcyfPelKQvpLF9mdKG/XVZWJKFGIDse4a70WiqcsmEcjmbfiLn9klUWZ41kW
mxuHB191jz6hON3XJ7JQHvjSpaao0TtFAhBObdzc=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=-0.6 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_NONE,SPF_HELO_PASS,SPF_PASS autolearn=ham version=3.3.2
X-HELO: emea01-db3-obe.outbound.protection.outlook.com
From: Denis Washington <denis AT denisw DOT de>
To: Achim Gratz <Stromeko AT NexGo DOT DE>, "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Subject: RE: GCC / make escaping differences
Date: Fri, 13 Mar 2015 11:20:08 +0000
Message-ID: <DB3PR05MB0763BDE3650C3BC4F4C97A65A2070@DB3PR05MB0763.eurprd05.prod.outlook.com>
References: <DB3PR05MB0763302D3CA95D5946191175A2070 AT DB3PR05MB0763 DOT eurprd05 DOT prod DOT outlook DOT com> <loom DOT 20150313T105904-476 AT post DOT gmane DOT org>
In-Reply-To: <loom.20150313T105904-476@post.gmane.org>
authentication-results: NexGo.DE; dkim=none (message not signed) header.d=none;
x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB0762;UriScan:;BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB0892;
x-forefront-antispam-report: BMV:1;SFV:NSPM;SFS:(10019020)(6009001)(51704005)(2900100001)(15975445007)(75402003)(54356999)(46102003)(87936001)(77156002)(122556002)(74482002)(2656002)(50986999)(102836002)(92566002)(33656002)(76576001)(2501003)(76176999)(40100003)(107886001)(74316001)(62966003)(86362001)(2950100001)(19580395003)(66066001);DIR:OUT;SFP:1102;SCL:1;SRVR:DB3PR05MB0762;H:DB3PR05MB0763.eurprd05.prod.outlook.com;FPR:;SPF:None;MLV:sfv;LANG:en;
x-microsoft-antispam-prvs: <DB3PR05MB0762D310F5A938174D9DFAB3A2070 AT DB3PR05MB0762 DOT eurprd05 DOT prod DOT outlook DOT com>
x-exchange-antispam-report-test: UriScan:;
x-exchange-antispam-report-cfa-test: BCL:0;PCL:0;RULEID:(601004)(5002009)(5005006);SRVR:DB3PR05MB0762;BCL:0;PCL:0;RULEID:;SRVR:DB3PR05MB0762;
x-forefront-prvs: 05143A8241
MIME-Version: 1.0
X-MS-Exchange-CrossTenant-originalarrivaltime: 13 Mar 2015 11:20:08.4362 (UTC)
X-MS-Exchange-CrossTenant-fromentityheader: Hosted
X-MS-Exchange-CrossTenant-id: ad881f14-eaa8-485d-ad61-b28111a91e12
X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB3PR05MB0762
X-OriginatorOrg: denisw.de
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id t2DBKTDQ005690

Achim Gratz writes:
> Denis Washington <denis <at> denisw.de> writes:
> > I suspected that this had something to do with the gcc command defined in
> the Makefile, which includes
> > backslashes to escape quotes in -D values like this:
> >
> >     -DNOKOGIRI_LIBXML2_PATH\=\"/home/.../2.9.2\"
> -----------------------------^
> 
> I'd rather suspect the problem here.

Maybe, but in my eyes that wouldn't explain why this is a GCC compilation error at the line where NOKOGIRI_LIBXML2_PATH is expanded, rather than an shell syntax error. Also, \= seems to cause no problem when passed to bash, as explained.

FYI, my understanding from looking at Nokogiri's extconf.rb (which generates the Makefile) is that the escaping is the result of calling Ruby's Shellwords#shellescape method [1] on the string '-DNOKOGIRI="/home/.../2.9.2"', so I guess one can assume that the result is valid bourne shell syntax.

Regards,
Denis

[1] http://ruby-doc.org/stdlib-1.9.3/libdoc/shellwords/rdoc/Shellwords.html#method-c-shellescape


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019