summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch28
-rw-r--r--media-libs/libgii/libgii-1.0.2-r4.ebuild (renamed from media-libs/libgii/libgii-1.0.2-r3.ebuild)10
2 files changed, 35 insertions, 3 deletions
diff --git a/media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch b/media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch
new file mode 100644
index 000000000000..5fab014afb06
--- /dev/null
+++ b/media-libs/libgii/files/libgii-1.0.2-Wformat-security.patch
@@ -0,0 +1,28 @@
+--- a/input/linux_mouse/input.c
++++ b/input/linux_mouse/input.c
+@@ -251,7 +251,7 @@ static int do_mouse_open(gii_input *inp, char *filename,
+ " device may not work as expected\n");
+ #endif /* HAVE_TIOCMSET */
+ }
+- if (dowarn) fprintf(stderr, serialfailstr);
++ if (dowarn) fprintf(stderr, "%s", serialfailstr);
+ }
+
+ return 0;
+--- a/input/lk201/input.c
++++ b/input/lk201/input.c
+@@ -256,12 +256,12 @@ do_lk201_open(gii_input *inp, const char *filename)
+ }
+ else
+ {
+- fprintf(stderr, tcsetattrfailstr);
++ fprintf(stderr, "%s", tcsetattrfailstr);
+ }
+ }
+ else
+ {
+- fprintf(stderr, tcgetattrfailstr);
++ fprintf(stderr, "%s", tcgetattrfailstr);
+ }
+
+ /* dump and characters currently in the buffer */
diff --git a/media-libs/libgii/libgii-1.0.2-r3.ebuild b/media-libs/libgii/libgii-1.0.2-r4.ebuild
index c73877f9edd8..6fbfcdcd2e1a 100644
--- a/media-libs/libgii/libgii-1.0.2-r3.ebuild
+++ b/media-libs/libgii/libgii-1.0.2-r4.ebuild
@@ -18,14 +18,18 @@ RDEPEND="
X? (
>=x11-libs/libX11-1.6.2
>=x11-libs/libXxf86dga-1.1.4
- )"
-DEPEND="${RDEPEND}
- kernel_linux? ( >=sys-kernel/linux-headers-2.6.11 )"
+ )
+"
+DEPEND="
+ ${RDEPEND}
+ kernel_linux? ( >=sys-kernel/linux-headers-2.6.11 )
+"
PATCHES=(
"${FILESDIR}"/${PN}-0.9.0-linux26-headers.patch
"${FILESDIR}"/${P}-configure-cpuid-pic.patch
"${FILESDIR}"/${P}-libtool_1.5_compat.patch
+ "${FILESDIR}"/${P}-Wformat-security.patch
)
src_prepare() {