diff options
Diffstat (limited to 'dev-tex')
-rw-r--r-- | dev-tex/tex4ht/files/tex4ht-format-security.patch | 22 | ||||
-rw-r--r-- | dev-tex/tex4ht/tex4ht-20090611_p1038-r10.ebuild | 3 |
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#" \ |