qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ninjatool: quote dollars in variables
@ 2020-08-26 19:01 Paolo Bonzini
  2020-08-26 19:34 ` Peter Maydell
  2020-08-27  7:33 ` Laurent Vivier
  0 siblings, 2 replies; 11+ messages in thread
From: Paolo Bonzini @ 2020-08-26 19:01 UTC (permalink / raw)
  To: qemu-devel; +Cc: Laurent Vivier

Otherwise, dollars (such as in the special $ORIGIN rpath) are
eaten by Make.

Reported-by: Laurent Vivier <lvivier@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
---
 scripts/ninjatool.py | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/scripts/ninjatool.py b/scripts/ninjatool.py
index cc77d51aa8..c33eafb5a0 100755
--- a/scripts/ninjatool.py
+++ b/scripts/ninjatool.py
@@ -834,7 +834,8 @@ class Ninja2Make(NinjaParserEventsWithVars):
         self.print()
         for targets in self.build_vars:
             for name, value in self.build_vars[targets].items():
-                self.print('%s: private .var.%s := %s' % (targets, name, value))
+                self.print('%s: private .var.%s := %s' %
+                           (targets, name, value.replace('$', '$$')))
             self.print()
         if not self.seen_default:
             default_targets = sorted(self.all_outs - self.all_ins, key=natural_sort_key)
-- 
2.26.2



^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2020-08-28 19:09 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-08-26 19:01 [PATCH] ninjatool: quote dollars in variables Paolo Bonzini
2020-08-26 19:34 ` Peter Maydell
2020-08-27  4:13   ` Paolo Bonzini
2020-08-27  5:29     ` Alexander Bulekov
2020-08-27  7:33 ` Laurent Vivier
2020-08-27  8:22   ` Paolo Bonzini
2020-08-27  9:10     ` Paolo Bonzini
2020-08-27  9:14       ` Paolo Bonzini
2020-08-27 10:07         ` Peter Maydell
2020-08-27 12:02           ` Paolo Bonzini
2020-08-28 18:57         ` Laurent Vivier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).