From: Robert Menteer Date: Sat, 14 Nov 2020 01:50:09 +0000 (-0800) Subject: dejagnu: quote `pwd` when writing "set objdir" line to site.exp. X-Git-Tag: v1.16.3~11 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=37b70ac4cf93a7212718a6d8630ed43f9750439b;p=thirdparty%2Fautomake.git dejagnu: quote `pwd` when writing "set objdir" line to site.exp. This change fixes https://bugs.gnu.org/44600. * lib/am/dejagnu.am (site.exp): quote set objdir line. * NEWS: mention this. --- diff --git a/NEWS b/NEWS index 83f793551..e55b629cd 100644 --- 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 diff --git a/lib/am/dejagnu.am b/lib/am/dejagnu.am index adeaf312b..6fa42c6b4 100644 --- a/lib/am/dejagnu.am +++ b/lib/am/dejagnu.am @@ -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