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 4568B13888F for ; Sat, 24 Oct 2015 15:43:41 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id C9A26E07EA; Sat, 24 Oct 2015 15:43:37 +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 60B9FE07EA for ; Sat, 24 Oct 2015 15:43:37 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 50A5C340A22 for ; Sat, 24 Oct 2015 15:43:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1619517A8 for ; Sat, 24 Oct 2015 15:43:30 +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: <1445701381.fcc4281c0eacb8d3e125ed2c597c7d22ed2da640.tupone@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: games-rpg/freedroid/files/, games-rpg/freedroid/ X-VCS-Repository: repo/gentoo X-VCS-Files: games-rpg/freedroid/files/freedroid-1.0.2-format.patch games-rpg/freedroid/freedroid-1.0.2.ebuild X-VCS-Directories: games-rpg/freedroid/files/ games-rpg/freedroid/ X-VCS-Committer: tupone X-VCS-Committer-Name: Alfredo Tupone X-VCS-Revision: fcc4281c0eacb8d3e125ed2c597c7d22ed2da640 X-VCS-Branch: master Date: Sat, 24 Oct 2015 15:43:30 +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: 11e2baaa-f373-43c6-8dfe-71fc4a96f58b X-Archives-Hash: befee6a0fb578ffd0ed3d3b0a9b4c50c commit: fcc4281c0eacb8d3e125ed2c597c7d22ed2da640 Author: Tupone Alfredo gentoo org> AuthorDate: Sat Oct 24 15:43:01 2015 +0000 Commit: Alfredo Tupone gentoo org> CommitDate: Sat Oct 24 15:43:01 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fcc4281c games-rpg/freedroid: compile with format-security. Bug #544366 Package-Manager: portage-2.2.20.1 .../freedroid/files/freedroid-1.0.2-format.patch | 29 ++++++++++++++++++++++ games-rpg/freedroid/freedroid-1.0.2.ebuild | 4 +++ 2 files changed, 33 insertions(+) diff --git a/games-rpg/freedroid/files/freedroid-1.0.2-format.patch b/games-rpg/freedroid/files/freedroid-1.0.2-format.patch new file mode 100644 index 0000000..ebb7089 --- /dev/null +++ b/games-rpg/freedroid/files/freedroid-1.0.2-format.patch @@ -0,0 +1,29 @@ +--- src/init.c.old 2015-10-24 17:37:24.431514375 +0200 ++++ src/init.c 2015-10-24 17:37:43.057157826 +0200 +@@ -554,13 +554,13 @@ + * following gnu-coding standards for command line interfaces */ + case 'v': + printf ("\n%s %s \n", PACKAGE, VERSION); +- printf (copyright); ++ printf ("%s", copyright); + exit (0); + break; + + case 'h': + case '?': +- printf (usage_string); ++ printf ("%s", usage_string); + exit (0); + break; + +--- src/misc.c.old 2015-10-24 17:37:54.368941282 +0200 ++++ src/misc.c 2015-10-24 17:38:10.202638172 +0200 +@@ -889,7 +889,7 @@ + if (db_level <= debug_level) + { + vsnprintf (buffer, 5000, fmt, args); +- fprintf (stderr, buffer); ++ fprintf (stderr, "%s", buffer); + fflush (stderr); + } + diff --git a/games-rpg/freedroid/freedroid-1.0.2.ebuild b/games-rpg/freedroid/freedroid-1.0.2.ebuild index dde856f..86e8499 100644 --- a/games-rpg/freedroid/freedroid-1.0.2.ebuild +++ b/games-rpg/freedroid/freedroid-1.0.2.ebuild @@ -22,6 +22,10 @@ DEPEND="media-libs/libsdl[joystick,sound,video] media-libs/sdl-mixer[mod,vorbis] media-libs/libvorbis" +src_prepare() { + epatch "${FILESDIR}"/${P}-format.patch +} + src_install() { default find "${D}" -name "Makefile*" -exec rm -f '{}' +