summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas Sturmlechner <asturm@gentoo.org>2019-01-16 21:12:57 +0100
committerAndreas Sturmlechner <asturm@gentoo.org>2019-02-16 22:44:56 +0100
commit280476dac64cd07b1db5dda47c9056494c2d156b (patch)
treec4ab42647cf274bea38f346f1eafd40dd4109e27
parentapp-text/texlive-core: Fix build with poppler-0.71 and poppler-0.72 (diff)
downloadgentoo-280476dac64cd07b1db5dda47c9056494c2d156b.tar.gz
gentoo-280476dac64cd07b1db5dda47c9056494c2d156b.tar.bz2
gentoo-280476dac64cd07b1db5dda47c9056494c2d156b.zip
app-text/texlive-core: Fix build with poppler-0.73
Closes: https://bugs.gentoo.org/675448 Package-Manager: Portage-2.3.56, Repoman-2.3.12 Signed-off-by: Andreas Sturmlechner <asturm@gentoo.org>
-rw-r--r--app-text/texlive-core/files/texlive-core-2017-poppler073.patch74
-rw-r--r--app-text/texlive-core/texlive-core-2017-r4.ebuild2
2 files changed, 75 insertions, 1 deletions
diff --git a/app-text/texlive-core/files/texlive-core-2017-poppler073.patch b/app-text/texlive-core/files/texlive-core-2017-poppler073.patch
new file mode 100644
index 000000000000..487ecc0129c1
--- /dev/null
+++ b/app-text/texlive-core/files/texlive-core-2017-poppler073.patch
@@ -0,0 +1,74 @@
+From b3df00dcf7332ae9b64f019278af8708c1ced284 Mon Sep 17 00:00:00 2001
+From: Andreas Sturmlechner <asturm@gentoo.org>
+Date: Wed, 16 Jan 2019 21:10:09 +0100
+Subject: [PATCH] Fix build with poppler-0.73
+
+---
+ texk/web2c/luatexdir/image/pdftoepdf.w | 2 +-
+ texk/web2c/luatexdir/lua/lepdflib.cc | 8 ++++----
+ texk/web2c/pdftexdir/pdftosrc.cc | 2 +-
+ 3 files changed, 6 insertions(+), 6 deletions(-)
+
+diff --git a/texk/web2c/luatexdir/image/pdftoepdf.w b/texk/web2c/luatexdir/image/pdftoepdf.w
+index 2f143068..10ed9879 100644
+--- a/texk/web2c/luatexdir/image/pdftoepdf.w
++++ b/texk/web2c/luatexdir/image/pdftoepdf.w
+@@ -29,7 +29,7 @@
+ the functions of poppler, which happens to be written in C++.
+ */
+
+-extern void md5(Guchar *msg, int msgLen, Guchar *digest);
++extern void md5(unsigned char *msg, int msgLen, unsigned char *digest);
+
+ static bool isInit = false;
+
+diff --git a/texk/web2c/luatexdir/lua/lepdflib.cc b/texk/web2c/luatexdir/lua/lepdflib.cc
+index 6b24a39b..87078fc5 100644
+--- a/texk/web2c/luatexdir/lua/lepdflib.cc
++++ b/texk/web2c/luatexdir/lua/lepdflib.cc
+@@ -2867,12 +2867,12 @@ m_poppler_get_GUINT(Attribute,getRevision);
+
+ static int m_Attribute_setRevision(lua_State * L)
+ {
+- Guint i;
++ unsigned int i;
+ udstruct *uin;
+ uin = (udstruct *) luaL_checkudata(L, 1, M_Attribute);
+ if (uin->pd != NULL && uin->pd->pc != uin->pc)
+ pdfdoc_changed_error(L);
+- i = (Guint) luaL_checkint(L, 2);
++ i = (unsigned int) luaL_checkint(L, 2);
+ ((Attribute *) uin->d)->setRevision(i);
+ return 0;
+ }
+@@ -3057,12 +3057,12 @@ static int m_StructElement_getTypeName(lua_State * L)
+
+ static int m_StructElement_setRevision(lua_State * L)
+ {
+- Guint i;
++ unsigned int i;
+ udstruct *uin;
+ uin = (udstruct *) luaL_checkudata(L, 1, M_StructElement);
+ if (uin->pd != NULL && uin->pd->pc != uin->pc)
+ pdfdoc_changed_error(L);
+- i = (Guint) luaL_checkint(L, 2);
++ i = (unsigned int) luaL_checkint(L, 2);
+ ((StructElement *) uin->d)->setRevision(i);
+ return 0;
+ }
+diff --git a/texk/web2c/pdftexdir/pdftosrc.cc b/texk/web2c/pdftexdir/pdftosrc.cc
+index bad1b78f..295c4e66 100644
+--- a/texk/web2c/pdftexdir/pdftosrc.cc
++++ b/texk/web2c/pdftexdir/pdftosrc.cc
+@@ -156,7 +156,7 @@ int main(int argc, char *argv[])
+ Object objStr, obj1, obj2;
+ int nObjects, first, n;
+ int localOffset = 0;
+- Guint firstOffset;
++ unsigned int firstOffset;
+
+ objStr = xref->fetch(e->offset, 0);
+ assert(objStr.isStream());
+--
+2.20.1
+
diff --git a/app-text/texlive-core/texlive-core-2017-r4.ebuild b/app-text/texlive-core/texlive-core-2017-r4.ebuild
index 6c88e0650800..e0cf232cbf42 100644
--- a/app-text/texlive-core/texlive-core-2017-r4.ebuild
+++ b/app-text/texlive-core/texlive-core-2017-r4.ebuild
@@ -167,7 +167,7 @@ src_prepare() {
epatch "${FILESDIR}/${P}-poppler064.patch"
if has_version ">=app-text/poppler-0.69.0"; then
- epatch "${FILESDIR}"/${P}-poppler0{69,71,72}.patch # bug #672854
+ epatch "${FILESDIR}"/${P}-poppler0{69,71,72,73}.patch # bugs #672854, 675448
fi
sed -i \