From unknown Sun Aug 10 16:49:19 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#44600 <44600@debbugs.gnu.org> To: bug#44600 <44600@debbugs.gnu.org> Subject: Status: Automake does not make site.exp correctly when spaces in current path name. Reply-To: bug#44600 <44600@debbugs.gnu.org> Date: Sun, 10 Aug 2025 23:49:19 +0000 retitle 44600 Automake does not make site.exp correctly when spaces in curr= ent path name. reassign 44600 automake submitter 44600 Robert Menteer severity 44600 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Thu Nov 12 17:24:14 2020 Received: (at submit) by debbugs.gnu.org; 12 Nov 2020 22:24:14 +0000 Received: from localhost ([127.0.0.1]:45897 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdL0o-0001TH-06 for submit@debbugs.gnu.org; Thu, 12 Nov 2020 17:24:14 -0500 Received: from lists.gnu.org ([209.51.188.17]:35540) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1kdL0l-0001T8-19 for submit@debbugs.gnu.org; Thu, 12 Nov 2020 17:24:12 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41000) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdL0k-00014V-OI for bug-automake@gnu.org; Thu, 12 Nov 2020 17:24:10 -0500 Received: from st43p00im-zteg10073401.me.com ([17.58.63.181]:33393) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kdL0h-0007yt-NN for bug-automake@gnu.org; Thu, 12 Nov 2020 17:24:10 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=mac.com; s=1a1hai; t=1605219841; bh=cp4nBvUorPtBBzDWbW5rtm4pDxRcJ6/G3+/D+UJH7EY=; h=From:Content-Type:Mime-Version:Subject:Message-Id:To:Date; b=FWOGa5vpBKCVZpvp6L37/X8y1Iik2YQIfMGg6myxD8z9OB+EAfad4rhhlMuZsVpzz kUhdEvMO2QVaJ9ZEmJv3TCK1+ZTWx22RBiA5l2dfLbSqKThpNznyuZY8RXLMHaSo2U rqh0WQLOqWP2d0FuA6Jy3xNll8Btg0CTlQu61UT3jcxRD86pM7cG/qyyAEfwZCGVkB 2svOBSqmrGnaZUlD1VoDQ1/HI37LqlL3MlcgBZyvi3UhI238dvoF348vtCQ3pNudxK kOW5M5hkPBx88Lo8SSKLAiATzoOEenCnkpHq9Zong43K6cMuV9jDiEQP9nC+wAreDf H3dPXNzHxJ3cQ== Received: from [192.168.0.18] (nc-71-50-141-172.dyn.embarqhsd.net [71.50.141.172]) by st43p00im-zteg10073401.me.com (Postfix) with ESMTPSA id 05C715E0776 for ; Thu, 12 Nov 2020 22:24:00 +0000 (UTC) From: Robert Menteer Content-Type: multipart/alternative; boundary="Apple-Mail=_1B9D1766-3BD2-40C2-9D2F-66AC7826F295" Mime-Version: 1.0 (Mac OS X Mail 13.4 \(3608.120.23.2.4\)) Subject: Automake does not make site.exp correctly when spaces in current path name. Message-Id: <9858A7C2-BCD5-467C-928F-74299DFE86E3@mac.com> References: <5FACA449.5050909@gmail.com> To: bug-automake@gnu.org Date: Thu, 12 Nov 2020 17:23:59 -0500 X-Mailer: Apple Mail (2.3608.120.23.2.4) X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:6.0.312, 18.0.737 definitions=2020-11-12_14:2020-11-12, 2020-11-12 signatures=0 X-Proofpoint-Spam-Details: rule=notspam policy=default score=0 suspectscore=15 malwarescore=0 phishscore=0 bulkscore=0 spamscore=0 clxscore=1031 mlxscore=0 mlxlogscore=809 adultscore=0 classifier=spam adjust=0 reason=mlx scancount=1 engine=8.0.1-2006250000 definitions=main-2011120127 Received-SPF: pass client-ip=17.58.63.181; envelope-from=reetnem@mac.com; helo=st43p00im-zteg10073401.me.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/11/12 17:24:02 X-ACL-Warn: Detected OS = Linux 3.11 and newer X-Spam_score_int: -10 X-Spam_score: -1.1 X-Spam_bar: - X-Spam_report: (-1.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, FREEMAIL_REPLY=1, HTML_MESSAGE=0.001, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-Spam-Score: -0.3 (/) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -2.3 (--) --Apple-Mail=_1B9D1766-3BD2-40C2-9D2F-66AC7826F295 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=utf-8 If your current directory path contains a space then Automake creates an = invalid site.exp file. The problem is in the following code placed into = Makefile.in: @echo 'set srcdir "$(srcdir)"' >>site.tmp @echo "set objdir `pwd`" >>site.tmp Note you do quote the source directory. If you were to quote the result = of the pwd it would create a valid site.exp file: @echo "set objdir \"`pwd`\"" >>site.tmp > Begin forwarded message: >=20 > From: Jacob Bachmeyer > Subject: Re: bug#44580: DejaGnu runtest not found of site.exp exists > Date: November 11, 2020 at 9:56:09 PM EST > To: Robert Menteer , Robert Menteer via Bug-dejagnu = > Cc: 44580-done@debbugs.gnu.org > Reply-To: jcb62281@gmail.com >=20 > Robert Menteer via Bug-dejagnu via wrote: >> What I found by running runtest by hand is it fails if the file = site.ext exists. >=20 > Your site.exp file is invalid; this is a bug in Automake rather than a = bug in DejaGnu. The version of Automake that produced the Makefile.in = that you are using mishandles filenames containing spaces. Tcl requires = a value containing spaces to be properly quoted in a "set" command, and = Automake is producing a site.exp that does not contain those quotes for = the objdir variable. >=20 > An immediate workaround is to run `sed -e '/^set [^ ]*dir [^"]/{s/dir = /&"/;s/$/"/}' -i site.exp` (tested with GNU sed) to fix your site.exp = file, or to avoid building in a directory where the absolute filename = contains spaces. >=20 > Additionally, as of commit b53b22c29880f785ae5e9e1c72925d2583a4c76d = (after 1.6.2 was released) DejaGnu no longer loads site.exp when invoked = with the --version option. >=20 > Please try regenerating your Makefile.in with a newer Automake or = report this as a bug in Automake if you are already using the latest = version. >=20 > I am closing this report as NOTOURBUG. >=20 >=20 > -- Jacob Original bug report to DejaGnu follows: I have a Makefile created using the auto tools and it has a problem when = making the =E2=80=98check=E2=80=99 target. The problem is the make file = fails to verify the existence of runtest. The command used to test for = the existence of runtest is: if /bin/bash -c "runtest --version" > /dev/null 2>&1; then What I found by running runtest by hand is it fails if the file site.ext = exists.=20 parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parallels = Shared Folders/FlDist/trunk/testsuite$ runtest --version ERROR: tcl error sourcing /media/psf/FlDist/trunk/testsuite/site.exp. wrong # args: should be "set varName ?newValue?" while executing "set objdir /home/parallels/Desktop/Parallels Shared = Folders/FlDist/trunk/testsuite" (file "/media/psf/FlDist/trunk/testsuite/site.exp" line 5) invoked from within "source /media/psf/FlDist/trunk/testsuite/site.exp" ("uplevel" body line 1) invoked from within "uplevel #0 source /media/psf/FlDist/trunk/testsuite/site.exp" invoked from within "catch "uplevel #0 source $file"" parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parallels = Shared Folders/FlDist/trunk/testsuite$ rm site.exp parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parallels = Shared Folders/FlDist/trunk/testsuite$ runtest --version DejaGnu version 1.6.2 Expect version 5.45.4 Tcl version 8.6 parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parallels = Shared Folders/FlDist/trunk/testsuite$ uname -a Linux parallels-Parallels-Virtual-Platform 5.4.0-42-generic #46-Ubuntu = SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 GNU/Linux parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parallels = Shared Folders/FlDist/trunk/testsuite$=20 --Apple-Mail=_1B9D1766-3BD2-40C2-9D2F-66AC7826F295 Content-Transfer-Encoding: quoted-printable Content-Type: text/html; charset=utf-8 If = your current directory path contains a space then Automake creates an = invalid site.exp file. The problem is in the following code placed into = Makefile.in:

        @echo 'set srcdir = "$(srcdir)"' >>site.tmp
  =       @echo "set objdir `pwd`" = >>site.tmp

