Received: from eggs.gnu.org ([2001:4830:134:3::10]:33738) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1buzIm-0003sj-Ln for qemu-devel@nongnu.org; Fri, 14 Oct 2016 06:01:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1buzIi-0000dZ-Fl for qemu-devel@nongnu.org; Fri, 14 Oct 2016 06:01:19 -0400 Date: Fri, 14 Oct 2016 11:01:13 +0100 From: Stefan Hajnoczi Message-ID: <20161014100113.GB20003@stefanha-x1.localdomain> References: <1476383370-30650-1-git-send-email-sw@weilnetz.de> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oLBj+sq0vYjzfsbl" Content-Disposition: inline In-Reply-To: <1476383370-30650-1-git-send-email-sw@weilnetz.de> Subject: Re: [Qemu-devel] [PATCH] Fix build for less common build directories names List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Weil Cc: QEMU Developer , QEMU Trivial --oLBj+sq0vYjzfsbl Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Thu, Oct 13, 2016 at 08:29:30PM +0200, Stefan Weil wrote: > 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. >=20 > Signed-off-by: Stefan Weil > --- >=20 > I had problems with a build directory of the form "host,variant". > Is this fix needed for stable, too? >=20 > Regards > Stefan W. >=20 > scripts/tracetool.py | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > 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): > =20 > if dirname =3D=3D "": > return "common" > - return re.sub(r"/|-", "_", dirname) > + return re.sub(r"[^A-Za-z0-9]", "_", dirname) dirname should only contain QEMU source tree subdirectory paths (e.g. hw/net). How did you get a comma in there? I tried an out-of-tree build in a directory called 'a,b' but it doesn't trigger the issue. I'd like to understand how to reproduce the problem in case I missed something. Stefan --oLBj+sq0vYjzfsbl Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJYAKzpAAoJEJykq7OBq3PI9Y4IAIk+tKbI1x6qYsvohBZ3Q/uO BeaFZnTLf+WVdM/AH5svKGORf7VEV7UM/OCcZxOTIiJuY+jy7+CITYcWKDy+Kkr5 UpJLNAEJCfhfWWhWWqLWfUdrH2FZc6AGj5S40KvA2FP7xddZG1tNqZbmWVOhl1fl l3Nr4SH/rRbGtpsz4z1Hn2sllIy6apgL30H5Nv8AwroG+WXIsSRt3+yaAvYa78xc YbOHYkVvWaGms/N4DqhJzGCfKOZFUpfmAb7vmbVLazpZHxExO2b8amzV1/lhSdt6 Oerwo3kM0WGAlaq/+a3///SQHwAbU07xFMLAITTV4rE1ED8kDaIL+tTdJ+UwOow= =OtE7 -----END PGP SIGNATURE----- --oLBj+sq0vYjzfsbl--