From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:46074) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bukl6-0008Sl-RW for qemu-devel@nongnu.org; Thu, 13 Oct 2016 14:29:37 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bukl4-0001Gv-OP for qemu-devel@nongnu.org; Thu, 13 Oct 2016 14:29:35 -0400 Received: from qemu.weilnetz.de ([2a03:4000:2:362::1]:57875) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bukl4-0001EU-IX for qemu-devel@nongnu.org; Thu, 13 Oct 2016 14:29:34 -0400 From: Stefan Weil Date: Thu, 13 Oct 2016 20:29:30 +0200 Message-Id: <1476383370-30650-1-git-send-email-sw@weilnetz.de> Subject: [Qemu-devel] [PATCH] Fix build for less common build directories names List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , 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 --- 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