Note you do quote the source directory. If you were to quote = the result of the pwd it would create a valid site.exp file:

        @echo "set objdir \"`pwd`\"" = >>site.tmp


Begin forwarded message:

From: = Jacob Bachmeyer <jcb62281@gmail.com>
Subject: = Re: bug#44580: = DejaGnu runtest not found of site.exp exists
Date: = November 11, 2020 at 9:56:09 PM = EST
To: = Robert Menteer <reetnem@mac.com>, = Robert Menteer via Bug-dejagnu <bug-dejagnu@gnu.org>
Reply-To: = jcb62281@gmail.com

Robert Menteer via Bug-dejagnu via wrote:
What I found by running = runtest by hand is it fails if the file site.ext exists.

Your site.exp file is invalid; = this is a bug in Automake rather than a bug in DejaGnu.  The = version of Automake that produced the Makefile.in that you are using = mishandles filenames containing spaces.  Tcl requires a value = containing spaces to be properly quoted in a "set" command, and Automake = is producing a site.exp that does not contain those quotes for the = objdir variable.

An immediate workaround is = to run `sed -e '/^set [^ ]*dir [^"]/{s/dir /&"/;s/$/"/}' -i = site.exp` (tested with GNU sed) to fix your site.exp file, or to avoid = building in a directory where the absolute filename contains spaces.

