GNU bug report logs - #44580
DejaGnu runtest not found of site.exp exists

Previous Next

Package: dejagnu;

Reported by: Robert Menteer <reetnem <at> mac.com>

Date: Wed, 11 Nov 2020 16:11:01 UTC

Severity: normal

Done: Jacob Bachmeyer <jcb62281 <at> gmail.com>

Bug is archived. No further changes may be made.

To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 44580 in the body.
You can then email your comments to 44580 AT debbugs.gnu.org in the normal way.

Toggle the display of automated, internal messages from the tracker.

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to bug-dejagnu <at> gnu.org:
bug#44580; Package dejagnu. (Wed, 11 Nov 2020 16:11:01 GMT) Full text and rfc822 format available.

Acknowledgement sent to Robert Menteer <reetnem <at> mac.com>:
New bug report received and forwarded. Copy sent to bug-dejagnu <at> gnu.org. (Wed, 11 Nov 2020 16:11:01 GMT) Full text and rfc822 format available.

Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Robert Menteer <reetnem <at> mac.com>
To: bug-dejagnu <at> gnu.org
Subject: DejaGnu runtest not found of site.exp exists
Date: Wed, 11 Nov 2020 10:54:50 -0500
[Message part 1 (text/plain, inline)]
I have a Makefile created using the auto tools and it has a problem when making the ‘check’ 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 <at> 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 <at> parallels-Parallels-Virtual-Platform:~/Desktop/Parallels Shared Folders/FlDist/trunk/testsuite$ rm site.exp
parallels <at> 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 <at> 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 <at> parallels-Parallels-Virtual-Platform:~/Desktop/Parallels Shared Folders/FlDist/trunk/testsuite$ 

[Message part 2 (text/html, inline)]

Information forwarded to bug-dejagnu <at> gnu.org:
bug#44580; Package dejagnu. (Thu, 12 Nov 2020 02:57:02 GMT) Full text and rfc822 format available.

Message #8 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Jacob Bachmeyer <jcb62281 <at> gmail.com>
To: Robert Menteer <reetnem <at> mac.com>, 
 Robert Menteer via Bug-dejagnu <bug-dejagnu <at> gnu.org>
Cc: 44580-done <at> debbugs.gnu.org
Subject: Re: bug#44580: DejaGnu runtest not found of site.exp exists
Date: Wed, 11 Nov 2020 20:56:09 -0600
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




Reply sent to jcb62281 <at> gmail.com:
You have taken responsibility. (Thu, 12 Nov 2020 02:57:02 GMT) Full text and rfc822 format available.

Notification sent to Robert Menteer <reetnem <at> mac.com>:
bug acknowledged by developer. (Thu, 12 Nov 2020 02:57:02 GMT) Full text and rfc822 format available.

Information forwarded to bug-dejagnu <at> gnu.org:
bug#44580; Package dejagnu. (Thu, 12 Nov 2020 16:10:02 GMT) Full text and rfc822 format available.

Message #16 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Robert Menteer <reetnem <at> mac.com>
To: jcb62281 <at> gmail.com
Cc: Robert Menteer via Bug-dejagnu <bug-dejagnu <at> gnu.org>,
 44580-done <at> debbugs.gnu.org
Subject: Re: bug#44580: DejaGnu runtest not found of site.exp exists
Date: Thu, 12 Nov 2020 08:35:01 -0500
Jacob,

Thank you for the quick response. You did a beautiful analysis of what failed, not only determining what was wrong with the site.ext file but the input that caused another build tool to generate an incorrect file. I laughed out when I read your ending: this is not a bug but we’re fixing it anyway.

> On Nov 11, 2020, at 9:56 PM, Jacob Bachmeyer <jcb62281 <at> gmail.com> wrote:
> 
> 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

Thanks again
Bob



Information forwarded to bug-dejagnu <at> gnu.org:
bug#44580; Package dejagnu. (Thu, 12 Nov 2020 16:10:03 GMT) Full text and rfc822 format available.

bug archived. Request was from Debbugs Internal Request <help-debbugs <at> gnu.org> to internal_control <at> debbugs.gnu.org. (Fri, 11 Dec 2020 12:24:06 GMT) Full text and rfc822 format available.

This bug report was last modified 4 years and 243 days ago.

Previous Next


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