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 31C351386F2 for ; Mon, 10 Aug 2015 22:52:56 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4E137957D4; Mon, 10 Aug 2015 22:52:54 +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 AC75F957D4 for ; Mon, 10 Aug 2015 22:52:53 +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 EBE84340B74 for ; Mon, 10 Aug 2015 22:52:52 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 98460144 for ; Mon, 10 Aug 2015 22:52:51 +0000 (UTC) From: "Michael Weber" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Michael Weber" Message-ID: <1439247165.1dc8dafb477cabeecc8d46bf6a65bec6e289e4b0.xmw@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-text/mupdf/, app-text/mupdf/files/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-text/mupdf/files/mupdf-1.5-format-security-error.patch app-text/mupdf/mupdf-1.5-r1.ebuild X-VCS-Directories: app-text/mupdf/ app-text/mupdf/files/ X-VCS-Committer: xmw X-VCS-Committer-Name: Michael Weber X-VCS-Revision: 1dc8dafb477cabeecc8d46bf6a65bec6e289e4b0 X-VCS-Branch: master Date: Mon, 10 Aug 2015 22:52:51 +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: dbcac517-bd1d-4200-abaa-da42ea4fd7d8 X-Archives-Hash: 4ee2b15898e0102159ab7a07b0aa1f5d commit: 1dc8dafb477cabeecc8d46bf6a65bec6e289e4b0 Author: Michael Weber gentoo org> AuthorDate: Mon Aug 10 22:52:28 2015 +0000 Commit: Michael Weber gentoo org> CommitDate: Mon Aug 10 22:52:45 2015 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=1dc8dafb app-text/mupdf: fix format-security (bug 556830). Package-Manager: portage-2.2.20 .../files/mupdf-1.5-format-security-error.patch | 22 ++++++++++++++++++++++ app-text/mupdf/mupdf-1.5-r1.ebuild | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/app-text/mupdf/files/mupdf-1.5-format-security-error.patch b/app-text/mupdf/files/mupdf-1.5-format-security-error.patch new file mode 100644 index 0000000..d0dce97 --- /dev/null +++ b/app-text/mupdf/files/mupdf-1.5-format-security-error.patch @@ -0,0 +1,22 @@ +From: =?utf-8?q?=22Kan-Ru_Chen_=28=E9=99=B3=E4=BE=83=E5=A6=82=29=22?= + +Date: Sat, 20 Sep 2014 13:12:16 +0800 +Subject: Fix -Werror=format-security error + +--- + source/pdf/pdf-op-run.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/source/pdf/pdf-op-run.c b/source/pdf/pdf-op-run.c +index 2bea94b..da881b2 100644 +--- a/source/pdf/pdf-op-run.c ++++ b/source/pdf/pdf-op-run.c +@@ -1729,7 +1729,7 @@ run_xobject(pdf_csi *csi, void *state, pdf_obj *resources, pdf_xobject *xobj, co + + /* Rethrow postponed errors */ + if (errmess[0]) +- fz_throw(ctx, FZ_ERROR_GENERIC, errmess); ++ fz_throw(ctx, FZ_ERROR_GENERIC, "%s", errmess); + } + + static void pdf_run_BDC(pdf_csi *csi, void *state) diff --git a/app-text/mupdf/mupdf-1.5-r1.ebuild b/app-text/mupdf/mupdf-1.5-r1.ebuild index 791a17d..b066b49 100644 --- a/app-text/mupdf/mupdf-1.5-r1.ebuild +++ b/app-text/mupdf/mupdf-1.5-r1.ebuild @@ -41,7 +41,8 @@ src_prepare() { "${FILESDIR}"/${PN}-1.3-CFLAGS.patch \ "${FILESDIR}"/${PN}-1.5-old-debian-files.patch \ "${FILESDIR}"/${PN}-1.3-pkg-config.patch \ - "${FILESDIR}"/${PN}-1.5-Makerules-openssl-curl.patch + "${FILESDIR}"/${PN}-1.5-Makerules-openssl-curl.patch \ + "${FILESDIR}"/${PN}-1.5-format-security-error.patch if has_version ">=media-libs/openjpeg-2.1:2" ; then epatch \