Additionally, as of commit = b53b22c29880f785ae5e9e1c72925d2583a4c76d (after 1.6.2 was released) = DejaGnu no longer loads site.exp when invoked with the --version = option.

Please try regenerating your = Makefile.in with a newer Automake or report this as a bug in Automake if = you are already using the latest version.

I = am closing this report as NOTOURBUG.


-- Jacob

Original bug report to DejaGnu = follows:
I have a Makefile created using the auto tools = and it has a problem when making the =E2=80=98check=E2=80=99 target. The = problem is the make file fails to verify the existence of runtest. The = command used to test for the existence of runtest is:

if = /bin/bash -c "runtest --version" > /dev/null 2>&1; = then

What I found by running = runtest by hand is it fails if the file site.ext exists. 

parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parall= els Shared Folders/FlDist/trunk/testsuite$ runtest = --version
ERROR: tcl error sourcing = /media/psf/FlDist/trunk/testsuite/site.exp.
wrong # args: should be = "set varName ?newValue?"
    while executing
"set objdir = /home/parallels/Desktop/Parallels Shared = Folders/FlDist/trunk/testsuite"
    (file = "/media/psf/FlDist/trunk/testsuite/site.exp" line 5)
    invoked = from within
"source = /media/psf/FlDist/trunk/testsuite/site.exp"
    = ("uplevel" body line 1)
    invoked from within
"uplevel #0 source = /media/psf/FlDist/trunk/testsuite/site.exp"
    invoked = from within
"catch "uplevel #0 source $file""
parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parall= els Shared Folders/FlDist/trunk/testsuite$ rm = site.exp
parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parall= els Shared Folders/FlDist/trunk/testsuite$ runtest = --version
DejaGnu version 1.6.2
Expect version = 5.45.4
Tcl version 8.6
parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parall= els Shared Folders/FlDist/trunk/testsuite$ uname = -a
Linux parallels-Parallels-Virtual-Platform 5.4.0-42-generic = #46-Ubuntu SMP Fri Jul 10 00:24:02 UTC 2020 x86_64 x86_64 x86_64 = GNU/Linux
parallels@parallels-Parallels-Virtual-Platform:~/Desktop/Parall= els Shared Folders/FlDist/trunk/testsuite$ 

= --Apple-Mail=_1B9D1766-3BD2-40C2-9D2F-66AC7826F295-- From debbugs-submit-bounces@debbugs.gnu.org Sat Nov 14 17:12:35 2020 Received: (at 44600) by debbugs.gnu.org; 14 Nov 2020 22:12:35 +0000 Received: from localhost ([127.0.0.1]:52242 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ke3md-0007XH-6h for submit@debbugs.gnu.org; Sat, 14 Nov 2020 17:12:35 -0500 Received: from freefriends.org ([96.88.95.60]:55532) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ke3mZ-0007Ww-MG; Sat, 14 Nov 2020 17:12:32 -0500 X-Envelope-From: karl@freefriends.org Received: from freefriends.org (freefriends.org [96.88.95.60]) by freefriends.org (8.14.7/8.14.7) with ESMTP id 0AEMCTsQ010027 (version=TLSv1/SSLv3 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT); Sat, 14 Nov 2020 15:12:30 -0700 Received: (from apache@localhost) by freefriends.org (8.14.7/8.14.7/Submit) id 0AEMCTTl010026; Sat, 14 Nov 2020 15:12:29 -0700 Date: Sat, 14 Nov 2020 15:12:29 -0700 Message-Id: <202011142212.0AEMCTTl010026@freefriends.org> From: Karl Berry To: reetnem@mac.com Subject: Re: bug#44600: Automake does not make site.exp correctly when spaces in current path name. In-Reply-To: <9858A7C2-BCD5-467C-928F-74299DFE86E3@mac.com> X-Spam-Score: -2.3 (--) X-Debbugs-Envelope-To: 44600 Cc: 44600@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: debbugs-submit-bounces@debbugs.gnu.org Sender: "Debbugs-submit" X-Spam-Score: -3.3 (---) @echo "set objdir \"`pwd`\"" >>site.tmp Thanks much. I installed the change. --best, karl. From unknown Sun Aug 10 16:49:19 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 13 Dec 2020 12:24:04 +0000 User-Agent: Fakemail v42.6.9 # This is a fake control message. # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator