qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix build for less common build directories names
@ 2016-10-13 18:29 Stefan Weil
  2016-10-13 18:36 ` Peter Maydell
                   ` (2 more replies)
  0 siblings, 3 replies; 12+ messages in thread
From: Stefan Weil @ 2016-10-13 18:29 UTC (permalink / raw)
  To: QEMU Developer; +Cc: QEMU Trivial, Stefan Hajnoczi, Stefan Weil

scripts/tracetool generates a C preprocessor macro from the name of the
build directory. Any characters which are possible in a directory name
but not allowed in a macro name must be substituted, otherwise builds
will fail.

Signed-off-by: Stefan Weil <sw@weilnetz.de>
---

I had problems with a build directory of the form "host,variant".
Is this fix needed for stable, too?

Regards
Stefan W.

 scripts/tracetool.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/scripts/tracetool.py b/scripts/tracetool.py
index 629b259..fe9c9e9 100755
--- a/scripts/tracetool.py
+++ b/scripts/tracetool.py
@@ -70,7 +70,7 @@ def make_group_name(filename):
 
     if dirname == "":
         return "common"
-    return re.sub(r"/|-", "_", dirname)
+    return re.sub(r"[^A-Za-z0-9]", "_", dirname)
 
 def main(args):
     global _SCRIPT
-- 
2.1.4

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

end of thread, other threads:[~2016-10-28 15:01 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-13 18:29 [Qemu-devel] [PATCH] Fix build for less common build directories names Stefan Weil
2016-10-13 18:36 ` Peter Maydell
2016-10-14  9:53   ` Stefan Hajnoczi
2016-10-14 10:17     ` Paolo Bonzini
2016-10-14 10:01 ` Stefan Hajnoczi
2016-10-14 20:05   ` Stefan Weil
2016-10-16 13:36     ` Stefan Hajnoczi
2016-10-16 14:31 ` Michael Tokarev
2016-10-16 19:04   ` Peter Maydell
2016-10-17  4:43     ` Stefan Weil
2016-10-28 14:57       ` Michael Tokarev
2016-10-28 15:01         ` Peter Maydell

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).