From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: dev-tex/tex4ht/files/, dev-tex/tex4ht/
Date: Wed, 24 Jun 2020 10:43:53 +0000 (UTC) [thread overview]
Message-ID: <1592995418.448881c0e55667abc563f6b78058ea1a489a24ba.ulm@gentoo> (raw)
commit: 448881c0e55667abc563f6b78058ea1a489a24ba
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Wed Jun 24 10:12:20 2020 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> 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 <ulm <AT> 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#" \
next reply other threads:[~2020-06-24 10:44 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-06-24 10:43 Ulrich Müller [this message]
-- strict thread matches above, loose matches on Subject: below --
2020-06-30 7:43 [gentoo-commits] repo/gentoo:master commit in: dev-tex/tex4ht/files/, dev-tex/tex4ht/ Ulrich Müller
2023-10-15 17:14 Ulrich Müller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1592995418.448881c0e55667abc563f6b78058ea1a489a24ba.ulm@gentoo \
--to=ulm@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox