GNU bug report logs - #20393
elpa: ada-build: cannot compile when one folder has spaces

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Christian Giménez <cnngimenez@HIDDEN>; dated Tue, 21 Apr 2015 06:22:01 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 20393 <at> debbugs.gnu.org:


Received: (at 20393) by debbugs.gnu.org; 9 Oct 2019 03:35:32 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Oct 08 23:35:32 2019
Received: from localhost ([127.0.0.1]:51811 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1iI2lA-0006Ba-JT
	for submit <at> debbugs.gnu.org; Tue, 08 Oct 2019 23:35:32 -0400
Received: from quimby.gnus.org ([80.91.231.51]:51968)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <larsi@HIDDEN>) id 1iI2l9-0006BS-04
 for 20393 <at> debbugs.gnu.org; Tue, 08 Oct 2019 23:35:31 -0400
Received: from cm-84.212.202.86.getinternet.no ([84.212.202.86] helo=marnie)
 by quimby.gnus.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.89) (envelope-from <larsi@HIDDEN>)
 id 1iI2l5-00024L-Dc; Wed, 09 Oct 2019 05:35:29 +0200
From: Lars Ingebrigtsen <larsi@HIDDEN>
To: Christian <cnngimenez@HIDDEN>
Subject: Re: bug#20393: cannot compile when one folder has spaces
References: <1641757.hIDRi88fqK@harmonia>
Date: Wed, 09 Oct 2019 05:35:26 +0200
In-Reply-To: <1641757.hIDRi88fqK@harmonia> (Christian's message of "Mon, 20
 Apr 2015 23:49:19 -0300")
Message-ID: <87imoyvbep.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Report: Spam detection software, running on the system "quimby.gnus.org",
 has NOT identified this incoming email as spam.  The original
 message has been attached to this so you can view it or label
 similar future email.  If you have any questions, see
 @@CONTACT_ADDRESS@@ for details.
 Content preview:  Christian <cnngimenez@HIDDEN> writes: > Hi,
 I found a problem
 when trying to compile using a project (gpj) file. Is > easy to solve. >
 > The problem is that if you're at a directory with spaces, gnatmake will
 > recieve two parameters inst [...] 
 Content analysis details:   (-2.9 points, 5.0 required)
 pts rule name              description
 ---- ---------------------- --------------------------------------------------
 -1.0 ALL_TRUSTED            Passed through trusted hosts only via SMTP
 -1.9 BAYES_00               BODY: Bayes spam probability is 0 to 1%
 [score: 0.0000]
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 20393
Cc: Stephen Leake <stephen_leake@HIDDEN>, 20393 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Christian <cnngimenez@HIDDEN> writes:

> Hi, I found a problem when trying to compile using a project (gpj) file. Is 
> easy to solve.
>
> The problem is that if you're at a directory with spaces, gnatmake will 
> recieve two parameters instead of one.
>
> The solution is easy: The variable ada-build-make-cmd needs double quotes 
> between the "{gpr_file}" substring: 
> "${cross_prefix}gnatmake -P\"${gpr_file}\" -o ${main} ${main} ${gnatmake_opt} -
> cargs -I${src_dir} ${comp_opt} -bargs ${bind_opt} -largs ${link_opt}"

Stephen, could you take a look at this one?  I'm not familiar with
ada-mode -- does the ${} expansion quote the argument itself?  If not,
this seems like a logical solution, but will probably fail if the file
has a " character in the name.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#20393; Package emacs. Full text available.
Changed bug title to 'elpa: ada-build: cannot compile when one folder has spaces' from 'cannot compile when one folder has spaces' Request was from Glenn Morris <rgm@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 21 Apr 2015 06:21:22 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Apr 21 02:21:22 2015
Received: from localhost ([127.0.0.1]:34128 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1YkRYf-0002Rs-Ou
	for submit <at> debbugs.gnu.org; Tue, 21 Apr 2015 02:21:22 -0400
Received: from eggs.gnu.org ([208.118.235.92]:57893)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <cnngimenez@HIDDEN>) id 1YkOFl-0004ew-MG
 for submit <at> debbugs.gnu.org; Mon, 20 Apr 2015 22:49:38 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cnngimenez@HIDDEN>) id 1YkOFf-00082r-EV
 for submit <at> debbugs.gnu.org; Mon, 20 Apr 2015 22:49:32 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=-0.5 required=5.0 tests=BAYES_05,FREEMAIL_FROM,
 T_DKIM_INVALID autolearn=disabled version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:39612)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cnngimenez@HIDDEN>) id 1YkOFf-00082n-CD
 for submit <at> debbugs.gnu.org; Mon, 20 Apr 2015 22:49:31 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:43147)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cnngimenez@HIDDEN>) id 1YkOFe-0000LQ-4f
 for bug-gnu-emacs@HIDDEN; Mon, 20 Apr 2015 22:49:31 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <cnngimenez@HIDDEN>) id 1YkOFa-00080z-4L
 for bug-gnu-emacs@HIDDEN; Mon, 20 Apr 2015 22:49:30 -0400
Received: from mail-qg0-x22f.google.com ([2607:f8b0:400d:c04::22f]:33687)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <cnngimenez@HIDDEN>) id 1YkOFZ-00080k-PR
 for bug-gnu-emacs@HIDDEN; Mon, 20 Apr 2015 22:49:26 -0400
Received: by qgdy78 with SMTP id y78so62466583qgd.0
 for <bug-gnu-emacs@HIDDEN>; Mon, 20 Apr 2015 19:49:24 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=from:to:reply-to:subject:date:message-id:user-agent:mime-version
 :content-transfer-encoding:content-type;
 bh=0jVEQTzT+Pu/ku6wZEgFlDhaVANRYU29mIAjwCNuf1g=;
 b=VePrJHHTzBiohwsi0Z56/O1a5SUye7ptEDKtjZm86SRSNpcibndjqTgPY7sumbkYNk
 laIZ5gZFKW8IXIsAiNIq1sT0Xr0EetVBFMlHVOChwuRHObXoVElnHFNDKz0DVpGnVtc7
 N9IfylMCInc4FQsreQ5yIwF8DBB1xwNIChBsTQwa3fwoOaOOS0x3ImUPfNajDvFCEmEw
 K0nhrYrTuWAdOOlwotEtZxhPNs7LwcUnOog20hob2XouPkZaTHsAlSJ5JyPu3Oh2wVWr
 bstkRdWTTPRN+tEiW09cu+QyQ7w2pNxlXuFkleGecFZQagyHT0XsHIU99ucJnpflgbxF
 KpwQ==
X-Received: by 10.140.165.150 with SMTP id l144mr21234050qhl.99.1429584564886; 
 Mon, 20 Apr 2015 19:49:24 -0700 (PDT)
Received: from harmonia.localnet ([186.128.166.110])
 by mx.google.com with ESMTPSA id f35sm467554qga.10.2015.04.20.19.49.23
 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128);
 Mon, 20 Apr 2015 19:49:23 -0700 (PDT)
From: Christian <cnngimenez@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: cannot compile when one folder has spaces
Date: Mon, 20 Apr 2015 23:49:19 -0300
Message-ID: <1641757.hIDRi88fqK@harmonia>
User-Agent: KMail/4.14.6 (Linux/3.19.3-200.fc21.x86_64; KDE/4.14.6; x86_64; ; )
MIME-Version: 1.0
Content-Transfer-Encoding: 7Bit
Content-Type: text/plain; charset="us-ascii"
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -4.0 (----)
X-Debbugs-Envelope-To: submit
X-Mailman-Approved-At: Tue, 21 Apr 2015 02:21:20 -0400
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
Reply-To: Christian =?ISO-8859-1?Q?Gim=E9nez?= <cnngimenez@HIDDEN>
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -4.0 (----)

emacs, ada-mode 

Hi, I found a problem when trying to compile using a project (gpj) file. Is 
easy to solve.

The problem is that if you're at a directory with spaces, gnatmake will 
recieve two parameters instead of one.

The solution is easy: The variable ada-build-make-cmd needs double quotes 
between the "{gpr_file}" substring: 
"${cross_prefix}gnatmake -P\"${gpr_file}\" -o ${main} ${main} ${gnatmake_opt} -
cargs -I${src_dir} ${comp_opt} -bargs ${bind_opt} -largs ${link_opt}"

After setting that, you should restart Emacs.

Could you add this string as a default value?

Cheers!




Acknowledgement sent to Christian Giménez <cnngimenez@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#20393; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Mon, 25 Nov 2019 12:00:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.