]> git.ipfire.org Git - thirdparty/automake.git/commitdiff
dejagnu: quote `pwd` when writing "set objdir" line to site.exp.
authorRobert Menteer <reetnem@mac.com>
Sat, 14 Nov 2020 01:50:09 +0000 (17:50 -0800)
committerKarl Berry <karl@freefriends.org>
Sat, 14 Nov 2020 01:50:09 +0000 (17:50 -0800)
This change fixes https://bugs.gnu.org/44600.

* lib/am/dejagnu.am (site.exp): quote set objdir line.
* NEWS: mention this.

NEWS
lib/am/dejagnu.am

diff --git a/NEWS b/NEWS
index 83f793551ee0993b3d1a1702cae7ab59a2819068..e55b629cd12d65baffe09309c32de97a6519ac03 100644 (file)
--- a/NEWS
+++ b/NEWS
@@ -85,6 +85,8 @@ New in ?.?.?:
     distributed C files work, and operation is more reliable with or without
     an installed valac.
 
+  - Dejagnu doesn't break on directories containing spaces.
+
 * Distribution
 
   - new variable AM_DISTCHECK_DVI_TARGET, to allow overriding the
index adeaf312bc59a9254499f0118e18182f28316949..6fa42c6b40f2c3b6e0e464482c84842aea6dfb17 100644 (file)
@@ -54,7 +54,7 @@ site.exp: Makefile $(EXTRA_DEJAGNU_SITE_CONFIG)
        @echo '# Do not edit here.  If you wish to override these values' >>site.tmp
        @echo '# edit the last section' >>site.tmp
        @echo 'set srcdir "$(srcdir)"' >>site.tmp
-       @echo "set objdir `pwd`" >>site.tmp
+       @echo "set objdir \"`pwd`\"" >>site.tmp
 ## Quote the *_alias variables because they might be empty.
 ?BUILD?        @echo 'set build_alias "$(build_alias)"' >>site.tmp
 ?BUILD?        @echo 'set build_triplet $(build_triplet)' >>site.tmp