pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/print/luatex luatex: fix poppler-0.74.0 "Guint" type r...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/67f48f19dbdd
branches:  trunk
changeset: 329888:67f48f19dbdd
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sun Feb 17 11:17:37 2019 +0000

description:
luatex: fix poppler-0.74.0 "Guint" type removal fallout

diffstat:

 print/luatex/distinfo                                             |   6 +-
 print/luatex/patches/patch-texk_web2c_luatexdir_image_pdftoepdf.w |   9 +-
 print/luatex/patches/patch-texk_web2c_luatexdir_lua_lepdflib.cc   |  33 +++++++++-
 3 files changed, 40 insertions(+), 8 deletions(-)

diffs (91 lines):

diff -r 1b61a0e8aebb -r 67f48f19dbdd print/luatex/distinfo
--- a/print/luatex/distinfo     Sun Feb 17 10:17:58 2019 +0000
+++ b/print/luatex/distinfo     Sun Feb 17 11:17:37 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.33 2018/12/11 13:35:11 ryoon Exp $
+$NetBSD: distinfo,v 1.34 2019/02/17 11:17:37 tnn Exp $
 
 SHA1 (texlive-20180414-source.tar.xz) = 81bdd9999b6ab860d1d3c388cf27062aba960255
 RMD160 (texlive-20180414-source.tar.xz) = 0ff63bbd7f8a0fb6417089f5d1ae1e4124a1dd95
@@ -8,5 +8,5 @@
 SHA1 (patch-libs_luajit_LuaJIT-src_src_host_buildvm__asm.c) = 34fa742ed696f97df637c5086bf1faf3d718cb69
 SHA1 (patch-libs_luajit_LuaJIT-src_src_vm__x86.dasc) = 491d33adbbaab8b2b81a65a8d7ba30aee775b75f
 SHA1 (patch-texk_web2c_luatexdir_font_writet1.w) = c5d9b0bf411ff67028cbeee629bebc95f05c94e3
-SHA1 (patch-texk_web2c_luatexdir_image_pdftoepdf.w) = e0c03f51151389e89c4a9a2cc8bf7d25051df2b7
-SHA1 (patch-texk_web2c_luatexdir_lua_lepdflib.cc) = 5af405d312f7042cf3620bd92039ae3b92ce4d83
+SHA1 (patch-texk_web2c_luatexdir_image_pdftoepdf.w) = d3e5d16e75acefbb5a2bad56074d86928dd23061
+SHA1 (patch-texk_web2c_luatexdir_lua_lepdflib.cc) = e1dafa2bdc0a92e485839b86006bd4b1a8076ee8
diff -r 1b61a0e8aebb -r 67f48f19dbdd print/luatex/patches/patch-texk_web2c_luatexdir_image_pdftoepdf.w
--- a/print/luatex/patches/patch-texk_web2c_luatexdir_image_pdftoepdf.w Sun Feb 17 10:17:58 2019 +0000
+++ b/print/luatex/patches/patch-texk_web2c_luatexdir_image_pdftoepdf.w Sun Feb 17 11:17:37 2019 +0000
@@ -1,10 +1,13 @@
-$NetBSD: patch-texk_web2c_luatexdir_image_pdftoepdf.w,v 1.7 2018/12/11 13:35:12 ryoon Exp $
+$NetBSD: patch-texk_web2c_luatexdir_image_pdftoepdf.w,v 1.8 2019/02/17 11:17:37 tnn Exp $
 
 --- texk/web2c/luatexdir/image/pdftoepdf.w.orig        2018-01-17 18:00:12.000000000 +0000
 +++ texk/web2c/luatexdir/image/pdftoepdf.w
-@@ -35,7 +35,7 @@
+@@ -33,9 +33,9 @@
  
- extern void md5(Guchar *msg, int msgLen, Guchar *digest);
+ */
+ 
+-extern void md5(Guchar *msg, int msgLen, Guchar *digest);
++extern void md5(unsigned char *msg, int msgLen, unsigned char *digest);
  
 -static GBool isInit = gFalse;
 +static bool isInit = false;
diff -r 1b61a0e8aebb -r 67f48f19dbdd print/luatex/patches/patch-texk_web2c_luatexdir_lua_lepdflib.cc
--- a/print/luatex/patches/patch-texk_web2c_luatexdir_lua_lepdflib.cc   Sun Feb 17 10:17:58 2019 +0000
+++ b/print/luatex/patches/patch-texk_web2c_luatexdir_lua_lepdflib.cc   Sun Feb 17 11:17:37 2019 +0000
@@ -1,4 +1,4 @@
-$NetBSD: patch-texk_web2c_luatexdir_lua_lepdflib.cc,v 1.7 2018/12/11 13:35:12 ryoon Exp $
+$NetBSD: patch-texk_web2c_luatexdir_lua_lepdflib.cc,v 1.8 2019/02/17 11:17:37 tnn Exp $
 
 --- texk/web2c/luatexdir/lua/lepdflib.cc.orig  2018-02-14 14:44:38.000000000 +0000
 +++ texk/web2c/luatexdir/lua/lepdflib.cc
@@ -191,6 +191,21 @@
          uout->pc = uin->pc;
          uout->pd = uin->pd;
      } else
+@@ -3024,12 +3026,12 @@ m_poppler_get_GUINT(Attribute,getRevisio
+ 
+ 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;
+ }
 @@ -3038,12 +3040,12 @@ m_poppler_get_BOOL(Attribute, isHidden);
  
  static int m_Attribute_setHidden(lua_State * L)
@@ -215,7 +230,21 @@
      Ref *r;
      udstruct *uin, *uout;
      uin = (udstruct *) luaL_checkudata(L, 1, M_StructElement);
-@@ -3226,16 +3228,16 @@ static int m_StructElement_setRevision(l
+@@ -3214,28 +3216,28 @@ static int m_StructElement_getTypeName(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;
+ }
  
  static int m_StructElement_getText(lua_State * L)
  {



Home | Main Index | Thread Index | Old Index