From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id C78291384B4 for ; Wed, 23 Dec 2015 20:12:34 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id BB05FE085C; Wed, 23 Dec 2015 20:12:32 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 54C29E085C for ; Wed, 23 Dec 2015 20:12:32 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 18B6D33E01A for ; Wed, 23 Dec 2015 20:12:30 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 88DBCA0E for ; Wed, 23 Dec 2015 20:12:27 +0000 (UTC) From: "Alfredo Tupone" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Alfredo Tupone" Message-ID: <1450901533.e417a0e5984a8f6d67adb4684590651052302ace.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-sports/torcs/files/, games-sports/torcs/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-sports/torcs/files/torcs-1.3.6-format.patch games-sports/torcs/torcs-1.3.6.ebuild X-VCS-Directories: games-sports/torcs/ games-sports/torcs/files/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: e417a0e5984a8f6d67adb4684590651052302ace X-VCS-Branch: master Date: Wed, 23 Dec 2015 20:12:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: 9448911d-9578-4784-9ac4-ce04c8093a61 X-Archives-Hash: 5354e329d0c39b2b1091760f851fe540 commit: e417a0e5984a8f6d67adb4684590651052302ace Author: Tupone Alfredo gentoo org> AuthorDate: Wed Dec 23 20:11:37 2015 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Wed Dec 23 20:12:13 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e417a0e5 games-sports/torcs: compile with format-security. Bug #539232 Package-Manager: portage-2.2.24 games-sports/torcs/files/torcs-1.3.6-format.patch | 34 +++++++++++++++++++++++ games-sports/torcs/torcs-1.3.6.ebuild | 1 + 2 files changed, 35 insertions(+) diff --git a/games-sports/torcs/files/torcs-1.3.6-format.patch b/games-sports/torcs/files/torcs-1.3.6-format.patch new file mode 100644 index 0000000..52e7db6 --- /dev/null +++ b/games-sports/torcs/files/torcs-1.3.6-format.patch @@ -0,0 +1,34 @@ +--- src/tools/texmapper/maintexmapper.cpp.old 2015-12-23 20:55:24.874102363 +0100 ++++ src/tools/texmapper/maintexmapper.cpp 2015-12-23 20:55:55.071553325 +0100 +@@ -103,7 +103,7 @@ + { + int i, j; + +- printf(title); ++ printf("%s", title); + for (j = 0; j < 4; j ++){ + for (i = 0; i < 4; i ++) { + printf("%.6f ", m[i][j]); +--- src/tools/trackgen/objects.cpp.old 2015-12-23 20:59:49.671287196 +0100 ++++ src/tools/trackgen/objects.cpp 2015-12-23 21:02:21.639523189 +0100 +@@ -234,9 +234,9 @@ + + ssgLeaf *vt = (ssgLeaf *)ent; + if (vt->getCullFace() == TRUE) { +- surf = "SURF 0x10\n"; ++ surf = "0x10"; + } else { +- surf = "SURF 0x30\n"; ++ surf = "0x30"; + } + + int num_verts = vt->getNumVertices(); +@@ -304,7 +304,7 @@ + fprintf (save_fd, "numsurf %d\n", num_tris); + + for (i = 0; i < num_tris; i++) { +- fprintf (save_fd, surf); ++ fprintf (save_fd, "SURF %s\n", surf); + fprintf (save_fd, "mat 0\n"); + fprintf (save_fd, "refs 3\n"); + fprintf (save_fd, "%d %g %g\n", diff --git a/games-sports/torcs/torcs-1.3.6.ebuild b/games-sports/torcs/torcs-1.3.6.ebuild index 4c01238..fdd634c 100644 --- a/games-sports/torcs/torcs-1.3.6.ebuild +++ b/games-sports/torcs/torcs-1.3.6.ebuild @@ -33,6 +33,7 @@ src_prepare() { "${FILESDIR}"/${P}-no-automake.patch \ "${FILESDIR}"/${P}-as-needed.patch \ "${FILESDIR}"/${P}-flags.patch \ + "${FILESDIR}"/${P}-format.patch \ "${FILESDIR}"/${P}-noXmuXt.patch eautoreconf ecvs_clean