summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTupone Alfredo <tupone@gentoo.org>2015-11-11 09:40:13 +0100
committerTupone Alfredo <tupone@gentoo.org>2015-11-11 09:40:52 +0100
commita9483ab7df5051c9fad56a462fc0b3667f29390b (patch)
treef706e0de5dc39308e671a75244cc5da274afa633 /games-emulation/nestopia
parentdev-python/werkzeug: Version Bump (diff)
downloadgentoo-a9483ab7df5051c9fad56a462fc0b3667f29390b.tar.gz
gentoo-a9483ab7df5051c9fad56a462fc0b3667f29390b.tar.bz2
gentoo-a9483ab7df5051c9fad56a462fc0b3667f29390b.zip
games-emulation/nestopia: Compile with format-security. Bug #544356
Package-Manager: portage-2.2.20.1
Diffstat (limited to 'games-emulation/nestopia')
-rw-r--r--games-emulation/nestopia/files/nestopia-1.46.2-format.patch11
-rw-r--r--games-emulation/nestopia/nestopia-1.46.2.ebuild1
2 files changed, 12 insertions, 0 deletions
diff --git a/games-emulation/nestopia/files/nestopia-1.46.2-format.patch b/games-emulation/nestopia/files/nestopia-1.46.2-format.patch
new file mode 100644
index 000000000000..7c8a9027aec5
--- /dev/null
+++ b/games-emulation/nestopia/files/nestopia-1.46.2-format.patch
@@ -0,0 +1,11 @@
+--- source/unix/gtkui/gtkui.cpp.old 2015-11-11 09:13:57.417684436 +0100
++++ source/unix/gtkui/gtkui.cpp 2015-11-11 09:14:12.176407155 +0100
+@@ -317,7 +317,7 @@
+ GTK_DIALOG_DESTROY_WITH_PARENT,
+ GTK_MESSAGE_INFO,
+ GTK_BUTTONS_OK,
+- message);
++ "%s", message);
+ gtk_dialog_run(GTK_DIALOG(messagewindow));
+ gtk_widget_destroy(messagewindow);
+ }
diff --git a/games-emulation/nestopia/nestopia-1.46.2.ebuild b/games-emulation/nestopia/nestopia-1.46.2.ebuild
index d5d8f73a34c3..c94c5749a93a 100644
--- a/games-emulation/nestopia/nestopia-1.46.2.ebuild
+++ b/games-emulation/nestopia/nestopia-1.46.2.ebuild
@@ -38,6 +38,7 @@ src_prepare() {
-e "/^BINDIR / s:=.*:=${GAMES_BINDIR}:" \
-e "/^DATADIR / s:=.*:=${GAMES_DATADIR}/${PN}:" \
Makefile || die
+ epatch "${FILESDIR}"/${P}-format.patch
}
src_install() {