From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id E4A051382C5 for ; Wed, 24 Jun 2020 10:44:00 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 196C9E0931; Wed, 24 Jun 2020 10:44:00 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 04155E0931 for ; Wed, 24 Jun 2020 10:43:59 +0000 (UTC) Received: from oystercatcher.gentoo.org (unknown [IPv6:2a01:4f8:202:4333:225:90ff:fed9:fc84]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id B72D234F1AB for ; Wed, 24 Jun 2020 10:43:58 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EE89829A for ; Wed, 24 Jun 2020 10:43:53 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1592995418.448881c0e55667abc563f6b78058ea1a489a24ba.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tex/tex4ht/files/, dev-tex/tex4ht/ X-VCS-Repository: repo/gentoo X-VCS-Files: dev-tex/tex4ht/files/tex4ht-format-security.patch dev-tex/tex4ht/tex4ht-20090611_p1038-r10.ebuild X-VCS-Directories: dev-tex/tex4ht/ dev-tex/tex4ht/files/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 448881c0e55667abc563f6b78058ea1a489a24ba X-VCS-Branch: master Date: Wed, 24 Jun 2020 10:43:53 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: b354430b-c198-4b02-8dd5-83a5813e9131 X-Archives-Hash: ab81e70c128f423a072f077bc3627446 commit: 448881c0e55667abc563f6b78058ea1a489a24ba Author: Ulrich Müller gentoo org> AuthorDate: Wed Jun 24 10:12:20 2020 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Wed Jun 24 10:43:38 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=448881c0 dev-tex/tex4ht: Fix compilation with format-security. Closes: https://bugs.gentoo.org/554636 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Ulrich Müller gentoo.org> dev-tex/tex4ht/files/tex4ht-format-security.patch | 22 ++++++++++++++++++++++ dev-tex/tex4ht/tex4ht-20090611_p1038-r10.ebuild | 3 ++- 2 files changed, 24 insertions(+), 1 deletion(-) diff --git a/dev-tex/tex4ht/files/tex4ht-format-security.patch b/dev-tex/tex4ht/files/tex4ht-format-security.patch new file mode 100644 index 00000000000..fde075ce33d --- /dev/null +++ b/dev-tex/tex4ht/files/tex4ht-format-security.patch @@ -0,0 +1,22 @@ +https://bugs.gentoo.org/554636 + +--- a/src/htcmd.c ++++ b/src/htcmd.c +@@ -418,7 +418,7 @@ + #undef SEP + #endif + { (IGNORED) fprintf(stderr,"--- error --- "); +- (IGNORED) fprintf(stderr, warn_err_mssg[n]); ++ (IGNORED) fprintf(stderr, "%s", warn_err_mssg[n]); + exit(EXIT_FAILURE); + } + +@@ -439,7 +439,7 @@ + #undef SEP + #endif + { (IGNORED) fprintf(stderr,"--- error --- "); +- (IGNORED) fprintf(stderr, warn_err_mssg[n]); ++ (IGNORED) fprintf(stderr, "%s", warn_err_mssg[n]); + exit(EXIT_FAILURE); + } + diff --git a/dev-tex/tex4ht/tex4ht-20090611_p1038-r10.ebuild b/dev-tex/tex4ht/tex4ht-20090611_p1038-r10.ebuild index e3b343dc41e..73b16a84d59 100644 --- a/dev-tex/tex4ht/tex4ht-20090611_p1038-r10.ebuild +++ b/dev-tex/tex4ht/tex4ht-20090611_p1038-r10.ebuild @@ -33,10 +33,11 @@ BDEPEND="virtual/pkgconfig java? ( >=virtual/jdk-1.5 )" S="${WORKDIR}/${MY_P}" +PATCHES=("${FILESDIR}"/${PN}-format-security.patch) src_prepare() { cp -a "${WORKDIR}/texmf-dist/"* texmf/ || die - eapply_user + default cd "${S}/texmf/tex4ht/base/unix" || die sed -i \ -e "s#~/tex4ht.dir#${EPREFIX}/usr/share#" \