[arch-commits] Commit in texlive-bin/trunk (PKGBUILD texlive-poppler-0.71.patch)

Antonio Rojas arojas at archlinux.org
Thu Nov 1 23:28:36 UTC 2018


    Date: Thursday, November 1, 2018 @ 23:28:35
  Author: arojas
Revision: 337707

Fix build with poppler 0.71

Added:
  texlive-bin/trunk/texlive-poppler-0.71.patch
Modified:
  texlive-bin/trunk/PKGBUILD

----------------------------+
 PKGBUILD                   |    5 +++++
 texlive-poppler-0.71.patch |   12 ++++++++++++
 2 files changed, 17 insertions(+)

Modified: PKGBUILD
===================================================================
--- PKGBUILD	2018-11-01 22:53:00 UTC (rev 337706)
+++ PKGBUILD	2018-11-01 23:28:35 UTC (rev 337707)
@@ -14,11 +14,13 @@
 source=("https://sources.archlinux.org/other/texlive/texlive-bin-source-${pkgver}.tar.xz"
         "poppler-compat-fixes-up-to-0.70.patch"
         "luatex-poppler-0.70-const-fixes.patch"
+        "texlive-poppler-0.71.patch"
         "freetype-pkgconfig.patch"
         "synctex-missing-header.patch")
 sha256sums=('06d7a1c939cf7d6035850cefca1d01898ae51a879e20db684a202fd507a0cae5'
             '1a76b4be5544e431b60dace28169870a8b275e6d80323f9ef7f49b7da8df0b29'
             'f1d8b23f3072001fae5f2147aa4a50520d89fbc5b683c0da10b1417e52173c7a'
+            'd8d2fde2f0978238a923b95d063adb7c84e8abde9ac808166bcfa0e3fc8a9c98'
             'bed44f4ccda369410e90eac527cf44b8c1afda7d987ae521b4fd5edb425eef3e'
             'b6c81eb091b5910226e0359768edd178680debee56b63ab0a3753c3429c28ab0')
 
@@ -40,6 +42,9 @@
 
     # upstream compat fixes for latest poppler
     patch -Np1 -i "${srcdir}/poppler-compat-fixes-up-to-0.70.patch"
+    # fix build with poppler 0.71
+    find texk/web2c/{lua,pdf}texdir -type f | xargs sed -e 's|gTrue|true|g' -e 's|gFalse|false|g' -e 's|GBool|bool|g' -i
+    patch -p1 -i "${srcdir}/texlive-poppler-0.71.patch"
     cp -pv texk/web2c/pdftexdir/pdftoepdf{-poppler0.70.0,}.cc
     cp -pv texk/web2c/pdftexdir/pdftosrc{-newpoppler,}.cc
 

Added: texlive-poppler-0.71.patch
===================================================================
--- texlive-poppler-0.71.patch	                        (rev 0)
+++ texlive-poppler-0.71.patch	2018-11-01 23:28:35 UTC (rev 337707)
@@ -0,0 +1,12 @@
+--- source/texk/web2c/luatexdir/lua/lepdflib.cc.orig    2018-11-01 22:46:43.868534355 +0000
++++ source/texk/web2c/luatexdir/lua/lepdflib.cc 2018-11-01 22:48:17.358815525 +0000
+@@ -240,7 +240,7 @@
+        if (uobj->pd != NULL && uobj->pd->pc != uobj->pc)
+           pdfdoc_changed_error(L);
+        uout = new_Attribute_userdata(L);
+-       uout->d = new Attribute(n, nlen, (Object *)uobj->d);
++       uout->d = new Attribute((GooString)n, (Object *)uobj->d);
+        uout->atype = ALLOC_LEPDF;
+        uout->pc = uobj->pc;
+        uout->pd = uobj->pd;
+



More information about the arch-commits mailing list