summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Müller <ulm@gentoo.org>2020-06-24 12:12:20 +0200
committerUlrich Müller <ulm@gentoo.org>2020-06-24 12:43:38 +0200
commit448881c0e55667abc563f6b78058ea1a489a24ba (patch)
treef05556cd642bc81fd8a76b86235dfb87c793bfff /dev-tex
parentdev-tex/tex4ht: Update texmf from TeXLive. (diff)
downloadgentoo-448881c0e55667abc563f6b78058ea1a489a24ba.tar.gz
gentoo-448881c0e55667abc563f6b78058ea1a489a24ba.tar.bz2
gentoo-448881c0e55667abc563f6b78058ea1a489a24ba.zip
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@gentoo.org>
Diffstat (limited to 'dev-tex')
-rw-r--r--dev-tex/tex4ht/files/tex4ht-format-security.patch22
-rw-r--r--dev-tex/tex4ht/tex4ht-20090611_p1038-r10.ebuild3
2 files changed, 24 insertions, 1 deletions
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 000000000000..fde075ce33d3
--- /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 e3b343dc41e2..73b16a84d595 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#" \