crux-commits
Threads by month
- ----- 2025 -----
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2012 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2011 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2010 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2009 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2008 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2007 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2006 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
February 2019
- 1 participants
- 748 discussions
commit 542c78372cddeb35f51ae3cb1e8092886caaec24
Author: Thomas Penteker <tek(a)serverop.de>
Date: Thu Jan 17 00:31:04 2019 +0100
jq: initial import
diff --git a/jq/.footprint b/jq/.footprint
new file mode 100644
index 00000000..63817e87
--- /dev/null
+++ b/jq/.footprint
@@ -0,0 +1,27 @@
+drwxr-xr-x root/root usr/
+drwxr-xr-x root/root usr/bin/
+-rwxr-xr-x root/root usr/bin/jq
+-rwxr-xr-x root/root usr/bin/onig-config
+drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/…
[View More]include/jq.h
+-rw-r--r-- root/root usr/include/jv.h
+-rw-r--r-- root/root usr/include/oniggnu.h
+-rw-r--r-- root/root usr/include/onigposix.h
+-rw-r--r-- root/root usr/include/oniguruma.h
+drwxr-xr-x root/root usr/lib/
+-rw-r--r-- root/root usr/lib/libjq.a
+-rwxr-xr-x root/root usr/lib/libjq.la
+lrwxrwxrwx root/root usr/lib/libjq.so -> libjq.so.1.0.4
+lrwxrwxrwx root/root usr/lib/libjq.so.1 -> libjq.so.1.0.4
+-rwxr-xr-x root/root usr/lib/libjq.so.1.0.4
+-rw-r--r-- root/root usr/lib/libonig.a
+-rwxr-xr-x root/root usr/lib/libonig.la
+lrwxrwxrwx root/root usr/lib/libonig.so -> libonig.so.4.0.0
+lrwxrwxrwx root/root usr/lib/libonig.so.4 -> libonig.so.4.0.0
+-rwxr-xr-x root/root usr/lib/libonig.so.4.0.0
+drwxr-xr-x root/root usr/lib/pkgconfig/
+-rw-r--r-- root/root usr/lib/pkgconfig/oniguruma.pc
+drwxr-xr-x root/root usr/share/
+drwxr-xr-x root/root usr/share/man/
+drwxr-xr-x root/root usr/share/man/man1/
+-rw-r--r-- root/root usr/share/man/man1/jq.1.gz
diff --git a/jq/.signature b/jq/.signature
new file mode 100644
index 00000000..ea197329
--- /dev/null
+++ b/jq/.signature
@@ -0,0 +1,5 @@
+untrusted comment: verify with /etc/ports/contrib.pub
+RWSagIOpLGJF31Qe6MAvLbd5V+neQCrUSaWH8bGHRyb9he74v64zEnuizRdg3Y9lT3xZpRDJ6gEoNzeoH4xmlOG+dM8kOV0edww=
+SHA256 (Pkgfile) = 8c3c611f2e9f5bf31eb9842a64a9f4b90768e68dbf8c9af56cf2280cf5f009ad
+SHA256 (.footprint) = 7a08ca1a12e1920ea0309620e381e7116fdc72e51b041c6c628a165a2b362668
+SHA256 (jq-1.6.tar.gz) = 5de8c8e29aaa3fb9cc6b47bb27299f271354ebb72514e3accadc7d38b5bbaa72
diff --git a/jq/Pkgfile b/jq/Pkgfile
new file mode 100644
index 00000000..f7d8dc97
--- /dev/null
+++ b/jq/Pkgfile
@@ -0,0 +1,24 @@
+# Description: Lightweight and flexible command-line JSON processor
+# URL: https://stedolan.github.io/jq/
+# Maintainer: Thomas Penteker, tek at serverop dot de
+# Depends on:
+
+name=jq
+version=1.6
+release=1
+source=(https://github.com/stedolan/jq/releases/download/jq-$version/jq-$version.tar.gz)
+
+build() {
+ cd $name-$version
+
+ autoreconf -i modules/oniguruma
+
+ ./configure --prefix=/usr \
+ --disable-maintainer-mode \
+ --with-oniguruma=builtin
+
+ make
+ make DESTDIR=$PKG install
+
+ rm -r $PKG/usr/share/doc
+}
[View Less]
1
0
commit 3d4dad7b92435c4a3828999dfb1c54b402b7bc50
Author: John Vogel <jvogel4(a)stny.rr.com>
Date: Sun Jan 13 17:54:15 2019 -0500
xsel: remove -Werror from CFLAGS
diff --git a/xsel/.signature b/xsel/.signature
index e7984994..682a9788 100644
--- a/xsel/.signature
+++ b/xsel/.signature
@@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF33YFDRQ5bfLYkueOnoSfBElh/NaPOwMunt/uAH2I1C5UWN8g/Ml3U3VDI32HRZ/N3DTdHSEs3ZmZKcvIJlw3Tgo=
-SHA256 (Pkgfile) = …
[View More]ff1e274418b131407a550619cffa80d5918a876016c455fec63a520cca24a3c6
+RWSagIOpLGJF31qXckvR1tX4pqUzufwtsyhZVglmYF3kQIAKtANus4xhKnBUNvfl8DphRV1wHQCGilAQp5FcXv109+TDi5QSRwE=
+SHA256 (Pkgfile) = 5e12d9786162c310bd8d37ee972b99b623431340d92d0150c6a5352c4f129e54
SHA256 (.footprint) = d7bff0629a867d6897741647434e58a83ff6c7b54b347601366ba5ceca22df18
SHA256 (xsel-1.2.0+git9bfc13d.tar.gz) = 557d4e51fd6c29e28363940e3723fca824de80d4cac15dabd763bfba2d2bd907
diff --git a/xsel/Pkgfile b/xsel/Pkgfile
index c4011393..bb4b9fb4 100644
--- a/xsel/Pkgfile
+++ b/xsel/Pkgfile
@@ -5,11 +5,12 @@
name=xsel
version=1.2.0+git9bfc13d
-release=1
+release=2
source=(http://github.com/kfish/xsel/archive/${version#*+git}/$name-$versio…
build() {
cd $name-${version#*+git}*
+ sed -e 's,-Wall -Werror -g,-Wall -g,' -i configure.ac
autoreconf -fi
./configure --prefix=/usr
make
[View Less]
1
0
commit 24e4c1f4ab7c5e1eed785ed72a7ae3a5111c5e3c
Author: John Vogel <jvogel4(a)stny.rr.com>
Date: Sun Jan 13 05:44:31 2019 -0500
mksh: new maintainer
diff --git a/mksh/.signature b/mksh/.signature
index 22400886..98d4cc9c 100644
--- a/mksh/.signature
+++ b/mksh/.signature
@@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF33q+j3lxZ/U1vmWG841p/chi4TkOKTWxvJLMr1/dewu6HvNOb4z8JNsJvnBx5OKtakdwUWNk4n8k35RhIzBGzww=
-SHA256 (Pkgfile) = …
[View More]4e60919f5c722ee625cd588285827b80cacc5e03abed02be7bad6cba02637fe1
+RWSagIOpLGJF31CzUZjcC4Zi9p5Tw0Y7AZS1yGW8Zf/uEMgepaDjAM0s93tkOavUHwuGJGaRLF7zz++zVOmTM1NooEcpl8tnHgw=
+SHA256 (Pkgfile) = 0b7de2afac4f288f5242d38618d81e7abdfce91dd8585c2bcef7626fd3d0d492
SHA256 (.footprint) = dab27860e5f8aaaca226ea0379540970ffeb7e4f3653f9c3dbc02443e6fc45e2
SHA256 (mksh-R56c.tgz) = dd86ebc421215a7b44095dc13b056921ba81e61b9f6f4cdab08ca135d02afb77
diff --git a/mksh/Pkgfile b/mksh/Pkgfile
index bc285750..2ba3a266 100644
--- a/mksh/Pkgfile
+++ b/mksh/Pkgfile
@@ -1,6 +1,6 @@
# Description: The MirBSD Korn Shell
# URL: http://www.mirbsd.org/mksh.htm
-# Maintainer: Manu Kumar, maraku at gmx dot com
+# Maintainer: John Vogel, jvogel4 at stny dot rr dot com
name=mksh
version=R56c
[View Less]
1
0
03 Feb '19
commit 4038063c4e9a6f175de647ec83e76bc00ac3d76c
Author: Danny Rawlins <monster.romster(a)gmail.com>
Date: Sun Jan 13 18:19:04 2019 +1100
inkscape: compile fix for new popper version
diff --git a/inkscape/.signature b/inkscape/.signature
index 32f7c236..c2fcd953 100644
--- a/inkscape/.signature
+++ b/inkscape/.signature
@@ -1,6 +1,7 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF3/V80LMojIBCk1aog+ePZkFtXLWHBq9KshIaiE/+Shjh2Bx2HqESxWU4ZsEDx4Z6ZEpuTmk/…
[View More]PYnWPHrzRiX85AE=
-SHA256 (Pkgfile) = d118947844edd66f1eb565787c6e1eb9b07fb09c4716c57e97439e36f63faa6d
+RWSagIOpLGJF3/Ru9c5lg9dAmpYREBI9V72oj1mrd8TfPp9r6gnrEsSQIJZOeaV1CaqePLYlAydGrDQzc+r+w8LkZC/oGEE6UQI=
+SHA256 (Pkgfile) = 75adb4c930007088c22bc991bd156f826a331abd5ce3b2d96ff2597b6d1a9d5d
SHA256 (.footprint) = a231855b77d8603f16e2a8754074e97f6c430bf80ac8ccaa02b35814f2f4db2b
SHA256 (inkscape-0.92.3.tar.bz2) = 063296c05a65d7a92a0f627485b66221487acfc64a24f712eb5237c4bd7816b2
-SHA256 (poppler-fixes-from-master.patch) = dbe0fa84f990ba76306ec5cda13b3ebe0303f325377ebdb64b061b83d453bd63
+SHA256 (inkscape-poppler.patch) = ff6d3f6b4076fcdb7cf20085844eb318aff54ba6c8da042eac815bcbf02aa558
+SHA256 (inkscape-gtk3.patch) = b8932e5052571b5c4fb381192799a9568857bc02ec9ba9906ebb74d3f876579b
diff --git a/inkscape/Pkgfile b/inkscape/Pkgfile
index e2c6af0a..3f579e9a 100644
--- a/inkscape/Pkgfile
+++ b/inkscape/Pkgfile
@@ -6,27 +6,16 @@
name=inkscape
version=0.92.3
-release=2
+release=3
source=(https://media.inkscape.org/dl/resources/file/$name-$version.tar.bz2
- poppler-fixes-from-master.patch)
+ inkscape-poppler.patch
+ inkscape-gtk3.patch)
build() {
cd $name-$version
- patch -p1 -i $SRC/poppler-fixes-from-master.patch
- sed -i 's| abs(| std::fabs(|g' src/ui/tools/flood-tool.cpp
-
- # Fix build with poppler 0.71
- sed \
- -e 's|gTrue|true|g' \
- -e 's|gFalse|false|g' \
- -e 's|GBool|bool|g' \
- -i src/extension/internal/pdfinput/pdf-parser.*
-
- # Fix build with poppler 0.72
- sed \
- -e 's|getCString|c_str|g' \
- -i src/extension/internal/pdfinput/*
+ patch -p1 -i $SRC/inkscape-poppler.patch
+ patch -p1 -i $SRC/inkscape-gtk3.patch
CXXFLAGS+=' -std=c++11'
diff --git a/inkscape/inkscape-gtk3.patch b/inkscape/inkscape-gtk3.patch
new file mode 100644
index 00000000..2170042d
--- /dev/null
+++ b/inkscape/inkscape-gtk3.patch
@@ -0,0 +1,13 @@
+--- inkscape-0.92.1/configure.ac.orig 2017-06-28 19:16:17.655179973 +0200
++++ inkscape-0.92.1/configure.ac 2017-06-28 20:40:42.491788807 +0200
+@@ -723,8 +723,8 @@
+ if test "x$enable_gtk3" = "xyes"; then
+
+ ink_spell_pkg=
+- if pkg-config --exists gtkspell-3.0; then
+- ink_spell_pkg=gtkspell-3.0
++ if pkg-config --exists gtkspell3-3.0; then
++ ink_spell_pkg=gtkspell3-3.0
+ AC_DEFINE(WITH_GTKSPELL, 1, [enable gtk spelling widget])
+ fi
+
diff --git a/inkscape/inkscape-poppler.patch b/inkscape/inkscape-poppler.patch
new file mode 100644
index 00000000..000ebc16
--- /dev/null
+++ b/inkscape/inkscape-poppler.patch
@@ -0,0 +1,2284 @@
+From a600c6438fef2f4c06f9a4a7d933d99fb054a973 Mon Sep 17 00:00:00 2001
+From: Eduard Braun <eduard.braun2(a)gmx.de>
+Date: Tue, 24 Apr 2018 19:18:26 +0200
+Subject: [PATCH] Fix compilation with poppler 0.64
+
+---
+ src/extension/internal/pdfinput/pdf-parser.cpp | 10 +++++-----
+ src/extension/internal/pdfinput/pdf-parser.h | 2 +-
+ src/extension/internal/pdfinput/svg-builder.cpp | 4 ++--
+ src/extension/internal/pdfinput/svg-builder.h | 3 +--
+ 4 files changed, 9 insertions(+), 10 deletions(-)
+
+diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
+index 15bc2d746d..6c498f9812 100644
+--- a/src/extension/internal/pdfinput/pdf-parser.cpp
++++ b/src/extension/internal/pdfinput/pdf-parser.cpp
+@@ -2582,7 +2582,7 @@ void PdfParser::opShowSpaceText(Object args[], int /*numArgs*/)
+ }
+ }
+
+-void PdfParser::doShowText(GooString *s) {
++void PdfParser::doShowText(const GooString *s) {
+ GfxFont *font;
+ int wMode;
+ double riseX, riseY;
+@@ -2601,7 +2601,7 @@ void PdfParser::doShowText(GooString *s) {
+ font = state->getFont();
+ wMode = font->getWMode();
+
+- builder->beginString(state, s);
++ builder->beginString(state);
+
+ // handle a Type 3 char
+ if (font->getType() == fontType3 && 0) {//out->interpretType3Chars()) {
+@@ -2631,7 +2631,7 @@ void PdfParser::doShowText(GooString *s) {
+ double lineX = state->getLineX();
+ double lineY = state->getLineY();
+ oldParser = parser;
+- p = s->getCString();
++ p = g_strdup(s->getCString());
+ len = s->getLength();
+ while (len > 0) {
+ n = font->getNextChar(p, len, &code,
+@@ -2686,7 +2686,7 @@ void PdfParser::doShowText(GooString *s) {
+
+ } else {
+ state->textTransformDelta(0, state->getRise(), &riseX, &riseY);
+- p = s->getCString();
++ p = g_strdup(s->getCString());
+ len = s->getLength();
+ while (len > 0) {
+ n = font->getNextChar(p, len, &code,
+@@ -2732,7 +2732,7 @@ void PdfParser::opXObject(Object args[], int /*numArgs*/)
+ {
+ Object obj1, obj2, obj3, refObj;
+
+- char *name = args[0].getName();
++ char *name = g_strdup(args[0].getName());
+ #if defined(POPPLER_NEW_OBJECT_API)
+ if ((obj1 = res->lookupXObject(name)).isNull()) {
+ #else
+diff --git a/src/extension/internal/pdfinput/pdf-parser.h b/src/extension/internal/pdfinput/pdf-parser.h
+index e28fecc2e1..f985b15cad 100644
+--- a/src/extension/internal/pdfinput/pdf-parser.h
++++ b/src/extension/internal/pdfinput/pdf-parser.h
+@@ -287,7 +287,7 @@ private:
+ void opMoveShowText(Object args[], int numArgs);
+ void opMoveSetShowText(Object args[], int numArgs);
+ void opShowSpaceText(Object args[], int numArgs);
+- void doShowText(GooString *s);
++ void doShowText(const GooString *s);
+
+ // XObject operators
+ void opXObject(Object args[], int numArgs);
+diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp
+index 158c5ae068..8e5a5f6396 100644
+--- a/src/extension/internal/pdfinput/svg-builder.cpp
++++ b/src/extension/internal/pdfinput/svg-builder.cpp
+@@ -1021,7 +1021,7 @@ void SvgBuilder::updateFont(GfxState *state) {
+ GfxFont *font = state->getFont();
+ // Store original name
+ if (font->getName()) {
+- _font_specification = font->getName()->getCString();
++ _font_specification = g_strdup(font->getName()->getCString());
+ } else {
+ _font_specification = (char*) "Arial";
+ }
+@@ -1362,7 +1362,7 @@ void SvgBuilder::_flushText() {
+ _glyphs.clear();
+ }
+
+-void SvgBuilder::beginString(GfxState *state, GooString * /*s*/) {
++void SvgBuilder::beginString(GfxState *state) {
+ if (_need_font_update) {
+ updateFont(state);
+ }
+diff --git a/src/extension/internal/pdfinput/svg-builder.h b/src/extension/internal/pdfinput/svg-builder.h
+index ad15c9c06f..ed2a4d48e0 100644
+--- a/src/extension/internal/pdfinput/svg-builder.h
++++ b/src/extension/internal/pdfinput/svg-builder.h
+@@ -29,7 +29,6 @@ namespace Inkscape {
+ #include <glibmm/ustring.h>
+
+ #include "CharTypes.h"
+-class GooString;
+ class Function;
+ class GfxState;
+ struct GfxColor;
+@@ -136,7 +135,7 @@ public:
+ void clearSoftMask(GfxState *state);
+
+ // Text handling
+- void beginString(GfxState *state, GooString *s);
++ void beginString(GfxState *state);
+ void endString(GfxState *state);
+ void addChar(GfxState *state, double x, double y,
+ double dx, double dy,
+--
+2.18.1
+
+From 722e121361d0f784083d10e897155b7d4e44e515 Mon Sep 17 00:00:00 2001
+From: Eduard Braun <eduard.braun2(a)gmx.de>
+Date: Wed, 5 Sep 2018 00:31:06 +0200
+Subject: [PATCH] Modified fix for compatibility with poppler 0.64
+
+This is slightly uglier than a600c6438fef2f4c06f9a4a7d933d99fb054a973
+but avoids duplicating strings (which is unnecessary and leaked memory).
+
+It's also closer to what upstream intended with the changes in 0.64.
+---
+ .../internal/pdfinput/pdf-parser.cpp | 19 ++++++++++++++++---
+ src/extension/internal/pdfinput/pdf-parser.h | 6 ++++++
+ .../internal/pdfinput/svg-builder.cpp | 6 +++---
+ src/extension/internal/pdfinput/svg-builder.h | 4 ++--
+ 4 files changed, 27 insertions(+), 8 deletions(-)
+
+diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
+index 5fa21263ab..a3a8ff25a6 100644
+--- a/src/extension/internal/pdfinput/pdf-parser.cpp
++++ b/src/extension/internal/pdfinput/pdf-parser.cpp
+@@ -32,6 +32,7 @@
+ #include "pdf-parser.h"
+ #include "util/units.h"
+
++#include "glib/poppler-features.h"
+ #include "goo/gmem.h"
+ #include "goo/GooString.h"
+ #include "GlobalParams.h"
+@@ -2577,7 +2578,11 @@ void PdfParser::opShowSpaceText(Object args[], int /*numArgs*/)
+ }
+ }
+
++#if POPPLER_CHECK_VERSION(0,64,0)
+ void PdfParser::doShowText(const GooString *s) {
++#else
++void PdfParser::doShowText(GooString *s) {
++#endif
+ GfxFont *font;
+ int wMode;
+ double riseX, riseY;
+@@ -2590,7 +2595,11 @@ void PdfParser::doShowText(const GooString *s) {
+ Object charProc;
+ Dict *resDict;
+ Parser *oldParser;
++#if POPPLER_CHECK_VERSION(0,64,0)
++ const char *p;
++#else
+ char *p;
++#endif
+ int len, n, uLen;
+
+ font = state->getFont();
+@@ -2626,7 +2635,7 @@ void PdfParser::doShowText(const GooString *s) {
+ double lineX = state->getLineX();
+ double lineY = state->getLineY();
+ oldParser = parser;
+- p = g_strdup(s->getCString());
++ p = s->getCString();
+ len = s->getLength();
+ while (len > 0) {
+ n = font->getNextChar(p, len, &code,
+@@ -2681,7 +2690,7 @@ void PdfParser::doShowText(const GooString *s) {
+
+ } else {
+ state->textTransformDelta(0, state->getRise(), &riseX, &riseY);
+- p = g_strdup(s->getCString());
++ p = s->getCString();
+ len = s->getLength();
+ while (len > 0) {
+ n = font->getNextChar(p, len, &code,
+@@ -2727,7 +2736,11 @@ void PdfParser::opXObject(Object args[], int /*numArgs*/)
+ {
+ Object obj1, obj2, obj3, refObj;
+
+- char *name = g_strdup(args[0].getName());
++#if POPPLER_CHECK_VERSION(0,64,0)
++ const char *name = args[0].getName();
++#else
++ char *name = args[0].getName();
++#endif
+ #if defined(POPPLER_NEW_OBJECT_API)
+ if ((obj1 = res->lookupXObject(name)).isNull()) {
+ #else
+diff --git a/src/extension/internal/pdfinput/pdf-parser.h b/src/extension/internal/pdfinput/pdf-parser.h
+index 755e6741b0..b27a29cfbf 100644
+--- a/src/extension/internal/pdfinput/pdf-parser.h
++++ b/src/extension/internal/pdfinput/pdf-parser.h
+@@ -25,6 +25,7 @@ namespace Inkscape {
+ // TODO clean up and remove using:
+ using Inkscape::Extension::Internal::SvgBuilder;
+
++#include "glib/poppler-features.h"
+ #include "goo/gtypes.h"
+ #include "Object.h"
+
+@@ -287,7 +288,12 @@ private:
+ void opMoveShowText(Object args[], int numArgs);
+ void opMoveSetShowText(Object args[], int numArgs);
+ void opShowSpaceText(Object args[], int numArgs);
++#if POPPLER_CHECK_VERSION(0,64,0)
+ void doShowText(const GooString *s);
++#else
++ void doShowText(GooString *s);
++#endif
++
+
+ // XObject operators
+ void opXObject(Object args[], int numArgs);
+diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp
+index 50a7685b89..9d0df7c04d 100644
+--- a/src/extension/internal/pdfinput/svg-builder.cpp
++++ b/src/extension/internal/pdfinput/svg-builder.cpp
+@@ -1020,9 +1020,9 @@ void SvgBuilder::updateFont(GfxState *state) {
+ GfxFont *font = state->getFont();
+ // Store original name
+ if (font->getName()) {
+- _font_specification = g_strdup(font->getName()->getCString());
++ _font_specification = font->getName()->getCString();
+ } else {
+- _font_specification = (char*) "Arial";
++ _font_specification = "Arial";
+ }
+
+ // Prune the font name to get the correct font family name
+@@ -1030,7 +1030,7 @@ void SvgBuilder::updateFont(GfxState *state) {
+ char *font_family = NULL;
+ char *font_style = NULL;
+ char *font_style_lowercase = NULL;
+- char *plus_sign = strstr(_font_specification, "+");
++ const char *plus_sign = strstr(_font_specification, "+");
+ if (plus_sign) {
+ font_family = g_strdup(plus_sign + 1);
+ _font_specification = plus_sign + 1;
+diff --git a/src/extension/internal/pdfinput/svg-builder.h b/src/extension/internal/pdfinput/svg-builder.h
+index 499724a4cd..729cdc944c 100644
+--- a/src/extension/internal/pdfinput/svg-builder.h
++++ b/src/extension/internal/pdfinput/svg-builder.h
+@@ -80,7 +80,7 @@ struct SvgGlyph {
+ bool style_changed; // Set to true if style has to be reset
+ SPCSSAttr *style;
+ int render_mode; // Text render mode
+- char *font_specification; // Pointer to current font specification
++ const char *font_specification; // Pointer to current font specification
+ };
+
+ /**
+@@ -202,7 +202,7 @@ private:
+
+ SPCSSAttr *_font_style; // Current font style
+ GfxFont *_current_font;
+- char *_font_specification;
++ const char *_font_specification;
+ double _font_scaling;
+ bool _need_font_update;
+ Geom::Affine _text_matrix;
+--
+2.18.1
+
+From 402c0274420fe39fd2f3393bc7d8d8879d436358 Mon Sep 17 00:00:00 2001
+From: Thomas Holder <thomas(a)thomas-holder.de>
+Date: Fri, 28 Sep 2018 18:05:30 +0000
+Subject: [PATCH] fix 1789208 poppler 0.69
+
+---
+ CMakeScripts/DefineDependsandFlags.cmake | 12 -----
+ src/extension/internal/pdfinput/pdf-input.cpp | 2 +-
+ src/extension/internal/pdfinput/pdf-input.h | 1 +
+ .../internal/pdfinput/pdf-parser.cpp | 46 ++++++++-----------
+ src/extension/internal/pdfinput/pdf-parser.h | 12 +++--
+ .../pdfinput/poppler-transition-api.h | 39 ++++++++++++++++
+ .../internal/pdfinput/svg-builder.cpp | 22 ++++-----
+ src/extension/internal/pdfinput/svg-builder.h | 3 +-
+ 8 files changed, 80 insertions(+), 57 deletions(-)
+ create mode 100644 src/extension/internal/pdfinput/poppler-transition-api.h
+
+diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
+index 40ca7aa65c..9457d58df0 100644
+--- a/CMakeScripts/DefineDependsandFlags.cmake
++++ b/CMakeScripts/DefineDependsandFlags.cmake
+@@ -126,18 +126,6 @@ if(ENABLE_POPPLER)
+ set(HAVE_POPPLER_GLIB ON)
+ endif()
+ endif()
+- if(POPPLER_VERSION VERSION_GREATER "0.26.0" OR
+- POPPLER_VERSION VERSION_EQUAL "0.26.0")
+- set(POPPLER_EVEN_NEWER_COLOR_SPACE_API ON)
+- endif()
+- if(POPPLER_VERSION VERSION_GREATER "0.29.0" OR
+- POPPLER_VERSION VERSION_EQUAL "0.29.0")
+- set(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API ON)
+- endif()
+- if(POPPLER_VERSION VERSION_GREATER "0.58.0" OR
+- POPPLER_VERSION VERSION_EQUAL "0.58.0")
+- set(POPPLER_NEW_OBJECT_API ON)
+- endif()
+ else()
+ set(ENABLE_POPPLER_CAIRO OFF)
+ endif()
+diff --git a/src/extension/internal/pdfinput/pdf-input.cpp b/src/extension/internal/pdfinput/pdf-input.cpp
+index fa9942230b..21a91fa34f 100644
+--- a/src/extension/internal/pdfinput/pdf-input.cpp
++++ b/src/extension/internal/pdfinput/pdf-input.cpp
+@@ -804,7 +804,7 @@ PdfInput::open(::Inkscape::Extension::Input * /*mod*/, const gchar * uri) {
+ dlg->getImportSettings(prefs);
+
+ // Apply crop settings
+- PDFRectangle *clipToBox = NULL;
++ _POPPLER_CONST PDFRectangle *clipToBox = NULL;
+ double crop_setting;
+ sp_repr_get_double(prefs, "cropTo", &crop_setting);
+
+diff --git a/src/extension/internal/pdfinput/pdf-input.h b/src/extension/internal/pdfinput/pdf-input.h
+index ddcb8f222b..88a894f1c0 100644
+--- a/src/extension/internal/pdfinput/pdf-input.h
++++ b/src/extension/internal/pdfinput/pdf-input.h
+@@ -15,6 +15,7 @@
+ #endif
+
+ #ifdef HAVE_POPPLER
++#include "poppler-transition-api.h"
+
+ #include <gtkmm/dialog.h>
+
+diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
+index a3a8ff25a6..96313e1f19 100644
+--- a/src/extension/internal/pdfinput/pdf-parser.cpp
++++ b/src/extension/internal/pdfinput/pdf-parser.cpp
+@@ -291,8 +291,8 @@ PdfParser::PdfParser(XRef *xrefA,
+ int /*pageNum*/,
+ int rotate,
+ Dict *resDict,
+- PDFRectangle *box,
+- PDFRectangle *cropBox) :
++ _POPPLER_CONST PDFRectangle *box,
++ _POPPLER_CONST PDFRectangle *cropBox) :
+ xref(xrefA),
+ builder(builderA),
+ subPage(gFalse),
+@@ -314,7 +314,7 @@ PdfParser::PdfParser(XRef *xrefA,
+ builder->setDocumentSize(Inkscape::Util::Quantity::convert(state->getPageWidth(), "pt", "px"),
+ Inkscape::Util::Quantity::convert(state->getPageHeight(), "pt", "px"));
+
+- double *ctm = state->getCTM();
++ const double *ctm = state->getCTM();
+ double scaledCTM[6];
+ for (int i = 0; i < 6; ++i) {
+ baseMatrix[i] = ctm[i];
+@@ -349,7 +349,7 @@ PdfParser::PdfParser(XRef *xrefA,
+ PdfParser::PdfParser(XRef *xrefA,
+ Inkscape::Extension::Internal::SvgBuilder *builderA,
+ Dict *resDict,
+- PDFRectangle *box) :
++ _POPPLER_CONST PDFRectangle *box) :
+ xref(xrefA),
+ builder(builderA),
+ subPage(gTrue),
+@@ -568,7 +568,7 @@ const char *PdfParser::getPreviousOperator(unsigned int look_back) {
+
+ void PdfParser::execOp(Object *cmd, Object args[], int numArgs) {
+ PdfOperator *op;
+- char *name;
++ const char *name;
+ Object *argPtr;
+ int i;
+
+@@ -616,7 +616,7 @@ void PdfParser::execOp(Object *cmd, Object args[], int numArgs) {
+ (this->*op->func)(argPtr, numArgs);
+ }
+
+-PdfOperator* PdfParser::findOp(char *name) {
++PdfOperator* PdfParser::findOp(const char *name) {
+ int a = -1;
+ int b = numOps;
+ int cmp = -1;
+@@ -1748,7 +1748,7 @@ void PdfParser::doShadingPatternFillFallback(GfxShadingPattern *sPat,
+ GBool stroke, GBool eoFill) {
+ GfxShading *shading;
+ GfxPath *savedPath;
+- double *ctm, *btm, *ptm;
++ const double *ctm, *btm, *ptm;
+ double m[6], ictm[6], m1[6];
+ double xMin, yMin, xMax, yMax;
+ double det;
+@@ -1990,7 +1990,7 @@ void PdfParser::doFunctionShFill1(GfxFunctionShading *shading,
+ GfxColor color0M, color1M, colorM0, colorM1, colorMM;
+ GfxColor colors2[4];
+ double functionColorDelta = colorDeltas[pdfFunctionShading-1];
+- double *matrix;
++ const double *matrix;
+ double xM, yM;
+ int nComps, i, j;
+
+@@ -2170,7 +2170,7 @@ void PdfParser::doPatchMeshShFill(GfxPatchMeshShading *shading) {
+ }
+ }
+
+-void PdfParser::fillPatch(GfxPatch *patch, int nComps, int depth) {
++void PdfParser::fillPatch(_POPPLER_CONST GfxPatch *patch, int nComps, int depth) {
+ GfxPatch patch00 = blankPatch();
+ GfxPatch patch01 = blankPatch();
+ GfxPatch patch10 = blankPatch();
+@@ -2591,7 +2591,7 @@ void PdfParser::doShowText(GooString *s) {
+ double x, y, dx, dy, tdx, tdy;
+ double originX, originY, tOriginX, tOriginY;
+ double oldCTM[6], newCTM[6];
+- double *mat;
++ const double *mat;
+ Object charProc;
+ Dict *resDict;
+ Parser *oldParser;
+@@ -3665,7 +3665,6 @@ void PdfParser::opBeginImage(Object /*args*/[], int /*numArgs*/)
+ Stream *PdfParser::buildImageStream() {
+ Object dict;
+ Object obj;
+- char *key;
+ Stream *str;
+
+ // build dictionary
+@@ -3683,26 +3682,17 @@ Stream *PdfParser::buildImageStream() {
+ obj.free();
+ #endif
+ } else {
+- key = copyString(obj.getName());
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj = parser->getObj();
+-#else
+- obj.free();
+- parser->getObj(&obj);
+-#endif
+- if (obj.isEOF() || obj.isError()) {
+- gfree(key);
++ Object obj2;
++ _POPPLER_CALL(obj2, parser->getObj);
++ if (obj2.isEOF() || obj2.isError()) {
++ _POPPLER_FREE(obj);
+ break;
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- dict.dictAdd(key, std::move(obj));
++ _POPPLER_DICTADD(dict, obj.getName(), obj2);
++ _POPPLER_FREE(obj);
++ _POPPLER_FREE(obj2);
+ }
+- obj = parser->getObj();
+-#else
+- dict.dictAdd(key, &obj);
+- }
+- parser->getObj(&obj);
+-#endif
++ _POPPLER_CALL(obj, parser->getObj);
+ }
+ if (obj.isEOF()) {
+ error(errSyntaxError, getPos(), "End of file in inline image");
+diff --git a/src/extension/internal/pdfinput/pdf-parser.h b/src/extension/internal/pdfinput/pdf-parser.h
+index b27a29cfbf..17eb025468 100644
+--- a/src/extension/internal/pdfinput/pdf-parser.h
++++ b/src/extension/internal/pdfinput/pdf-parser.h
+@@ -9,6 +9,7 @@
+ #define PDF_PARSER_H
+
+ #ifdef HAVE_POPPLER
++#include "poppler-transition-api.h"
+
+ #ifdef USE_GCC_PRAGMAS
+ #pragma interface
+@@ -128,11 +129,14 @@ public:
+
+ // Constructor for regular output.
+ PdfParser(XRef *xrefA, SvgBuilder *builderA, int pageNum, int rotate,
+- Dict *resDict, PDFRectangle *box, PDFRectangle *cropBox);
++ Dict *resDict,
++ _POPPLER_CONST PDFRectangle *box,
++ _POPPLER_CONST PDFRectangle *cropBox);
+
+ // Constructor for a sub-page object.
+ PdfParser(XRef *xrefA, Inkscape::Extension::Internal::SvgBuilder *builderA,
+- Dict *resDict, PDFRectangle *box);
++ Dict *resDict,
++ _POPPLER_CONST PDFRectangle *box);
+
+ virtual ~PdfParser();
+
+@@ -186,7 +190,7 @@ private:
+
+ void go(GBool topLevel);
+ void execOp(Object *cmd, Object args[], int numArgs);
+- PdfOperator *findOp(char *name);
++ PdfOperator *findOp(const char *name);
+ GBool checkArg(Object *arg, TchkType type);
+ int getPos();
+
+@@ -257,7 +261,7 @@ private:
+ double x2, double y2, GfxColor *color2,
+ int nComps, int depth);
+ void doPatchMeshShFill(GfxPatchMeshShading *shading);
+- void fillPatch(GfxPatch *patch, int nComps, int depth);
++ void fillPatch(_POPPLER_CONST GfxPatch *patch, int nComps, int depth);
+ void doEndPath();
+
+ // path clipping operators
+diff --git a/src/extension/internal/pdfinput/poppler-transition-api.h b/src/extension/internal/pdfinput/poppler-transition-api.h
+new file mode 100644
+index 0000000000..898e64bf2b
+--- /dev/null
++++ b/src/extension/internal/pdfinput/poppler-transition-api.h
+@@ -0,0 +1,39 @@
++#ifndef SEEN_POPPLER_TRANSITION_API_H
++#define SEEN_POPPLER_TRANSITION_API_H
++
++#include <glib/poppler-features.h>
++
++#if POPPLER_CHECK_VERSION(0,70,0)
++#define _POPPLER_CONST const
++#else
++#define _POPPLER_CONST
++#endif
++
++#if POPPLER_CHECK_VERSION(0,69,0)
++#define _POPPLER_DICTADD(dict, key, obj) (dict).dictAdd(key, std::move(obj))
++#elif POPPLER_CHECK_VERSION(0,58,0)
++#define _POPPLER_DICTADD(dict, key, obj) (dict).dictAdd(copyString(key), std::move(obj))
++#else
++#define _POPPLER_DICTADD(dict, key, obj) (dict).dictAdd(copyString(key), &obj)
++#endif
++
++#if POPPLER_CHECK_VERSION(0,58,0)
++#define POPPLER_NEW_OBJECT_API
++#define _POPPLER_FREE(obj)
++#define _POPPLER_CALL(ret, func) (ret = func())
++#define _POPPLER_CALL_ARGS(ret, func, ...) (ret = func(__VA_ARGS__))
++#else
++#define _POPPLER_FREE(obj) (obj).free()
++#define _POPPLER_CALL(ret, func) (*func(&ret))
++#define _POPPLER_CALL_ARGS(ret, func, ...) (*func(__VA_ARGS__, &ret))
++#endif
++
++#if POPPLER_CHECK_VERSION(0, 29, 0)
++#define POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API
++#endif
++
++#if POPPLER_CHECK_VERSION(0, 25, 0)
++#define POPPLER_EVEN_NEWER_COLOR_SPACE_API
++#endif
++
++#endif
+diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp
+index 9d0df7c04d..a59397a100 100644
+--- a/src/extension/internal/pdfinput/svg-builder.cpp
++++ b/src/extension/internal/pdfinput/svg-builder.cpp
+@@ -625,7 +625,7 @@ gchar *SvgBuilder::_createPattern(GfxPattern *pattern, GfxState *state, bool is_
+ if ( pattern != nullptr ) {
+ if ( pattern->getType() == 2 ) { // Shading pattern
+ GfxShadingPattern *shading_pattern = static_cast<GfxShadingPattern *>(pattern);
+- double *ptm;
++ const double *ptm;
+ double m[6] = {1, 0, 0, 1, 0, 0};
+ double det;
+
+@@ -672,7 +672,7 @@ gchar *SvgBuilder::_createTilingPattern(GfxTilingPattern *tiling_pattern,
+
+ Inkscape::XML::Node *pattern_node = _xml_doc->createElement("svg:pattern");
+ // Set pattern transform matrix
+- double *p2u = tiling_pattern->getMatrix();
++ const double *p2u = tiling_pattern->getMatrix();
+ double m[6] = {1, 0, 0, 1, 0, 0};
+ double det;
+ det = _ttm[0] * _ttm[3] - _ttm[1] * _ttm[2]; // see LP Bug 1168908
+@@ -698,7 +698,7 @@ gchar *SvgBuilder::_createTilingPattern(GfxTilingPattern *tiling_pattern,
+ pattern_node->setAttribute("patternUnits", "userSpaceOnUse");
+ // Set pattern tiling
+ // FIXME: don't ignore XStep and YStep
+- double *bbox = tiling_pattern->getBBox();
++ const double *bbox = tiling_pattern->getBBox();
+ sp_repr_set_svg_double(pattern_node, "x", 0.0);
+ sp_repr_set_svg_double(pattern_node, "y", 0.0);
+ sp_repr_set_svg_double(pattern_node, "width", bbox[2] - bbox[0]);
+@@ -751,7 +751,7 @@ gchar *SvgBuilder::_createTilingPattern(GfxTilingPattern *tiling_pattern,
+ */
+ gchar *SvgBuilder::_createGradient(GfxShading *shading, double *matrix, bool for_shading) {
+ Inkscape::XML::Node *gradient;
+- Function *func;
++ _POPPLER_CONST Function *func;
+ int num_funcs;
+ bool extend0, extend1;
+
+@@ -865,7 +865,7 @@ static bool svgGetShadingColorRGB(GfxShading *shading, double offset, GfxRGB *re
+
+ #define INT_EPSILON 8
+ bool SvgBuilder::_addGradientStops(Inkscape::XML::Node *gradient, GfxShading *shading,
+- Function *func) {
++ _POPPLER_CONST Function *func) {
+ int type = func->getType();
+ if ( type == 0 || type == 2 ) { // Sampled or exponential function
+ GfxRGB stop1, stop2;
+@@ -877,9 +877,9 @@ bool SvgBuilder::_addGradientStops(Inkscape::XML::Node *gradient, GfxShading *sh
+ _addStopToGradient(gradient, 1.0, &stop2, 1.0);
+ }
+ } else if ( type == 3 ) { // Stitching
+- StitchingFunction *stitchingFunc = static_cast<StitchingFunction*>(func);
+- double *bounds = stitchingFunc->getBounds();
+- double *encode = stitchingFunc->getEncode();
++ auto stitchingFunc = static_cast<_POPPLER_CONST StitchingFunction*>(func);
++ const double *bounds = stitchingFunc->getBounds();
++ const double *encode = stitchingFunc->getEncode();
+ int num_funcs = stitchingFunc->getNumFuncs();
+
+ // Add stops from all the stitched functions
+@@ -890,7 +890,7 @@ bool SvgBuilder::_addGradientStops(Inkscape::XML::Node *gradient, GfxShading *sh
+ svgGetShadingColorRGB(shading, bounds[i + 1], &color);
+ // Add stops
+ if (stitchingFunc->getFunc(i)->getType() == 2) { // process exponential fxn
+- double expE = (static_cast<ExponentialFunction*>(stitchingFunc->getFunc(i)))->getE();
++ double expE = (static_cast<_POPPLER_CONST ExponentialFunction*>(stitchingFunc->getFunc(i)))->getE();
+ if (expE > 1.0) {
+ expE = (bounds[i + 1] - bounds[i])/expE; // approximate exponential as a single straight line at x=1
+ if (encode[2*i] == 0) { // normal sequence
+@@ -1148,7 +1148,7 @@ void SvgBuilder::updateFont(GfxState *state) {
+ Inkscape::CSSOStringStream os_font_size;
+ double css_font_size = _font_scaling * state->getFontSize();
+ if ( font->getType() == fontType3 ) {
+- double *font_matrix = font->getFontMatrix();
++ const double *font_matrix = font->getFontMatrix();
+ if ( font_matrix[0] != 0.0 ) {
+ css_font_size *= font_matrix[3] / font_matrix[0];
+ }
+@@ -1193,7 +1193,7 @@ void SvgBuilder::updateTextPosition(double tx, double ty) {
+ void SvgBuilder::updateTextMatrix(GfxState *state) {
+ _flushText();
+ // Update text matrix
+- double *text_matrix = state->getTextMat();
++ const double *text_matrix = state->getTextMat();
+ double w_scale = sqrt( text_matrix[0] * text_matrix[0] + text_matrix[2] * text_matrix[2] );
+ double h_scale = sqrt( text_matrix[1] * text_matrix[1] + text_matrix[3] * text_matrix[3] );
+ double max_scale;
+diff --git a/src/extension/internal/pdfinput/svg-builder.h b/src/extension/internal/pdfinput/svg-builder.h
+index 729cdc944c..7fdb0b5fcd 100644
+--- a/src/extension/internal/pdfinput/svg-builder.h
++++ b/src/extension/internal/pdfinput/svg-builder.h
+@@ -15,6 +15,7 @@
+ #endif
+
+ #ifdef HAVE_POPPLER
++#include "poppler-transition-api.h"
+
+ class SPDocument;
+ namespace Inkscape {
+@@ -174,7 +175,7 @@ private:
+ void _addStopToGradient(Inkscape::XML::Node *gradient, double offset,
+ GfxRGB *color, double opacity);
+ bool _addGradientStops(Inkscape::XML::Node *gradient, GfxShading *shading,
+- Function *func);
++ _POPPLER_CONST Function *func);
+ gchar *_createTilingPattern(GfxTilingPattern *tiling_pattern, GfxState *state,
+ bool is_stroke=false);
+ // Image/mask creation
+--
+2.18.1
+
+From 0ab3449247d9356f57c75893e1ecfa195d43b681 Mon Sep 17 00:00:00 2001
+From: Thomas Holder <thomas(a)thomas-holder.de>
+Date: Sun, 30 Sep 2018 19:05:48 +0200
+Subject: [PATCH] use poppler-transition-api instead of ifdefs
+
+---
+ .../internal/pdfinput/pdf-parser.cpp | 906 ++++--------------
+ .../pdfinput/poppler-transition-api.h | 4 +-
+ 2 files changed, 208 insertions(+), 702 deletions(-)
+
+diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
+index 96313e1f19..9e4cd583fa 100644
+--- a/src/extension/internal/pdfinput/pdf-parser.cpp
++++ b/src/extension/internal/pdfinput/pdf-parser.cpp
+@@ -410,21 +410,13 @@ void PdfParser::parse(Object *obj, GBool topLevel) {
+
+ if (obj->isArray()) {
+ for (int i = 0; i < obj->arrayGetLength(); ++i) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj2 = obj->arrayGet(i);
+-#else
+- obj->arrayGet(i, &obj2);
+-#endif
++ _POPPLER_CALL_ARGS(obj2, obj->arrayGet, i);
+ if (!obj2.isStream()) {
+ error(errInternal, -1, "Weird page contents");
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+-#endif
++ _POPPLER_FREE(obj2);
+ return;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+-#endif
++ _POPPLER_FREE(obj2);
+ }
+ } else if (!obj->isStream()) {
+ error(errInternal, -1, "Weird page contents");
+@@ -443,11 +435,7 @@ void PdfParser::go(GBool /*topLevel*/)
+
+ // scan a sequence of objects
+ int numArgs = 0;
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj = parser->getObj();
+-#else
+- parser->getObj(&obj);
+-#endif
++ _POPPLER_CALL(obj, parser->getObj);
+ while (!obj.isEOF()) {
+
+ // got a command - execute it
+@@ -466,19 +454,15 @@ void PdfParser::go(GBool /*topLevel*/)
+ execOp(&obj, args, numArgs);
+
+ #if !defined(POPPLER_NEW_OBJECT_API)
+- obj.free();
++ _POPPLER_FREE(obj);
+ for (int i = 0; i < numArgs; ++i)
+- args[i].free();
++ _POPPLER_FREE(args[i]);
+ #endif
+ numArgs = 0;
+
+ // got an argument - save it
+ } else if (numArgs < maxArgs) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+ args[numArgs++] = std::move(obj);
+-#else
+- args[numArgs++] = obj;
+-#endif
+
+ // too many arguments - something is wrong
+ } else {
+@@ -489,21 +473,13 @@ void PdfParser::go(GBool /*topLevel*/)
+ printf("\n");
+ fflush(stdout);
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj.free();
+-#endif
++ _POPPLER_FREE(obj);
+ }
+
+ // grab the next object
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj = parser->getObj();
+-#else
+- parser->getObj(&obj);
+-#endif
++ _POPPLER_CALL(obj, parser->getObj);
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj.free();
+-#endif
++ _POPPLER_FREE(obj);
+
+ // args at end with no command
+ if (numArgs > 0) {
+@@ -519,7 +495,7 @@ void PdfParser::go(GBool /*topLevel*/)
+ }
+ #if !defined(POPPLER_NEW_OBJECT_API)
+ for (int i = 0; i < numArgs; ++i)
+- args[i].free();
++ _POPPLER_FREE(args[i]);
+ #endif
+ }
+ }
+@@ -716,13 +692,9 @@ void PdfParser::opSetDash(Object args[], int /*numArgs*/)
+ if (length != 0) {
+ dash = (double *)gmallocn(length, sizeof(double));
+ for (int i = 0; i < length; ++i) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- dash[i] = a->get(i).getNum();
+-#else
+ Object obj;
+- dash[i] = a->get(i, &obj)->getNum();
+- obj.free();
+-#endif
++ dash[i] = _POPPLER_CALL_ARGS_DEREF(obj, a->get, i).getNum();
++ _POPPLER_FREE(obj);
+ }
+ }
+ state->setLineDash(dash, length, args[1].getNum());
+@@ -772,18 +744,13 @@ void PdfParser::opSetExtGState(Object args[], int /*numArgs*/)
+ GBool haveBackdropColor = gFalse;
+ GBool alpha = gFalse;
+
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj1 = res->lookupGState(args[0].getName())).isNull()) {
+-#else
+- if (!res->lookupGState(args[0].getName(), &obj1)) {
+-#endif
++ _POPPLER_CALL_ARGS(obj1, res->lookupGState, args[0].getName());
++ if (obj1.isNull()) {
+ return;
+ }
+ if (!obj1.isDict()) {
+ error(errSyntaxError, getPos(), "ExtGState '{0:s}' is wrong type"), args[0].getName();
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ return;
+ }
+ if (printCommands) {
+@@ -793,11 +760,7 @@ void PdfParser::opSetExtGState(Object args[], int /*numArgs*/)
+ }
+
+ // transparency support: blend mode, fill/stroke opacity
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if (!((obj2 = obj1.dictLookup(const_cast<char*>("BM"))).isNull())) {
+-#else
+- if (!obj1.dictLookup(const_cast<char*>("BM"), &obj2)->isNull()) {
+-#endif
++ if (!_POPPLER_CALL_ARGS_DEREF(obj2, obj1.dictLookup, "BM").isNull()) {
+ GfxBlendMode mode = gfxBlendNormal;
+ if (state->parseBlendMode(&obj2, &mode)) {
+ state->setBlendMode(mode);
+@@ -805,71 +768,40 @@ void PdfParser::opSetExtGState(Object args[], int /*numArgs*/)
+ error(errSyntaxError, getPos(), "Invalid blend mode in ExtGState");
+ }
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj2 = obj1.dictLookup(const_cast<char*>("ca"))).isNum()) {
+-#else
+- obj2.free();
+- if (obj1.dictLookup(const_cast<char*>("ca"), &obj2)->isNum()) {
+-#endif
++ _POPPLER_FREE(obj2);
++ if (_POPPLER_CALL_ARGS_DEREF(obj2, obj1.dictLookup, "ca").isNum()) {
+ state->setFillOpacity(obj2.getNum());
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj2 = obj1.dictLookup(const_cast<char*>("CA"))).isNum()) {
+-#else
+- obj2.free();
+- if (obj1.dictLookup(const_cast<char*>("CA"), &obj2)->isNum()) {
+-#endif
++ _POPPLER_FREE(obj2);
++ if (_POPPLER_CALL_ARGS_DEREF(obj2, obj1.dictLookup, "CA").isNum()) {
+ state->setStrokeOpacity(obj2.getNum());
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+-#endif
++ _POPPLER_FREE(obj2);
+
+ // fill/stroke overprint
+ GBool haveFillOP = gFalse;
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((haveFillOP = (obj2 = obj1.dictLookup(const_cast<char*>("op"))).isBool())) {
+-#else
+- if ((haveFillOP = (obj1.dictLookup(const_cast<char*>("op"), &obj2)->isBool()))) {
+-#endif
++ if ((haveFillOP = _POPPLER_CALL_ARGS_DEREF(obj2, obj1.dictLookup, "op").isBool())) {
+ state->setFillOverprint(obj2.getBool());
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj2 = obj1.dictLookup(const_cast<char*>("OP"))).isBool()) {
+-#else
+- obj2.free();
+- if (obj1.dictLookup(const_cast<char*>("OP"), &obj2)->isBool()) {
+-#endif
++ _POPPLER_FREE(obj2);
++ if (_POPPLER_CALL_ARGS_DEREF(obj2, obj1.dictLookup, "OP").isBool()) {
+ state->setStrokeOverprint(obj2.getBool());
+ if (!haveFillOP) {
+ state->setFillOverprint(obj2.getBool());
+ }
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+-#endif
++ _POPPLER_FREE(obj2);
+
+ // stroke adjust
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj2 = obj1.dictLookup(const_cast<char*>("SA"))).isBool()) {
+-#else
+- if (obj1.dictLookup(const_cast<char*>("SA"), &obj2)->isBool()) {
+-#endif
++ if (_POPPLER_CALL_ARGS_DEREF(obj2, obj1.dictLookup, "SA").isBool()) {
+ state->setStrokeAdjust(obj2.getBool());
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+-#endif
++ _POPPLER_FREE(obj2);
+
+ // transfer function
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj2 = obj1.dictLookup(const_cast<char*>("TR2"))).isNull()) {
+- obj2 = obj1.dictLookup(const_cast<char*>("TR"));
+-#else
+- if (obj1.dictLookup(const_cast<char*>("TR2"), &obj2)->isNull()) {
+- obj2.free();
+- obj1.dictLookup(const_cast<char*>("TR"), &obj2);
+-#endif
++ if (_POPPLER_CALL_ARGS_DEREF(obj2, obj1.dictLookup, "TR2").isNull()) {
++ _POPPLER_FREE(obj2);
++ _POPPLER_CALL_ARGS(obj2, obj1.dictLookup, "TR");
+ }
+ if (obj2.isName(const_cast<char*>("Default")) ||
+ obj2.isName(const_cast<char*>("Identity"))) {
+@@ -878,15 +810,9 @@ void PdfParser::opSetExtGState(Object args[], int /*numArgs*/)
+ } else if (obj2.isArray() && obj2.arrayGetLength() == 4) {
+ int pos = 4;
+ for (int i = 0; i < 4; ++i) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj3 = obj2.arrayGet(i);
+-#else
+- obj2.arrayGet(i, &obj3);
+-#endif
++ _POPPLER_CALL_ARGS(obj3, obj2.arrayGet, i);
+ funcs[i] = Function::parse(&obj3);
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj3.free();
+-#endif
++ _POPPLER_FREE(obj3);
+ if (!funcs[i]) {
+ pos = i;
+ break;
+@@ -903,37 +829,21 @@ void PdfParser::opSetExtGState(Object args[], int /*numArgs*/)
+ } else if (!obj2.isNull()) {
+ error(errSyntaxError, getPos(), "Invalid transfer function in ExtGState");
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+-#endif
++ _POPPLER_FREE(obj2);
+
+ // soft mask
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if (!((obj2 = obj1.dictLookup(const_cast<char*>("SMask"))).isNull())) {
+-#else
+- if (!obj1.dictLookup(const_cast<char*>("SMask"), &obj2)->isNull()) {
+-#endif
++ if (!_POPPLER_CALL_ARGS_DEREF(obj2, obj1.dictLookup, "SMask").isNull()) {
+ if (obj2.isName(const_cast<char*>("None"))) {
+ builder->clearSoftMask(state);
+ } else if (obj2.isDict()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj3 = obj2.dictLookup(const_cast<char*>("S"))).isName(const_cast<char*>("Alpha"))) {
+-#else
+- if (obj2.dictLookup(const_cast<char*>("S"), &obj3)->isName(const_cast<char*>("Alpha"))) {
+-#endif
++ if (_POPPLER_CALL_ARGS_DEREF(obj3, obj2.dictLookup, "S").isName("Alpha")) {
+ alpha = gTrue;
+ } else { // "Luminosity"
+ alpha = gFalse;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj3.free();
+-#endif
++ _POPPLER_FREE(obj3);
+ funcs[0] = NULL;
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if (!((obj3 = obj2.dictLookup(const_cast<char*>("TR"))).isNull())) {
+-#else
+- if (!obj2.dictLookup(const_cast<char*>("TR"), &obj3)->isNull()) {
+-#endif
++ if (!_POPPLER_CALL_ARGS_DEREF(obj3, obj2.dictLookup, "TR").isNull()) {
+ funcs[0] = Function::parse(&obj3);
+ if (funcs[0]->getInputSize() != 1 ||
+ funcs[0]->getOutputSize() != 1) {
+@@ -942,45 +852,26 @@ void PdfParser::opSetExtGState(Object args[], int /*numArgs*/)
+ funcs[0] = NULL;
+ }
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((haveBackdropColor = (obj3 = obj2.dictLookup(const_cast<char*>("BC"))).isArray())) {
+-#else
+- obj3.free();
+- if ((haveBackdropColor = obj2.dictLookup(const_cast<char*>("BC"), &obj3)->isArray())) {
+-#endif
++ _POPPLER_FREE(obj3);
++ if ((haveBackdropColor = _POPPLER_CALL_ARGS_DEREF(obj3, obj2.dictLookup, "BC").isArray())) {
+ for (int i = 0; i < gfxColorMaxComps; ++i) {
+ backdropColor.c[i] = 0;
+ }
+ for (int i = 0; i < obj3.arrayGetLength() && i < gfxColorMaxComps; ++i) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj4 = obj3.arrayGet(i);
+-#else
+- obj3.arrayGet(i, &obj4);
+-#endif
++ _POPPLER_CALL_ARGS(obj4, obj3.arrayGet, i);
+ if (obj4.isNum()) {
+ backdropColor.c[i] = dblToCol(obj4.getNum());
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj4.free();
+-#endif
++ _POPPLER_FREE(obj4);
+ }
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj3 = obj2.dictLookup(const_cast<char*>("G"))).isStream()) {
+- if ((obj4 = obj3.streamGetDict()->lookup(const_cast<char*>("Group"))).isDict()) {
+-#else
+- obj3.free();
+- if (obj2.dictLookup(const_cast<char*>("G"), &obj3)->isStream()) {
+- if (obj3.streamGetDict()->lookup(const_cast<char*>("Group"), &obj4)->isDict()) {
+-#endif
++ _POPPLER_FREE(obj3);
++ if (_POPPLER_CALL_ARGS_DEREF(obj3, obj2.dictLookup, "G").isStream()) {
++ if (_POPPLER_CALL_ARGS_DEREF(obj4, obj3.streamGetDict()->lookup, "Group").isDict()) {
+ GfxColorSpace *blendingColorSpace = 0;
+ GBool isolated = gFalse;
+ GBool knockout = gFalse;
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if (!((obj5 = obj4.dictLookup(const_cast<char*>("CS"))).isNull())) {
+-#else
+- if (!obj4.dictLookup(const_cast<char*>("CS"), &obj5)->isNull()) {
+-#endif
++ if (!_POPPLER_CALL_ARGS_DEREF(obj5, obj4.dictLookup, "CS").isNull()) {
+ #if defined(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API)
+ blendingColorSpace = GfxColorSpace::parse(NULL, &obj5, NULL, NULL);
+ #elif defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API)
+@@ -989,25 +880,15 @@ void PdfParser::opSetExtGState(Object args[], int /*numArgs*/)
+ blendingColorSpace = GfxColorSpace::parse(&obj5, NULL, NULL);
+ #endif
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj5 = obj4.dictLookup(const_cast<char*>("I"))).isBool()) {
+-#else
+- obj5.free();
+- if (obj4.dictLookup(const_cast<char*>("I"), &obj5)->isBool()) {
+-#endif
++ _POPPLER_FREE(obj5);
++ if (_POPPLER_CALL_ARGS_DEREF(obj5, obj4.dictLookup, "I").isBool()) {
+ isolated = obj5.getBool();
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj5 = obj4.dictLookup(const_cast<char*>("K"))).isBool()) {
+-#else
+- obj5.free();
+- if (obj4.dictLookup(const_cast<char*>("K"), &obj5)->isBool()) {
+-#endif
++ _POPPLER_FREE(obj5);
++ if (_POPPLER_CALL_ARGS_DEREF(obj5, obj4.dictLookup, "K").isBool()) {
+ knockout = obj5.getBool();
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj5.free();
+-#endif
++ _POPPLER_FREE(obj5);
+ if (!haveBackdropColor) {
+ if (blendingColorSpace) {
+ blendingColorSpace->getDefaultColor(&backdropColor);
+@@ -1026,24 +907,18 @@ void PdfParser::opSetExtGState(Object args[], int /*numArgs*/)
+ } else {
+ error(errSyntaxError, getPos(), "Invalid soft mask in ExtGState - missing group");
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj4.free();
+-#endif
++ _POPPLER_FREE(obj4);
+ } else {
+ error(errSyntaxError, getPos(), "Invalid soft mask in ExtGState - missing group");
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj3.free();
+-#endif
++ _POPPLER_FREE(obj3);
+ } else if (!obj2.isNull()) {
+ error(errSyntaxError, getPos(), "Invalid soft mask in ExtGState");
+ }
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
++ _POPPLER_FREE(obj2);
+
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ }
+
+ void PdfParser::doSoftMask(Object *str, GBool alpha,
+@@ -1064,79 +939,43 @@ void PdfParser::doSoftMask(Object *str, GBool alpha,
+ dict = str->streamGetDict();
+
+ // check form type
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("FormType"));
+-#else
+- dict->lookup(const_cast<char*>("FormType"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "FormType");
+ if (!(obj1.isNull() || (obj1.isInt() && obj1.getInt() == 1))) {
+ error(errSyntaxError, getPos(), "Unknown form type");
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+
+ // get bounding box
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("BBox"));
+-#else
+- dict->lookup(const_cast<char*>("BBox"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "BBox");
+ if (!obj1.isArray()) {
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ error(errSyntaxError, getPos(), "Bad form bounding box");
+ return;
+ }
+ for (i = 0; i < 4; ++i) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj2 = obj1.arrayGet(i);
+-#else
+- obj1.arrayGet(i, &obj2);
+-#endif
++ _POPPLER_CALL_ARGS(obj2, obj1.arrayGet, i);
+ bbox[i] = obj2.getNum();
+-#if defined(POPPLER_NEW_OBJECT_API)
+- }
+-#else
+- obj2.free();
++ _POPPLER_FREE(obj2);
+ }
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+
+ // get matrix
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("Matrix"));
+-#else
+- dict->lookup(const_cast<char*>("Matrix"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "Matrix");
+ if (obj1.isArray()) {
+ for (i = 0; i < 6; ++i) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj2 = obj1.arrayGet(i);
+-#else
+- obj1.arrayGet(i, &obj2);
+-#endif
++ _POPPLER_CALL_ARGS(obj2, obj1.arrayGet, i);
+ m[i] = obj2.getNum();
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+-#endif
++ _POPPLER_FREE(obj2);
+ }
+ } else {
+ m[0] = 1; m[1] = 0;
+ m[2] = 0; m[3] = 1;
+ m[4] = 0; m[5] = 0;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+
+ // get resources
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("Resources"));
+-#else
+- dict->lookup(const_cast<char*>("Resources"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "Resources");
+ resDict = obj1.isDict() ? obj1.getDict() : (Dict *)NULL;
+
+ // draw it
+@@ -1149,9 +988,7 @@ void PdfParser::doSoftMask(Object *str, GBool alpha,
+ if (blendingColorSpace) {
+ delete blendingColorSpace;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ }
+
+ void PdfParser::opSetRenderingIntent(Object /*args*/[], int /*numArgs*/)
+@@ -1248,11 +1085,7 @@ void PdfParser::opSetFillColorSpace(Object args[], int /*numArgs*/)
+ Object obj;
+
+ state->setFillPattern(NULL);
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj = res->lookupColorSpace(args[0].getName());
+-#else
+- res->lookupColorSpace(args[0].getName(), &obj);
+-#endif
++ _POPPLER_CALL_ARGS(obj, res->lookupColorSpace, args[0].getName());
+
+ GfxColorSpace *colorSpace = NULL;
+ #if defined(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API)
+@@ -1274,9 +1107,7 @@ void PdfParser::opSetFillColorSpace(Object args[], int /*numArgs*/)
+ colorSpace = GfxColorSpace::parse(&obj, NULL);
+ }
+ #endif
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj.free();
+-#endif
++ _POPPLER_FREE(obj);
+ if (colorSpace) {
+ GfxColor color;
+ state->setFillColorSpace(colorSpace);
+@@ -1295,11 +1126,7 @@ void PdfParser::opSetStrokeColorSpace(Object args[], int /*numArgs*/)
+ GfxColorSpace *colorSpace = NULL;
+
+ state->setStrokePattern(NULL);
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj = res->lookupColorSpace(args[0].getName());
+-#else
+- res->lookupColorSpace(args[0].getName(), &obj);
+-#endif
++ _POPPLER_CALL_ARGS(obj, res->lookupColorSpace, args[0].getName());
+ #if defined(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API)
+ if (obj.isNull()) {
+ colorSpace = GfxColorSpace::parse(NULL, &args[0], NULL, NULL);
+@@ -1319,9 +1146,7 @@ void PdfParser::opSetStrokeColorSpace(Object args[], int /*numArgs*/)
+ colorSpace = GfxColorSpace::parse(&obj, NULL);
+ }
+ #endif
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj.free();
+-#endif
++ _POPPLER_FREE(obj);
+ if (colorSpace) {
+ GfxColor color;
+ state->setStrokeColorSpace(colorSpace);
+@@ -2551,11 +2376,7 @@ void PdfParser::opShowSpaceText(Object args[], int /*numArgs*/)
+ wMode = state->getFont()->getWMode();
+ a = args[0].getArray();
+ for (int i = 0; i < a->getLength(); ++i) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj = a->get(i);
+-#else
+- a->get(i, &obj);
+-#endif
++ _POPPLER_CALL_ARGS(obj, a->get, i);
+ if (obj.isNum()) {
+ // this uses the absolute value of the font size to match
+ // Acrobat's behavior
+@@ -2572,9 +2393,7 @@ void PdfParser::opShowSpaceText(Object args[], int /*numArgs*/)
+ } else {
+ error(errSyntaxError, getPos(), "Element of show/space array must be number or string");
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj.free();
+-#endif
++ _POPPLER_FREE(obj);
+ }
+ }
+
+@@ -2655,11 +2474,7 @@ void PdfParser::doShowText(GooString *s) {
+ //out->updateCTM(state, 1, 0, 0, 1, 0, 0);
+ if (false){ /*!out->beginType3Char(state, curX + riseX, curY + riseY, tdx, tdy,
+ code, u, uLen)) {*/
+-#if defined(POPPLER_NEW_OBJECT_API)
+- charProc = ((Gfx8BitFont *)font)->getCharProc(code);
+-#else
+- ((Gfx8BitFont *)font)->getCharProc(code, &charProc);
+-#endif
++ _POPPLER_CALL_ARGS(charProc, ((Gfx8BitFont *)font)->getCharProc, code);
+ if ((resDict = ((Gfx8BitFont *)font)->getResources())) {
+ pushResources(resDict);
+ }
+@@ -2672,9 +2487,7 @@ void PdfParser::doShowText(GooString *s) {
+ if (resDict) {
+ popResources();
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- charProc.free();
+-#endif
++ _POPPLER_FREE(charProc);
+ }
+ restoreState();
+ // GfxState::restore() does *not* restore the current position,
+@@ -2741,43 +2554,24 @@ void PdfParser::opXObject(Object args[], int /*numArgs*/)
+ #else
+ char *name = args[0].getName();
+ #endif
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj1 = res->lookupXObject(name)).isNull()) {
+-#else
+- if (!res->lookupXObject(name, &obj1)) {
+-#endif
++ _POPPLER_CALL_ARGS(obj1, res->lookupXObject, name);
++ if (obj1.isNull()) {
+ return;
+ }
+ if (!obj1.isStream()) {
+ error(errSyntaxError, getPos(), "XObject '{0:s}' is wrong type", name);
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ return;
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj2 = obj1.streamGetDict()->lookup(const_cast<char*>("Subtype"));
+-#else
+- obj1.streamGetDict()->lookup(const_cast<char*>("Subtype"), &obj2);
+-#endif
++ _POPPLER_CALL_ARGS(obj2, obj1.streamGetDict()->lookup, "Subtype");
+ if (obj2.isName(const_cast<char*>("Image"))) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- refObj = res->lookupXObjectNF(name);
+-#else
+- res->lookupXObjectNF(name, &refObj);
+-#endif
++ _POPPLER_CALL_ARGS(refObj, res->lookupXObjectNF, name);
+ doImage(&refObj, obj1.getStream(), gFalse);
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- refObj.free();
+-#endif
++ _POPPLER_FREE(refObj);
+ } else if (obj2.isName(const_cast<char*>("Form"))) {
+ doForm(&obj1);
+ } else if (obj2.isName(const_cast<char*>("PS"))) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj3 = obj1.streamGetDict()->lookup(const_cast<char*>("Level1"));
+-#else
+- obj1.streamGetDict()->lookup(const_cast<char*>("Level1"), &obj3);
+-#endif
++ _POPPLER_CALL_ARGS(obj3, obj1.streamGetDict()->lookup, "Level1");
+ /* out->psXObject(obj1.getStream(),
+ obj3.isStream() ? obj3.getStream() : (Stream *)NULL);*/
+ } else if (obj2.isName()) {
+@@ -2785,10 +2579,8 @@ void PdfParser::opXObject(Object args[], int /*numArgs*/)
+ } else {
+ error(errSyntaxError, getPos(), "XObject subtype is missing or wrong type");
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj2);
++ _POPPLER_FREE(obj1);
+ }
+
+ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+@@ -2815,18 +2607,10 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ dict = str->getDict();
+
+ // get size
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("Width"));
+-#else
+- dict->lookup(const_cast<char*>("Width"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "Width");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("W"));
+-#else
+- obj1.free();
+- dict->lookup(const_cast<char*>("W"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "W");
+ }
+ if (obj1.isInt()){
+ width = obj1.getInt();
+@@ -2837,19 +2621,11 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ else {
+ goto err2;
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("Height"));
+-#else
+- obj1.free();
+- dict->lookup(const_cast<char*>("Height"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "Height");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("H"));
+-#else
+- obj1.free();
+- dict->lookup(const_cast<char*>("H"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "H");
+ }
+ if (obj1.isInt()) {
+ height = obj1.getInt();
+@@ -2860,46 +2636,26 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ else {
+ goto err2;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+
+ // image interpolation
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup("Interpolate");
+-#else
+- dict->lookup("Interpolate", &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "Interpolate");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup("I");
+-#else
+- obj1.free();
+- dict->lookup("I", &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "I");
+ }
+ if (obj1.isBool())
+ interpolate = obj1.getBool();
+ else
+ interpolate = gFalse;
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ maskInterpolate = gFalse;
+
+ // image or mask?
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("ImageMask"));
+-#else
+- dict->lookup(const_cast<char*>("ImageMask"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "ImageMask");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("IM"));
+-#else
+- obj1.free();
+- dict->lookup(const_cast<char*>("IM"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "IM");
+ }
+ mask = gFalse;
+ if (obj1.isBool()) {
+@@ -2908,24 +2664,14 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ else if (!obj1.isNull()) {
+ goto err2;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+
+ // bit depth
+ if (bits == 0) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("BitsPerComponent"));
+-#else
+- dict->lookup(const_cast<char*>("BitsPerComponent"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "BitsPerComponent");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("BPC"));
+-#else
+- obj1.free();
+- dict->lookup(const_cast<char*>("BPC"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "BPC");
+ }
+ if (obj1.isInt()) {
+ bits = obj1.getInt();
+@@ -2934,9 +2680,7 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ } else {
+ goto err2;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ }
+
+ // display a mask
+@@ -2946,37 +2690,21 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ goto err1;
+ }
+ invert = gFalse;
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("Decode"));
+-#else
+- dict->lookup(const_cast<char*>("Decode"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "Decode");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("D"));
+-#else
+- obj1.free();
+- dict->lookup(const_cast<char*>("D"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "D");
+ }
+ if (obj1.isArray()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj2 = obj1.arrayGet(0);
+-#else
+- obj1.arrayGet(0, &obj2);
+-#endif
++ _POPPLER_CALL_ARGS(obj2, obj1.arrayGet, 0);
+ if (obj2.isInt() && obj2.getInt() == 1) {
+ invert = gTrue;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+-#endif
++ _POPPLER_FREE(obj2);
+ } else if (!obj1.isNull()) {
+ goto err2;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+
+ // draw it
+ builder->addImageMask(state, str, width, height, invert, interpolate);
+@@ -2984,36 +2712,18 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ } else {
+ // get color space and color map
+ GfxColorSpace *colorSpace;
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("ColorSpace"));
+-#else
+- dict->lookup(const_cast<char*>("ColorSpace"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "ColorSpace");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("CS"));
+-#else
+- obj1.free();
+- dict->lookup(const_cast<char*>("CS"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "CS");
+ }
+ if (obj1.isName()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj2 = res->lookupColorSpace(obj1.getName());
+-#else
+- res->lookupColorSpace(obj1.getName(), &obj2);
+-#endif
++ _POPPLER_CALL_ARGS(obj2, res->lookupColorSpace, obj1.getName());
+ if (!obj2.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
++ _POPPLER_FREE(obj1);
+ obj1 = std::move(obj2);
+-#else
+- obj1.free();
+- obj1 = obj2;
+-#endif
+ } else {
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+-#endif
++ _POPPLER_FREE(obj2);
+ }
+ }
+ if (!obj1.isNull()) {
+@@ -3033,29 +2743,17 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ } else {
+ colorSpace = NULL;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ if (!colorSpace) {
+ goto err1;
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("Decode"));
+-#else
+- dict->lookup(const_cast<char*>("Decode"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "Decode");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("D"));
+-#else
+- obj1.free();
+- dict->lookup(const_cast<char*>("D"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "D");
+ }
+ GfxImageColorMap *colorMap = new GfxImageColorMap(bits, &obj1, colorSpace);
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ if (!colorMap->isOk()) {
+ delete colorMap;
+ goto err1;
+@@ -3069,13 +2767,8 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ int maskHeight = 0;
+ maskInvert = gFalse;
+ GfxImageColorMap *maskColorMap = NULL;
+-#if defined(POPPLER_NEW_OBJECT_API)
+- maskObj = dict->lookup(const_cast<char*>("Mask"));
+- smaskObj = dict->lookup(const_cast<char*>("SMask"));
+-#else
+- dict->lookup(const_cast<char*>("Mask"), &maskObj);
+- dict->lookup(const_cast<char*>("SMask"), &smaskObj);
+-#endif
++ _POPPLER_CALL_ARGS(maskObj, dict->lookup, "Mask");
++ _POPPLER_CALL_ARGS(smaskObj, dict->lookup, "SMask");
+ Dict* maskDict;
+ if (smaskObj.isStream()) {
+ // soft mask
+@@ -3084,108 +2777,58 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ }
+ maskStr = smaskObj.getStream();
+ maskDict = smaskObj.streamGetDict();
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("Width"));
+-#else
+- maskDict->lookup(const_cast<char*>("Width"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "Width");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("W"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("W"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "W");
+ }
+ if (!obj1.isInt()) {
+ goto err2;
+ }
+ maskWidth = obj1.getInt();
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("Height"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("Height"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "Height");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("H"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("H"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "H");
+ }
+ if (!obj1.isInt()) {
+ goto err2;
+ }
+ maskHeight = obj1.getInt();
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("BitsPerComponent"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("BitsPerComponent"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "BitsPerComponent");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("BPC"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("BPC"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "BPC");
+ }
+ if (!obj1.isInt()) {
+ goto err2;
+ }
+ int maskBits = obj1.getInt();
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("Interpolate"));
+-#else
+- obj1.free();
+- maskDict->lookup("Interpolate", &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "Interpolate");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("I"));
+-#else
+- obj1.free();
+- maskDict->lookup("I", &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "I");
+ }
+ if (obj1.isBool())
+ maskInterpolate = obj1.getBool();
+ else
+ maskInterpolate = gFalse;
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("ColorSpace"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("ColorSpace"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "ColorSpace");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("CS"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("CS"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "CS");
+ }
+ if (obj1.isName()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj2 = res->lookupColorSpace(obj1.getName());
+-#else
+- res->lookupColorSpace(obj1.getName(), &obj2);
+-#endif
++ _POPPLER_CALL_ARGS(obj2, res->lookupColorSpace, obj1.getName());
+ if (!obj2.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
++ _POPPLER_FREE(obj1);
+ obj1 = std::move(obj2);
+-#else
+- obj1.free();
+- obj1 = obj2;
+-#endif
+ } else {
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+-#endif
++ _POPPLER_FREE(obj2);
+ }
+ }
+ #if defined(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API)
+@@ -3195,29 +2838,17 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ #else
+ GfxColorSpace *maskColorSpace = GfxColorSpace::parse(&obj1, NULL);
+ #endif
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ if (!maskColorSpace || maskColorSpace->getMode() != csDeviceGray) {
+ goto err1;
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("Decode"));
+-#else
+- maskDict->lookup(const_cast<char*>("Decode"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "Decode");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("D"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("D"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "D");
+ }
+ maskColorMap = new GfxImageColorMap(maskBits, &obj1, maskColorSpace);
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ if (!maskColorMap->isOk()) {
+ delete maskColorMap;
+ goto err1;
+@@ -3228,15 +2859,9 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ // color key mask
+ int i;
+ for (i = 0; i < maskObj.arrayGetLength() && i < 2*gfxColorMaxComps; ++i) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskObj.arrayGet(i);
+-#else
+- maskObj.arrayGet(i, &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, maskObj.arrayGet, i);
+ maskColors[i] = obj1.getInt();
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ }
+ haveColorKeyMask = gTrue;
+ } else if (maskObj.isStream()) {
+@@ -3246,111 +2871,61 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ }
+ maskStr = maskObj.getStream();
+ maskDict = maskObj.streamGetDict();
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("Width"));
+-#else
+- maskDict->lookup(const_cast<char*>("Width"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "Width");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("W"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("W"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "W");
+ }
+ if (!obj1.isInt()) {
+ goto err2;
+ }
+ maskWidth = obj1.getInt();
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("Height"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("Height"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "Height");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("H"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("H"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "H");
+ }
+ if (!obj1.isInt()) {
+ goto err2;
+ }
+ maskHeight = obj1.getInt();
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("ImageMask"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("ImageMask"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "ImageMask");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("IM"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("IM"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "IM");
+ }
+ if (!obj1.isBool() || !obj1.getBool()) {
+ goto err2;
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup("Interpolate");
+-#else
+- obj1.free();
+- maskDict->lookup("Interpolate", &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "Interpolate");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup("I");
+-#else
+- obj1.free();
+- maskDict->lookup("I", &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "I");
+ }
+ if (obj1.isBool())
+ maskInterpolate = obj1.getBool();
+ else
+ maskInterpolate = gFalse;
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ maskInvert = gFalse;
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("Decode"));
+-#else
+- maskDict->lookup(const_cast<char*>("Decode"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "Decode");
+ if (obj1.isNull()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = maskDict->lookup(const_cast<char*>("D"));
+-#else
+- obj1.free();
+- maskDict->lookup(const_cast<char*>("D"), &obj1);
+-#endif
++ _POPPLER_FREE(obj1);
++ _POPPLER_CALL_ARGS(obj1, maskDict->lookup, "D");
+ }
+ if (obj1.isArray()) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj2 = obj1.arrayGet(0);
+-#else
+- obj1.arrayGet(0, &obj2);
+-#endif
++ _POPPLER_CALL_ARGS(obj2, obj1.arrayGet, 0);
+ if (obj2.isInt() && obj2.getInt() == 1) {
+ maskInvert = gTrue;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj2.free();
+-#endif
++ _POPPLER_FREE(obj2);
+ } else if (!obj1.isNull()) {
+ goto err2;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ haveExplicitMask = gTrue;
+ }
+
+@@ -3368,18 +2943,14 @@ void PdfParser::doImage(Object * /*ref*/, Stream *str, GBool inlineImg)
+ }
+ delete colorMap;
+
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- maskObj.free();
+- smaskObj.free();
+-#endif
++ _POPPLER_FREE(maskObj);
++ _POPPLER_FREE(smaskObj);
+ }
+
+ return;
+
+ err2:
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ err1:
+ error(errSyntaxError, getPos(), "Bad image parameters");
+ }
+@@ -3404,97 +2975,52 @@ void PdfParser::doForm(Object *str) {
+ dict = str->streamGetDict();
+
+ // check form type
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = dict->lookup(const_cast<char*>("FormType"));
+-#else
+- dict->lookup(const_cast<char*>("FormType"), &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, dict->lookup, "FormType");
+ if (!(obj1.isNull() || (obj1.isInt() && obj1.getInt() == 1))) {
+ error(errSyntaxError, getPos(), "Unknown form type");
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+
+ // get bounding box
+-#if defined(POPPLER_NEW_OBJECT_API)
+- bboxObj = dict->lookup(const_cast<char*>("BBox"));
+-#else
+- dict->lookup(const_cast<char*>("BBox"), &bboxObj);
+-#endif
++ _POPPLER_CALL_ARGS(bboxObj, dict->lookup, "BBox");
+ if (!bboxObj.isArray()) {
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- bboxObj.free();
+-#endif
++ _POPPLER_FREE(bboxObj);
+ error(errSyntaxError, getPos(), "Bad form bounding box");
+ return;
+ }
+ for (i = 0; i < 4; ++i) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = bboxObj.arrayGet(i);
+-#else
+- bboxObj.arrayGet(i, &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, bboxObj.arrayGet, i);
+ bbox[i] = obj1.getNum();
+-#if defined(POPPLER_NEW_OBJECT_API)
+- }
+-#else
+- obj1.free();
++ _POPPLER_FREE(obj1);
+ }
+- bboxObj.free();
+-#endif
++ _POPPLER_FREE(bboxObj);
+
+ // get matrix
+-#if defined(POPPLER_NEW_OBJECT_API)
+- matrixObj = dict->lookup(const_cast<char*>("Matrix"));
+-#else
+- dict->lookup(const_cast<char*>("Matrix"), &matrixObj);
+-#endif
++ _POPPLER_CALL_ARGS(matrixObj, dict->lookup, "Matrix");
+ if (matrixObj.isArray()) {
+ for (i = 0; i < 6; ++i) {
+-#if defined(POPPLER_NEW_OBJECT_API)
+- obj1 = matrixObj.arrayGet(i);
+-#else
+- matrixObj.arrayGet(i, &obj1);
+-#endif
++ _POPPLER_CALL_ARGS(obj1, matrixObj.arrayGet, i);
+ m[i] = obj1.getNum();
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+ }
+ } else {
+ m[0] = 1; m[1] = 0;
+ m[2] = 0; m[3] = 1;
+ m[4] = 0; m[5] = 0;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- matrixObj.free();
+-#endif
++ _POPPLER_FREE(matrixObj);
+
+ // get resources
+-#if defined(POPPLER_NEW_OBJECT_API)
+- resObj = dict->lookup(const_cast<char*>("Resources"));
+-#else
+- dict->lookup(const_cast<char*>("Resources"), &resObj);
+-#endif
++ _POPPLER_CALL_ARGS(resObj, dict->lookup, "Resources");
+ resDict = resObj.isDict() ? resObj.getDict() : (Dict *)NULL;
+
+ // check for a transparency group
+ transpGroup = isolated = knockout = gFalse;
+ blendingColorSpace = NULL;
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj1 = dict->lookup(const_cast<char*>("Group"))).isDict()) {
+- if ((obj2 = obj1.dictLookup(const_cast<char*>("S"))).isName(const_cast<char*>("Transparency"))) {
+-#else
+- if (dict->lookup(const_cast<char*>("Group"), &obj1)->isDict()) {
+- if (obj1.dictLookup(const_cast<char*>("S"), &obj2)->isName(const_cast<char*>("Transparency"))) {
+-#endif
++ if (_POPPLER_CALL_ARGS_DEREF(obj1, dict->lookup, "Group").isDict()) {
++ if (_POPPLER_CALL_ARGS_DEREF(obj2, obj1.dictLookup, "S").isName("Transparency")) {
+ transpGroup = gTrue;
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if (!((obj3 = obj1.dictLookup(const_cast<char*>("CS"))).isNull())) {
+-#else
+- if (!obj1.dictLookup(const_cast<char*>("CS"), &obj3)->isNull()) {
+-#endif
++ if (!_POPPLER_CALL_ARGS_DEREF(obj3, obj1.dictLookup, "CS").isNull()) {
+ #if defined(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API)
+ blendingColorSpace = GfxColorSpace::parse(NULL, &obj3, NULL, NULL);
+ #elif defined(POPPLER_EVEN_NEWER_COLOR_SPACE_API)
+@@ -3503,32 +3029,19 @@ void PdfParser::doForm(Object *str) {
+ blendingColorSpace = GfxColorSpace::parse(&obj3, NULL);
+ #endif
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj3 = obj1.dictLookup(const_cast<char*>("I"))).isBool()) {
+-#else
+- obj3.free();
+- if (obj1.dictLookup(const_cast<char*>("I"), &obj3)->isBool()) {
+-#endif
++ _POPPLER_FREE(obj3);
++ if (_POPPLER_CALL_ARGS_DEREF(obj3, obj1.dictLookup, "I").isBool()) {
+ isolated = obj3.getBool();
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
+- if ((obj3 = obj1.dictLookup(const_cast<char*>("K"))).isBool()) {
+-#else
+- obj3.free();
+- if (obj1.dictLookup(const_cast<char*>("K"), &obj3)->isBool()) {
+-#endif
++ _POPPLER_FREE(obj3);
++ if (_POPPLER_CALL_ARGS_DEREF(obj3, obj1.dictLookup, "K").isBool()) {
+ knockout = obj3.getBool();
+ }
+-#if defined(POPPLER_NEW_OBJECT_API)
++ _POPPLER_FREE(obj3);
+ }
++ _POPPLER_FREE(obj2);
+ }
+-#else
+- obj3.free();
+- }
+- obj2.free();
+- }
+- obj1.free();
+-#endif
++ _POPPLER_FREE(obj1);
+
+ // draw it
+ ++formDepth;
+@@ -3539,9 +3052,7 @@ void PdfParser::doForm(Object *str) {
+ if (blendingColorSpace) {
+ delete blendingColorSpace;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- resObj.free();
+-#endif
++ _POPPLER_FREE(resObj);
+ }
+
+ void PdfParser::doForm1(Object *str, Dict *resDict, double *matrix, double *bbox,
+@@ -3670,17 +3181,14 @@ Stream *PdfParser::buildImageStream() {
+ // build dictionary
+ #if defined(POPPLER_NEW_OBJECT_API)
+ dict = Object(new Dict(xref));
+- obj = parser->getObj();
+ #else
+ dict.initDict(xref);
+- parser->getObj(&obj);
+ #endif
++ _POPPLER_CALL(obj, parser->getObj);
+ while (!obj.isCmd(const_cast<char*>("ID")) && !obj.isEOF()) {
+ if (!obj.isName()) {
+ error(errSyntaxError, getPos(), "Inline image dictionary key must be a name object");
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj.free();
+-#endif
++ _POPPLER_FREE(obj);
+ } else {
+ Object obj2;
+ _POPPLER_CALL(obj2, parser->getObj);
+@@ -3696,15 +3204,11 @@ Stream *PdfParser::buildImageStream() {
+ }
+ if (obj.isEOF()) {
+ error(errSyntaxError, getPos(), "End of file in inline image");
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj.free();
+- dict.free();
+-#endif
++ _POPPLER_FREE(obj);
++ _POPPLER_FREE(dict);
+ return NULL;
+ }
+-#if !defined(POPPLER_NEW_OBJECT_API)
+- obj.free();
+-#endif
++ _POPPLER_FREE(obj);
+
+ // make stream
+ #if defined(POPPLER_NEW_OBJECT_API)
+diff --git a/src/extension/internal/pdfinput/poppler-transition-api.h b/src/extension/internal/pdfinput/poppler-transition-api.h
+index 898e64bf2b..6ed911b04b 100644
+--- a/src/extension/internal/pdfinput/poppler-transition-api.h
++++ b/src/extension/internal/pdfinput/poppler-transition-api.h
+@@ -22,10 +22,12 @@
+ #define _POPPLER_FREE(obj)
+ #define _POPPLER_CALL(ret, func) (ret = func())
+ #define _POPPLER_CALL_ARGS(ret, func, ...) (ret = func(__VA_ARGS__))
++#define _POPPLER_CALL_ARGS_DEREF _POPPLER_CALL_ARGS
+ #else
+ #define _POPPLER_FREE(obj) (obj).free()
+ #define _POPPLER_CALL(ret, func) (*func(&ret))
+-#define _POPPLER_CALL_ARGS(ret, func, ...) (*func(__VA_ARGS__, &ret))
++#define _POPPLER_CALL_ARGS(ret, func, ...) (func(__VA_ARGS__, &ret))
++#define _POPPLER_CALL_ARGS_DEREF(...) (*_POPPLER_CALL_ARGS(__VA_ARGS__))
+ #endif
+
+ #if POPPLER_CHECK_VERSION(0, 29, 0)
+--
+2.18.1
+
+From d047859d90cef3784e2d13e40887a70d8d517897 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Bart=C5=82omiej=20Szczepaniak?=
+ <szczepaniak.bartek(a)gmail.com>
+Date: Tue, 6 Nov 2018 07:41:40 +0000
+Subject: [PATCH] fix poppler 0.71.0 build.
+
+---
+ src/extension/internal/pdfinput/poppler-transition-api.h | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/src/extension/internal/pdfinput/poppler-transition-api.h b/src/extension/internal/pdfinput/poppler-transition-api.h
+index 6ed911b04b..4437052593 100644
+--- a/src/extension/internal/pdfinput/poppler-transition-api.h
++++ b/src/extension/internal/pdfinput/poppler-transition-api.h
+@@ -3,6 +3,12 @@
+
+ #include <glib/poppler-features.h>
+
++#if POPPLER_CHECK_VERSION(0,71,0)
++typedef bool GBool;
++#define gTrue true
++#define gFalse false
++#endif
++
+ #if POPPLER_CHECK_VERSION(0,70,0)
+ #define _POPPLER_CONST const
+ #else
+--
+2.18.1
+
+From b3d59cc8106da3bf6020a6c47eeb3b8a7bbae1a9 Mon Sep 17 00:00:00 2001
+From: Thomas Holder <thomas(a)thomas-holder.de>
+Date: Sun, 9 Dec 2018 10:21:34 +0100
+Subject: [PATCH] fix poppler 0.72.0 build
+
+---
+ src/extension/internal/pdfinput/pdf-parser.h | 1 -
+ src/extension/internal/pdfinput/poppler-transition-api.h | 4 ++++
+ 2 files changed, 4 insertions(+), 1 deletion(-)
+
+diff --git a/src/extension/internal/pdfinput/pdf-parser.h b/src/extension/internal/pdfinput/pdf-parser.h
+index 2d4441a22c..31c84d51bb 100644
+--- a/src/extension/internal/pdfinput/pdf-parser.h
++++ b/src/extension/internal/pdfinput/pdf-parser.h
+@@ -37,7 +37,6 @@ namespace Inkscape {
+ using Inkscape::Extension::Internal::SvgBuilder;
+
+ #include "glib/poppler-features.h"
+-#include "goo/gtypes.h"
+ #include "Object.h"
+
+ class GooString;
+diff --git a/src/extension/internal/pdfinput/poppler-transition-api.h b/src/extension/internal/pdfinput/poppler-transition-api.h
+index 5141bf8a73..61a15083a0 100644
+--- a/src/extension/internal/pdfinput/poppler-transition-api.h
++++ b/src/extension/internal/pdfinput/poppler-transition-api.h
+@@ -14,6 +14,10 @@
+
+ #include <glib/poppler-features.h>
+
++#if POPPLER_CHECK_VERSION(0, 72, 0)
++#define getCString c_str
++#endif
++
+ #if POPPLER_CHECK_VERSION(0,71,0)
+ typedef bool GBool;
+ #define gTrue true
+--
+2.18.1
+
+--- inkscape-0.92.3/src/extension/internal/pdfinput/pdf-parser.cpp.orig 2018-12-30 19:56:11.689042654 +0100
++++ inkscape-0.92.3/src/extension/internal/pdfinput/pdf-parser.cpp 2018-12-30 21:38:40.562305778 +0100
+@@ -39,7 +39,6 @@
+ #include "glib/poppler-features.h"
+ #include "goo/gmem.h"
+ #include "goo/GooTimer.h"
+-#include "goo/GooHash.h"
+ #include "GlobalParams.h"
+ #include "CharTypes.h"
+ #include "Object.h"
diff --git a/inkscape/poppler-fixes-from-master.patch b/inkscape/poppler-fixes-from-master.patch
deleted file mode 100644
index c29ffde4..00000000
--- a/inkscape/poppler-fixes-from-master.patch
+++ /dev/null
@@ -1,710 +0,0 @@
-From bee18ea9799e34aaf9141141f14384fd6b9cf7bd Mon Sep 17 00:00:00 2001
-From: Eduard Braun <eduard.braun2(a)gmx.de>
-Date: Tue, 24 Apr 2018 19:18:26 +0200
-Subject: [PATCH 1/4] Fix compilation with poppler 0.64
-
----
- src/extension/internal/pdfinput/pdf-parser.cpp | 10 +++++-----
- src/extension/internal/pdfinput/pdf-parser.h | 2 +-
- src/extension/internal/pdfinput/svg-builder.cpp | 4 ++--
- src/extension/internal/pdfinput/svg-builder.h | 3 +--
- 4 files changed, 9 insertions(+), 10 deletions(-)
-
-diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
-index 604b7f8079..721524e10a 100644
---- a/src/extension/internal/pdfinput/pdf-parser.cpp
-+++ b/src/extension/internal/pdfinput/pdf-parser.cpp
-@@ -2582,7 +2582,7 @@ void PdfParser::opShowSpaceText(Object args[], int /*numArgs*/)
- }
- }
-
--void PdfParser::doShowText(GooString *s) {
-+void PdfParser::doShowText(const GooString *s) {
- GfxFont *font;
- int wMode;
- double riseX, riseY;
-@@ -2601,7 +2601,7 @@ void PdfParser::doShowText(GooString *s) {
- font = state->getFont();
- wMode = font->getWMode();
-
-- builder->beginString(state, s);
-+ builder->beginString(state);
-
- // handle a Type 3 char
- if (font->getType() == fontType3 && 0) {//out->interpretType3Chars()) {
-@@ -2631,7 +2631,7 @@ void PdfParser::doShowText(GooString *s) {
- double lineX = state->getLineX();
- double lineY = state->getLineY();
- oldParser = parser;
-- p = s->getCString();
-+ p = g_strdup(s->getCString());
- len = s->getLength();
- while (len > 0) {
- n = font->getNextChar(p, len, &code,
-@@ -2686,7 +2686,7 @@ void PdfParser::doShowText(GooString *s) {
-
- } else {
- state->textTransformDelta(0, state->getRise(), &riseX, &riseY);
-- p = s->getCString();
-+ p = g_strdup(s->getCString());
- len = s->getLength();
- while (len > 0) {
- n = font->getNextChar(p, len, &code,
-@@ -2732,7 +2732,7 @@ void PdfParser::opXObject(Object args[], int /*numArgs*/)
- {
- Object obj1, obj2, obj3, refObj;
-
-- char *name = args[0].getName();
-+ char *name = g_strdup(args[0].getName());
- #if defined(POPPLER_NEW_OBJECT_API)
- if ((obj1 = res->lookupXObject(name)).isNull()) {
- #else
-diff --git a/src/extension/internal/pdfinput/pdf-parser.h b/src/extension/internal/pdfinput/pdf-parser.h
-index e28fecc2e1..f985b15cad 100644
---- a/src/extension/internal/pdfinput/pdf-parser.h
-+++ b/src/extension/internal/pdfinput/pdf-parser.h
-@@ -287,7 +287,7 @@ private:
- void opMoveShowText(Object args[], int numArgs);
- void opMoveSetShowText(Object args[], int numArgs);
- void opShowSpaceText(Object args[], int numArgs);
-- void doShowText(GooString *s);
-+ void doShowText(const GooString *s);
-
- // XObject operators
- void opXObject(Object args[], int numArgs);
-diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp
-index a448be6397..617861928d 100644
---- a/src/extension/internal/pdfinput/svg-builder.cpp
-+++ b/src/extension/internal/pdfinput/svg-builder.cpp
-@@ -1020,7 +1020,7 @@ void SvgBuilder::updateFont(GfxState *state) {
- GfxFont *font = state->getFont();
- // Store original name
- if (font->getName()) {
-- _font_specification = font->getName()->getCString();
-+ _font_specification = g_strdup(font->getName()->getCString());
- } else {
- _font_specification = (char*) "Arial";
- }
-@@ -1361,7 +1361,7 @@ void SvgBuilder::_flushText() {
- _glyphs.clear();
- }
-
--void SvgBuilder::beginString(GfxState *state, GooString * /*s*/) {
-+void SvgBuilder::beginString(GfxState *state) {
- if (_need_font_update) {
- updateFont(state);
- }
-diff --git a/src/extension/internal/pdfinput/svg-builder.h b/src/extension/internal/pdfinput/svg-builder.h
-index ad15c9c06f..ed2a4d48e0 100644
---- a/src/extension/internal/pdfinput/svg-builder.h
-+++ b/src/extension/internal/pdfinput/svg-builder.h
-@@ -29,7 +29,6 @@ namespace Inkscape {
- #include <glibmm/ustring.h>
-
- #include "CharTypes.h"
--class GooString;
- class Function;
- class GfxState;
- struct GfxColor;
-@@ -136,7 +135,7 @@ public:
- void clearSoftMask(GfxState *state);
-
- // Text handling
-- void beginString(GfxState *state, GooString *s);
-+ void beginString(GfxState *state);
- void endString(GfxState *state);
- void addChar(GfxState *state, double x, double y,
- double dx, double dy,
---
-2.19.1
-
-
-From 60d37b26a344a749c0b2eda003c92bad7470ebba Mon Sep 17 00:00:00 2001
-From: Jan Palus <atler(a)pld-linux.org>
-Date: Fri, 25 May 2018 00:30:17 +0200
-Subject: [PATCH 2/4] Fix compilation with poppler 0.65.0
-
-replace unused includes with one that is actually used
-
-Signed-off-by: Jan Palus <atler(a)pld-linux.org>
----
- src/extension/internal/pdfinput/pdf-parser.cpp | 3 +--
- 1 file changed, 1 insertion(+), 2 deletions(-)
-
-diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
-index 721524e10a..a3aa3213a1 100644
---- a/src/extension/internal/pdfinput/pdf-parser.cpp
-+++ b/src/extension/internal/pdfinput/pdf-parser.cpp
-@@ -37,8 +37,7 @@ extern "C" {
- #include "util/units.h"
-
- #include "goo/gmem.h"
--#include "goo/GooTimer.h"
--#include "goo/GooHash.h"
-+#include "goo/GooString.h"
- #include "GlobalParams.h"
- #include "CharTypes.h"
- #include "Object.h"
---
-2.19.1
-
-
-From 20795fdf1314a2f0047d6834f290a92e493764c7 Mon Sep 17 00:00:00 2001
-From: Eduard Braun <eduard.braun2(a)gmx.de>
-Date: Wed, 5 Sep 2018 00:31:06 +0200
-Subject: [PATCH 3/4] Modified fix for compatibility with poppler 0.64
-
-This is slightly uglier than a600c6438fef2f4c06f9a4a7d933d99fb054a973
-but avoids duplicating strings (which is unnecessary and leaked memory).
-
-It's also closer to what upstream intended with the changes in 0.64.
----
- .../internal/pdfinput/pdf-parser.cpp | 19 ++++++++++++++++---
- src/extension/internal/pdfinput/pdf-parser.h | 6 ++++++
- .../internal/pdfinput/svg-builder.cpp | 6 +++---
- src/extension/internal/pdfinput/svg-builder.h | 4 ++--
- 4 files changed, 27 insertions(+), 8 deletions(-)
-
-diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
-index a3aa3213a1..ea9f902e09 100644
---- a/src/extension/internal/pdfinput/pdf-parser.cpp
-+++ b/src/extension/internal/pdfinput/pdf-parser.cpp
-@@ -36,6 +36,7 @@ extern "C" {
- #include "pdf-parser.h"
- #include "util/units.h"
-
-+#include "glib/poppler-features.h"
- #include "goo/gmem.h"
- #include "goo/GooString.h"
- #include "GlobalParams.h"
-@@ -2581,7 +2582,11 @@ void PdfParser::opShowSpaceText(Object args[], int /*numArgs*/)
- }
- }
-
-+#if POPPLER_CHECK_VERSION(0,64,0)
- void PdfParser::doShowText(const GooString *s) {
-+#else
-+void PdfParser::doShowText(GooString *s) {
-+#endif
- GfxFont *font;
- int wMode;
- double riseX, riseY;
-@@ -2594,7 +2599,11 @@ void PdfParser::doShowText(const GooString *s) {
- Object charProc;
- Dict *resDict;
- Parser *oldParser;
-+#if POPPLER_CHECK_VERSION(0,64,0)
-+ const char *p;
-+#else
- char *p;
-+#endif
- int len, n, uLen;
-
- font = state->getFont();
-@@ -2630,7 +2639,7 @@ void PdfParser::doShowText(const GooString *s) {
- double lineX = state->getLineX();
- double lineY = state->getLineY();
- oldParser = parser;
-- p = g_strdup(s->getCString());
-+ p = s->getCString();
- len = s->getLength();
- while (len > 0) {
- n = font->getNextChar(p, len, &code,
-@@ -2685,7 +2694,7 @@ void PdfParser::doShowText(const GooString *s) {
-
- } else {
- state->textTransformDelta(0, state->getRise(), &riseX, &riseY);
-- p = g_strdup(s->getCString());
-+ p = s->getCString();
- len = s->getLength();
- while (len > 0) {
- n = font->getNextChar(p, len, &code,
-@@ -2731,7 +2740,11 @@ void PdfParser::opXObject(Object args[], int /*numArgs*/)
- {
- Object obj1, obj2, obj3, refObj;
-
-- char *name = g_strdup(args[0].getName());
-+#if POPPLER_CHECK_VERSION(0,64,0)
-+ const char *name = args[0].getName();
-+#else
-+ char *name = args[0].getName();
-+#endif
- #if defined(POPPLER_NEW_OBJECT_API)
- if ((obj1 = res->lookupXObject(name)).isNull()) {
- #else
-diff --git a/src/extension/internal/pdfinput/pdf-parser.h b/src/extension/internal/pdfinput/pdf-parser.h
-index f985b15cad..ed28274f42 100644
---- a/src/extension/internal/pdfinput/pdf-parser.h
-+++ b/src/extension/internal/pdfinput/pdf-parser.h
-@@ -25,6 +25,7 @@ namespace Inkscape {
- // TODO clean up and remove using:
- using Inkscape::Extension::Internal::SvgBuilder;
-
-+#include "glib/poppler-features.h"
- #include "goo/gtypes.h"
- #include "Object.h"
-
-@@ -287,7 +288,12 @@ private:
- void opMoveShowText(Object args[], int numArgs);
- void opMoveSetShowText(Object args[], int numArgs);
- void opShowSpaceText(Object args[], int numArgs);
-+#if POPPLER_CHECK_VERSION(0,64,0)
- void doShowText(const GooString *s);
-+#else
-+ void doShowText(GooString *s);
-+#endif
-+
-
- // XObject operators
- void opXObject(Object args[], int numArgs);
-diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp
-index 617861928d..767c8af4d4 100644
---- a/src/extension/internal/pdfinput/svg-builder.cpp
-+++ b/src/extension/internal/pdfinput/svg-builder.cpp
-@@ -1020,9 +1020,9 @@ void SvgBuilder::updateFont(GfxState *state) {
- GfxFont *font = state->getFont();
- // Store original name
- if (font->getName()) {
-- _font_specification = g_strdup(font->getName()->getCString());
-+ _font_specification = font->getName()->getCString();
- } else {
-- _font_specification = (char*) "Arial";
-+ _font_specification = "Arial";
- }
-
- // Prune the font name to get the correct font family name
-@@ -1030,7 +1030,7 @@ void SvgBuilder::updateFont(GfxState *state) {
- char *font_family = NULL;
- char *font_style = NULL;
- char *font_style_lowercase = NULL;
-- char *plus_sign = strstr(_font_specification, "+");
-+ const char *plus_sign = strstr(_font_specification, "+");
- if (plus_sign) {
- font_family = g_strdup(plus_sign + 1);
- _font_specification = plus_sign + 1;
-diff --git a/src/extension/internal/pdfinput/svg-builder.h b/src/extension/internal/pdfinput/svg-builder.h
-index ed2a4d48e0..55daacee74 100644
---- a/src/extension/internal/pdfinput/svg-builder.h
-+++ b/src/extension/internal/pdfinput/svg-builder.h
-@@ -80,7 +80,7 @@ struct SvgGlyph {
- bool style_changed; // Set to true if style has to be reset
- SPCSSAttr *style;
- int render_mode; // Text render mode
-- char *font_specification; // Pointer to current font specification
-+ const char *font_specification; // Pointer to current font specification
- };
-
- /**
-@@ -202,7 +202,7 @@ private:
-
- SPCSSAttr *_font_style; // Current font style
- GfxFont *_current_font;
-- char *_font_specification;
-+ const char *_font_specification;
- double _font_scaling;
- bool _need_font_update;
- Geom::Affine _text_matrix;
---
-2.19.1
-
-
-From bc2b40c17dc4fdbb90675b6dc80e30e7e08c4488 Mon Sep 17 00:00:00 2001
-From: Thomas Holder <thomas(a)thomas-holder.de>
-Date: Fri, 28 Sep 2018 18:05:30 +0000
-Subject: [PATCH 4/4] fix 1789208 poppler 0.69
-
----
- CMakeScripts/DefineDependsandFlags.cmake | 12 -----
- src/extension/internal/pdfinput/pdf-input.cpp | 2 +-
- src/extension/internal/pdfinput/pdf-input.h | 1 +
- .../internal/pdfinput/pdf-parser.cpp | 46 ++++++++-----------
- src/extension/internal/pdfinput/pdf-parser.h | 12 +++--
- .../pdfinput/poppler-transition-api.h | 39 ++++++++++++++++
- .../internal/pdfinput/svg-builder.cpp | 22 ++++-----
- src/extension/internal/pdfinput/svg-builder.h | 3 +-
- 8 files changed, 80 insertions(+), 57 deletions(-)
- create mode 100644 src/extension/internal/pdfinput/poppler-transition-api.h
-
-diff --git a/CMakeScripts/DefineDependsandFlags.cmake b/CMakeScripts/DefineDependsandFlags.cmake
-index c33a3bfb5e..fa67f67714 100644
---- a/CMakeScripts/DefineDependsandFlags.cmake
-+++ b/CMakeScripts/DefineDependsandFlags.cmake
-@@ -116,18 +116,6 @@ if(ENABLE_POPPLER)
- set(HAVE_POPPLER_GLIB ON)
- endif()
- endif()
-- if(POPPLER_VERSION VERSION_GREATER "0.26.0" OR
-- POPPLER_VERSION VERSION_EQUAL "0.26.0")
-- set(POPPLER_EVEN_NEWER_COLOR_SPACE_API ON)
-- endif()
-- if(POPPLER_VERSION VERSION_GREATER "0.29.0" OR
-- POPPLER_VERSION VERSION_EQUAL "0.29.0")
-- set(POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API ON)
-- endif()
-- if(POPPLER_VERSION VERSION_GREATER "0.58.0" OR
-- POPPLER_VERSION VERSION_EQUAL "0.58.0")
-- set(POPPLER_NEW_OBJECT_API ON)
-- endif()
- else()
- set(ENABLE_POPPLER_CAIRO OFF)
- endif()
-diff --git a/src/extension/internal/pdfinput/pdf-input.cpp b/src/extension/internal/pdfinput/pdf-input.cpp
-index e3115620e3..9621e306a0 100644
---- a/src/extension/internal/pdfinput/pdf-input.cpp
-+++ b/src/extension/internal/pdfinput/pdf-input.cpp
-@@ -793,7 +793,7 @@ PdfInput::open(::Inkscape::Extension::Input * /*mod*/, const gchar * uri) {
- dlg->getImportSettings(prefs);
-
- // Apply crop settings
-- PDFRectangle *clipToBox = NULL;
-+ _POPPLER_CONST PDFRectangle *clipToBox = NULL;
- double crop_setting;
- sp_repr_get_double(prefs, "cropTo", &crop_setting);
-
-diff --git a/src/extension/internal/pdfinput/pdf-input.h b/src/extension/internal/pdfinput/pdf-input.h
-index 6e36603c31..73bbfe2a71 100644
---- a/src/extension/internal/pdfinput/pdf-input.h
-+++ b/src/extension/internal/pdfinput/pdf-input.h
-@@ -15,6 +15,7 @@
- #endif
-
- #ifdef HAVE_POPPLER
-+#include "poppler-transition-api.h"
-
- #include <gtkmm/dialog.h>
-
-diff --git a/src/extension/internal/pdfinput/pdf-parser.cpp b/src/extension/internal/pdfinput/pdf-parser.cpp
-index ea9f902e09..4a7fd8a5e5 100644
---- a/src/extension/internal/pdfinput/pdf-parser.cpp
-+++ b/src/extension/internal/pdfinput/pdf-parser.cpp
-@@ -295,8 +295,8 @@ PdfParser::PdfParser(XRef *xrefA,
- int /*pageNum*/,
- int rotate,
- Dict *resDict,
-- PDFRectangle *box,
-- PDFRectangle *cropBox) :
-+ _POPPLER_CONST PDFRectangle *box,
-+ _POPPLER_CONST PDFRectangle *cropBox) :
- xref(xrefA),
- builder(builderA),
- subPage(gFalse),
-@@ -318,7 +318,7 @@ PdfParser::PdfParser(XRef *xrefA,
- builder->setDocumentSize(Inkscape::Util::Quantity::convert(state->getPageWidth(), "pt", "px"),
- Inkscape::Util::Quantity::convert(state->getPageHeight(), "pt", "px"));
-
-- double *ctm = state->getCTM();
-+ const double *ctm = state->getCTM();
- double scaledCTM[6];
- for (int i = 0; i < 6; ++i) {
- baseMatrix[i] = ctm[i];
-@@ -353,7 +353,7 @@ PdfParser::PdfParser(XRef *xrefA,
- PdfParser::PdfParser(XRef *xrefA,
- Inkscape::Extension::Internal::SvgBuilder *builderA,
- Dict *resDict,
-- PDFRectangle *box) :
-+ _POPPLER_CONST PDFRectangle *box) :
- xref(xrefA),
- builder(builderA),
- subPage(gTrue),
-@@ -572,7 +572,7 @@ const char *PdfParser::getPreviousOperator(unsigned int look_back) {
-
- void PdfParser::execOp(Object *cmd, Object args[], int numArgs) {
- PdfOperator *op;
-- char *name;
-+ const char *name;
- Object *argPtr;
- int i;
-
-@@ -620,7 +620,7 @@ void PdfParser::execOp(Object *cmd, Object args[], int numArgs) {
- (this->*op->func)(argPtr, numArgs);
- }
-
--PdfOperator* PdfParser::findOp(char *name) {
-+PdfOperator* PdfParser::findOp(const char *name) {
- int a = -1;
- int b = numOps;
- int cmp = -1;
-@@ -1752,7 +1752,7 @@ void PdfParser::doShadingPatternFillFallback(GfxShadingPattern *sPat,
- GBool stroke, GBool eoFill) {
- GfxShading *shading;
- GfxPath *savedPath;
-- double *ctm, *btm, *ptm;
-+ const double *ctm, *btm, *ptm;
- double m[6], ictm[6], m1[6];
- double xMin, yMin, xMax, yMax;
- double det;
-@@ -1994,7 +1994,7 @@ void PdfParser::doFunctionShFill1(GfxFunctionShading *shading,
- GfxColor color0M, color1M, colorM0, colorM1, colorMM;
- GfxColor colors2[4];
- double functionColorDelta = colorDeltas[pdfFunctionShading-1];
-- double *matrix;
-+ const double *matrix;
- double xM, yM;
- int nComps, i, j;
-
-@@ -2174,7 +2174,7 @@ void PdfParser::doPatchMeshShFill(GfxPatchMeshShading *shading) {
- }
- }
-
--void PdfParser::fillPatch(GfxPatch *patch, int nComps, int depth) {
-+void PdfParser::fillPatch(_POPPLER_CONST GfxPatch *patch, int nComps, int depth) {
- GfxPatch patch00 = blankPatch();
- GfxPatch patch01 = blankPatch();
- GfxPatch patch10 = blankPatch();
-@@ -2595,7 +2595,7 @@ void PdfParser::doShowText(GooString *s) {
- double x, y, dx, dy, tdx, tdy;
- double originX, originY, tOriginX, tOriginY;
- double oldCTM[6], newCTM[6];
-- double *mat;
-+ const double *mat;
- Object charProc;
- Dict *resDict;
- Parser *oldParser;
-@@ -3669,7 +3669,6 @@ void PdfParser::opBeginImage(Object /*args*/[], int /*numArgs*/)
- Stream *PdfParser::buildImageStream() {
- Object dict;
- Object obj;
-- char *key;
- Stream *str;
-
- // build dictionary
-@@ -3687,26 +3686,17 @@ Stream *PdfParser::buildImageStream() {
- obj.free();
- #endif
- } else {
-- key = copyString(obj.getName());
--#if defined(POPPLER_NEW_OBJECT_API)
-- obj = parser->getObj();
--#else
-- obj.free();
-- parser->getObj(&obj);
--#endif
-- if (obj.isEOF() || obj.isError()) {
-- gfree(key);
-+ Object obj2;
-+ _POPPLER_CALL(obj2, parser->getObj);
-+ if (obj2.isEOF() || obj2.isError()) {
-+ _POPPLER_FREE(obj);
- break;
- }
--#if defined(POPPLER_NEW_OBJECT_API)
-- dict.dictAdd(key, std::move(obj));
-+ _POPPLER_DICTADD(dict, obj.getName(), obj2);
-+ _POPPLER_FREE(obj);
-+ _POPPLER_FREE(obj2);
- }
-- obj = parser->getObj();
--#else
-- dict.dictAdd(key, &obj);
-- }
-- parser->getObj(&obj);
--#endif
-+ _POPPLER_CALL(obj, parser->getObj);
- }
- if (obj.isEOF()) {
- error(errSyntaxError, getPos(), "End of file in inline image");
-diff --git a/src/extension/internal/pdfinput/pdf-parser.h b/src/extension/internal/pdfinput/pdf-parser.h
-index ed28274f42..0a04c81d46 100644
---- a/src/extension/internal/pdfinput/pdf-parser.h
-+++ b/src/extension/internal/pdfinput/pdf-parser.h
-@@ -9,6 +9,7 @@
- #define PDF_PARSER_H
-
- #ifdef HAVE_POPPLER
-+#include "poppler-transition-api.h"
-
- #ifdef USE_GCC_PRAGMAS
- #pragma interface
-@@ -128,11 +129,14 @@ public:
-
- // Constructor for regular output.
- PdfParser(XRef *xrefA, SvgBuilder *builderA, int pageNum, int rotate,
-- Dict *resDict, PDFRectangle *box, PDFRectangle *cropBox);
-+ Dict *resDict,
-+ _POPPLER_CONST PDFRectangle *box,
-+ _POPPLER_CONST PDFRectangle *cropBox);
-
- // Constructor for a sub-page object.
- PdfParser(XRef *xrefA, Inkscape::Extension::Internal::SvgBuilder *builderA,
-- Dict *resDict, PDFRectangle *box);
-+ Dict *resDict,
-+ _POPPLER_CONST PDFRectangle *box);
-
- virtual ~PdfParser();
-
-@@ -186,7 +190,7 @@ private:
-
- void go(GBool topLevel);
- void execOp(Object *cmd, Object args[], int numArgs);
-- PdfOperator *findOp(char *name);
-+ PdfOperator *findOp(const char *name);
- GBool checkArg(Object *arg, TchkType type);
- int getPos();
-
-@@ -257,7 +261,7 @@ private:
- double x2, double y2, GfxColor *color2,
- int nComps, int depth);
- void doPatchMeshShFill(GfxPatchMeshShading *shading);
-- void fillPatch(GfxPatch *patch, int nComps, int depth);
-+ void fillPatch(_POPPLER_CONST GfxPatch *patch, int nComps, int depth);
- void doEndPath();
-
- // path clipping operators
-diff --git a/src/extension/internal/pdfinput/poppler-transition-api.h b/src/extension/internal/pdfinput/poppler-transition-api.h
-new file mode 100644
-index 0000000000..898e64bf2b
---- /dev/null
-+++ b/src/extension/internal/pdfinput/poppler-transition-api.h
-@@ -0,0 +1,39 @@
-+#ifndef SEEN_POPPLER_TRANSITION_API_H
-+#define SEEN_POPPLER_TRANSITION_API_H
-+
-+#include <glib/poppler-features.h>
-+
-+#if POPPLER_CHECK_VERSION(0,70,0)
-+#define _POPPLER_CONST const
-+#else
-+#define _POPPLER_CONST
-+#endif
-+
-+#if POPPLER_CHECK_VERSION(0,69,0)
-+#define _POPPLER_DICTADD(dict, key, obj) (dict).dictAdd(key, std::move(obj))
-+#elif POPPLER_CHECK_VERSION(0,58,0)
-+#define _POPPLER_DICTADD(dict, key, obj) (dict).dictAdd(copyString(key), std::move(obj))
-+#else
-+#define _POPPLER_DICTADD(dict, key, obj) (dict).dictAdd(copyString(key), &obj)
-+#endif
-+
-+#if POPPLER_CHECK_VERSION(0,58,0)
-+#define POPPLER_NEW_OBJECT_API
-+#define _POPPLER_FREE(obj)
-+#define _POPPLER_CALL(ret, func) (ret = func())
-+#define _POPPLER_CALL_ARGS(ret, func, ...) (ret = func(__VA_ARGS__))
-+#else
-+#define _POPPLER_FREE(obj) (obj).free()
-+#define _POPPLER_CALL(ret, func) (*func(&ret))
-+#define _POPPLER_CALL_ARGS(ret, func, ...) (*func(__VA_ARGS__, &ret))
-+#endif
-+
-+#if POPPLER_CHECK_VERSION(0, 29, 0)
-+#define POPPLER_EVEN_NEWER_NEW_COLOR_SPACE_API
-+#endif
-+
-+#if POPPLER_CHECK_VERSION(0, 25, 0)
-+#define POPPLER_EVEN_NEWER_COLOR_SPACE_API
-+#endif
-+
-+#endif
-diff --git a/src/extension/internal/pdfinput/svg-builder.cpp b/src/extension/internal/pdfinput/svg-builder.cpp
-index 767c8af4d4..d449d1af52 100644
---- a/src/extension/internal/pdfinput/svg-builder.cpp
-+++ b/src/extension/internal/pdfinput/svg-builder.cpp
-@@ -625,7 +625,7 @@ gchar *SvgBuilder::_createPattern(GfxPattern *pattern, GfxState *state, bool is_
- if ( pattern != NULL ) {
- if ( pattern->getType() == 2 ) { // Shading pattern
- GfxShadingPattern *shading_pattern = static_cast<GfxShadingPattern *>(pattern);
-- double *ptm;
-+ const double *ptm;
- double m[6] = {1, 0, 0, 1, 0, 0};
- double det;
-
-@@ -672,7 +672,7 @@ gchar *SvgBuilder::_createTilingPattern(GfxTilingPattern *tiling_pattern,
-
- Inkscape::XML::Node *pattern_node = _xml_doc->createElement("svg:pattern");
- // Set pattern transform matrix
-- double *p2u = tiling_pattern->getMatrix();
-+ const double *p2u = tiling_pattern->getMatrix();
- double m[6] = {1, 0, 0, 1, 0, 0};
- double det;
- det = _ttm[0] * _ttm[3] - _ttm[1] * _ttm[2]; // see LP Bug 1168908
-@@ -698,7 +698,7 @@ gchar *SvgBuilder::_createTilingPattern(GfxTilingPattern *tiling_pattern,
- pattern_node->setAttribute("patternUnits", "userSpaceOnUse");
- // Set pattern tiling
- // FIXME: don't ignore XStep and YStep
-- double *bbox = tiling_pattern->getBBox();
-+ const double *bbox = tiling_pattern->getBBox();
- sp_repr_set_svg_double(pattern_node, "x", 0.0);
- sp_repr_set_svg_double(pattern_node, "y", 0.0);
- sp_repr_set_svg_double(pattern_node, "width", bbox[2] - bbox[0]);
-@@ -751,7 +751,7 @@ gchar *SvgBuilder::_createTilingPattern(GfxTilingPattern *tiling_pattern,
- */
- gchar *SvgBuilder::_createGradient(GfxShading *shading, double *matrix, bool for_shading) {
- Inkscape::XML::Node *gradient;
-- Function *func;
-+ _POPPLER_CONST Function *func;
- int num_funcs;
- bool extend0, extend1;
-
-@@ -865,7 +865,7 @@ static bool svgGetShadingColorRGB(GfxShading *shading, double offset, GfxRGB *re
-
- #define INT_EPSILON 8
- bool SvgBuilder::_addGradientStops(Inkscape::XML::Node *gradient, GfxShading *shading,
-- Function *func) {
-+ _POPPLER_CONST Function *func) {
- int type = func->getType();
- if ( type == 0 || type == 2 ) { // Sampled or exponential function
- GfxRGB stop1, stop2;
-@@ -877,9 +877,9 @@ bool SvgBuilder::_addGradientStops(Inkscape::XML::Node *gradient, GfxShading *sh
- _addStopToGradient(gradient, 1.0, &stop2, 1.0);
- }
- } else if ( type == 3 ) { // Stitching
-- StitchingFunction *stitchingFunc = static_cast<StitchingFunction*>(func);
-- double *bounds = stitchingFunc->getBounds();
-- double *encode = stitchingFunc->getEncode();
-+ auto stitchingFunc = static_cast<_POPPLER_CONST StitchingFunction*>(func);
-+ const double *bounds = stitchingFunc->getBounds();
-+ const double *encode = stitchingFunc->getEncode();
- int num_funcs = stitchingFunc->getNumFuncs();
-
- // Add stops from all the stitched functions
-@@ -890,7 +890,7 @@ bool SvgBuilder::_addGradientStops(Inkscape::XML::Node *gradient, GfxShading *sh
- svgGetShadingColorRGB(shading, bounds[i + 1], &color);
- // Add stops
- if (stitchingFunc->getFunc(i)->getType() == 2) { // process exponential fxn
-- double expE = (static_cast<ExponentialFunction*>(stitchingFunc->getFunc(i)))->getE();
-+ double expE = (static_cast<_POPPLER_CONST ExponentialFunction*>(stitchingFunc->getFunc(i)))->getE();
- if (expE > 1.0) {
- expE = (bounds[i + 1] - bounds[i])/expE; // approximate exponential as a single straight line at x=1
- if (encode[2*i] == 0) { // normal sequence
-@@ -1148,7 +1148,7 @@ void SvgBuilder::updateFont(GfxState *state) {
- Inkscape::CSSOStringStream os_font_size;
- double css_font_size = _font_scaling * state->getFontSize();
- if ( font->getType() == fontType3 ) {
-- double *font_matrix = font->getFontMatrix();
-+ const double *font_matrix = font->getFontMatrix();
- if ( font_matrix[0] != 0.0 ) {
- css_font_size *= font_matrix[3] / font_matrix[0];
- }
-@@ -1193,7 +1193,7 @@ void SvgBuilder::updateTextPosition(double tx, double ty) {
- void SvgBuilder::updateTextMatrix(GfxState *state) {
- _flushText();
- // Update text matrix
-- double *text_matrix = state->getTextMat();
-+ const double *text_matrix = state->getTextMat();
- double w_scale = sqrt( text_matrix[0] * text_matrix[0] + text_matrix[2] * text_matrix[2] );
- double h_scale = sqrt( text_matrix[1] * text_matrix[1] + text_matrix[3] * text_matrix[3] );
- double max_scale;
-diff --git a/src/extension/internal/pdfinput/svg-builder.h b/src/extension/internal/pdfinput/svg-builder.h
-index 55daacee74..34b42e17b8 100644
---- a/src/extension/internal/pdfinput/svg-builder.h
-+++ b/src/extension/internal/pdfinput/svg-builder.h
-@@ -15,6 +15,7 @@
- #endif
-
- #ifdef HAVE_POPPLER
-+#include "poppler-transition-api.h"
-
- class SPDocument;
- namespace Inkscape {
-@@ -174,7 +175,7 @@ private:
- void _addStopToGradient(Inkscape::XML::Node *gradient, double offset,
- GfxRGB *color, double opacity);
- bool _addGradientStops(Inkscape::XML::Node *gradient, GfxShading *shading,
-- Function *func);
-+ _POPPLER_CONST Function *func);
- gchar *_createTilingPattern(GfxTilingPattern *tiling_pattern, GfxState *state,
- bool is_stroke=false);
- // Image/mask creation
---
-2.19.1
-
[View Less]
1
0
ports/contrib (3.5): doxygen: 1.8.14 -> 1.8.15 and updating links to the new doxygen website
by crux@crux.nu 03 Feb '19
by crux@crux.nu 03 Feb '19
03 Feb '19
commit d45b008abb940741d1cc5605ace5a6187c4e9e24
Author: jmf <jmf(a)mesecons.net>
Date: Fri Jan 11 22:55:00 2019 +0100
doxygen: 1.8.14 -> 1.8.15 and updating links to the new doxygen website
diff --git a/doxygen/.signature b/doxygen/.signature
index 5d72c911..3f655790 100644
--- a/doxygen/.signature
+++ b/doxygen/.signature
@@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF39+RsKDf8zVqBmL4OPXwz7T+dZdxXx72b/GgMkwRItKY8Lz0ct/brt6T1+…
[View More]D2qXGKHTG1nlV10lNLGyQJf1xaqwE=
-SHA256 (Pkgfile) = 8c52eaceb4843f354a74c50c4416e42271aefb3c8a642096eba89be0b362e11c
+RWSagIOpLGJF36PDQn2pKiw6p8PcBgRKULCvKWZI/qs3jibV/VDavGttlx00X9UVSUe/s7huVvY0SeyTXRk9blAIGoeIchqD4w8=
+SHA256 (Pkgfile) = 9d9ef5bddc532bcce137584571247978e4d60a0621414af8c0410d60d0e4f88d
SHA256 (.footprint) = 0e61555d2a09dde40592598439a5cff7abcb36a09463db1700c00e4a69bc8a31
-SHA256 (doxygen-1.8.14.src.tar.gz) = d1757e02755ef6f56fd45f1f4398598b920381948d6fcfa58f5ca6aa56f59d4d
+SHA256 (doxygen-1.8.15.src.tar.gz) = bd9c0ec462b6a9b5b41ede97bede5458e0d7bb40d4cfa27f6f622eb33c59245d
diff --git a/doxygen/Pkgfile b/doxygen/Pkgfile
index cbd4275c..2ffcb2cb 100644
--- a/doxygen/Pkgfile
+++ b/doxygen/Pkgfile
@@ -1,13 +1,13 @@
# Description: Source code documentation generator tool
-# URL: http://www.stack.nl/~dimitri/doxygen/
+# URL: http://www.doxygen.nl/
# Maintainer: Jan-Michael Franz, jmf at mesecons dot net
# Packager: Hannes Mayer, kontakt at ecarux dot de
# Depends on: cmake python
name=doxygen
-version=1.8.14
+version=1.8.15
release=1
-source=(ftp://ftp.stack.nl/pub/users/dimitri/$name-$version.src.tar.gz)
+source=(http://doxygen.nl/files/$name-$version.src.tar.gz)
build() {
cd $name-$version
[View Less]
1
0
commit 87111f61482fa3bd1db0c0dd6babf5ac18821f6b
Author: Danny Rawlins <monster.romster(a)gmail.com>
Date: Fri Jan 11 22:37:54 2019 +1100
steam: 1.0.0.56 -> 1.0.0.59
diff --git a/steam/.signature b/steam/.signature
index b4f14587..13d60706 100644
--- a/steam/.signature
+++ b/steam/.signature
@@ -1,8 +1,8 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF303VCbOaZtUS4z0WJZ6GgBdLE78WRt2ScmsuzTjw61FKYqACn2jHxeCX0t35aQR170Q79i4QS0JBSfkZyfp69QY=
-SHA256 (Pkgfile) …
[View More]= 1350fda29e59a939303c900ebca533341ea9dd8a24d180de3a4b380b88e1b41c
+RWSagIOpLGJF34ZMrgO50aJeJ6tnRSZm3F6Z+Oz/wTQvtV5n8YYcRrEJHUd1G/3j7z60iinoU88bdV15034x0HYV4RpcArqT4g0=
+SHA256 (Pkgfile) = 98f49bdd604dcd5b103f51e4301ff4d2a358a9eb618c1a3f3f44635b0997936b
SHA256 (.footprint) = c0a1e971f3948a1d30dc904bbd5ad7c4072d97a209c1b9463431d78754b33b77
-SHA256 (steam_1.0.0.56.tar.gz) = da15bb347bd286c3a8818c3c910dc5bdbc43a744604d5372260ec79540ba4f06
+SHA256 (steam_1.0.0.59.tar.gz) = a5080db949793fc4eb543293a95a24131441a96ccc8f5deebdecd7257cfcd99f
SHA256 (steam-native.sh) = 049cb33ab40bcab176938e2a2cc2ac4d7fbc004a02cf73e9024b9c77380ba11e
SHA256 (steam-native.desktop) = 88ee3daafe792a9eb9d6c2b8cb4429dd5da3b18737a0eae54d64296a6a878332
SHA256 (alsa_sdl_audiodriver.patch) = 174a110eda1c9d5b1c92a4490b266b31918559bbf8292a94905221c92da4bc0e
diff --git a/steam/Pkgfile b/steam/Pkgfile
index da1f5ddf..00891012 100644
--- a/steam/Pkgfile
+++ b/steam/Pkgfile
@@ -5,7 +5,7 @@
# Optional: pulseaudio-32
name=steam
-version=1.0.0.56
+version=1.0.0.59
release=1
source=(http://repo.steampowered.com/$name/pool/$name/s/$name/${name}_$vers…
steam-native.sh
[View Less]
1
0
03 Feb '19
commit 4f420fc6d84c8f3db0acfcf1288da9c250864a82
Author: John Vogel <jvogel4(a)stny.rr.com>
Date: Tue Jan 8 10:44:50 2019 -0500
xsel: new maintainer. update to recent git.
Many bug fixes upstream. Too many to patch, since patch would be
bigger than the source archive.
diff --git a/xsel/.signature b/xsel/.signature
index b9d1c3e4..e7984994 100644
--- a/xsel/.signature
+++ b/xsel/.signature
@@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
-…
[View More]RWSagIOpLGJF37ccXmqucOxqnWdCd38nuBXS1i8nHlTrJy5KP2dRB9shiM19MPgGPwh7CUMZlIZVifOgDeKST9vS/w7FtLOx9w4=
-SHA256 (Pkgfile) = 2222f54c0a7d8f616d8317284712eb387a0e88cd87010230c2fc80abd9026779
+RWSagIOpLGJF33YFDRQ5bfLYkueOnoSfBElh/NaPOwMunt/uAH2I1C5UWN8g/Ml3U3VDI32HRZ/N3DTdHSEs3ZmZKcvIJlw3Tgo=
+SHA256 (Pkgfile) = ff1e274418b131407a550619cffa80d5918a876016c455fec63a520cca24a3c6
SHA256 (.footprint) = d7bff0629a867d6897741647434e58a83ff6c7b54b347601366ba5ceca22df18
-SHA256 (xsel-1.2.0.tar.gz) = b927ce08dc82f4c30140223959b90cf65e1076f000ce95e520419ec32f5b141c
+SHA256 (xsel-1.2.0+git9bfc13d.tar.gz) = 557d4e51fd6c29e28363940e3723fca824de80d4cac15dabd763bfba2d2bd907
diff --git a/xsel/Pkgfile b/xsel/Pkgfile
index 4d886365..c4011393 100644
--- a/xsel/Pkgfile
+++ b/xsel/Pkgfile
@@ -1,15 +1,16 @@
# Description: command-line program for getting and setting the contents of the X selection
# URL: http://www.vergenet.net/~conrad/software/xsel/
-# Maintainer: Manu Kumar, maraku at gmx dot com
+# Maintainer: John Vogel, jvogel4 at stny dot rr dot com
# Depends on: xorg-libxt
name=xsel
-version=1.2.0
-release=2
-source=(http://www.vergenet.net/~conrad/software/xsel/download/$name-$version.tar.gz)
+version=1.2.0+git9bfc13d
+release=1
+source=(http://github.com/kfish/xsel/archive/${version#*+git}/$name-$version.tar.gz)
build() {
- cd $name-$version
+ cd $name-${version#*+git}*
+ autoreconf -fi
./configure --prefix=/usr
make
make install DESTDIR=$PKG
[View Less]
1
0
commit 5c00974d4af49ea66a5ce094d89da1bcceebdc8b
Author: Thomas Penteker <tek(a)serverop.de>
Date: Fri Jan 11 02:34:03 2019 +0100
libreoffice: 6.1.3 -> 6.1.4
diff --git a/libreoffice/.signature b/libreoffice/.signature
index 0d02437f..cee1eba0 100644
--- a/libreoffice/.signature
+++ b/libreoffice/.signature
@@ -1,5 +1,5 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF3/+CT+alWELwWm/eM8vItK13RrS6+K/kAWYUQuII3WllXaw6AO6CTr1ot9SWqAJNcJLuUkeosuUybLbXcR7w0QQ=
-…
[View More]SHA256 (Pkgfile) = 249e09fd5a8d6f158691e8d3933871a59266ad1361b1eccb7d78129ca66a8cae
+RWSagIOpLGJF34J1lLEcCHxVdH4SW+M8Y1XVUy0GX8qrxUif6mmq4C4InAv9Nwtn1vBs4QjFVH0N98mKZXze2FeQr/lLOdI3Fwc=
+SHA256 (Pkgfile) = d96a2255fe2a55196f8371c42c5436ed53f1b8f04bf627fae68356c3308c0545
SHA256 (.footprint) = 92c9a75c67c58198554f14dea5bfec9d791c5b227c3e2b78ba8b0a23d356c21a
-SHA256 (LibreOffice_6.1.3_Linux_x86-64_rpm.tar.gz) = 073a002d152dd39489fc747d9f3f3478952dc4a4d909810d9acb0fd6fa76a3b2
+SHA256 (LibreOffice_6.1.4_Linux_x86-64_rpm.tar.gz) = 9fc72e44b5485f2955a76f7da52eef377b3c09b6be6f8be61ca48b8234a93474
diff --git a/libreoffice/Pkgfile b/libreoffice/Pkgfile
index 89af13ee..ff6bfef9 100644
--- a/libreoffice/Pkgfile
+++ b/libreoffice/Pkgfile
@@ -5,7 +5,7 @@
# Depends on: cups dbus-glib desktop-file-utils glu gtk krb5 shared-mime-info xorg-libxaw xorg-libxi
name=libreoffice
-version=6.1.3
+version=6.1.4
release=1
source=(http://download.documentfoundation.org/$name/stable/$version/rpm/x8…
[View Less]
1
0
commit 6c92e7bcb2f527a5559664d2650a49c3f77f9a46
Author: Matt Housh <jaeger(a)crux.ninja>
Date: Tue Jan 8 09:03:44 2019 -0600
clamav: updated to version 0.101.1
diff --git a/clamav/.footprint b/clamav/.footprint
index 9edde025..0f431cda 100644
--- a/clamav/.footprint
+++ b/clamav/.footprint
@@ -15,28 +15,27 @@ drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/freshclam
-rwxr-xr-x root/root usr/bin/sigtool
drwxr-xr-x root/root usr/include/
+-rw-r--r-- root/root usr/…
[View More]include/clamav-types.h
-rw-r--r-- root/root usr/include/clamav.h
drwxr-xr-x root/root usr/lib/
-rwxr-xr-x root/root usr/lib/libclamav.la
-lrwxrwxrwx root/root usr/lib/libclamav.so -> libclamav.so.7.1.1
-lrwxrwxrwx root/root usr/lib/libclamav.so.7 -> libclamav.so.7.1.1
--rwxr-xr-x root/root usr/lib/libclamav.so.7.1.1
--rw-r--r-- root/root usr/lib/libclammspack.a
+lrwxrwxrwx root/root usr/lib/libclamav.so -> libclamav.so.9.0.1
+lrwxrwxrwx root/root usr/lib/libclamav.so.9 -> libclamav.so.9.0.1
+-rwxr-xr-x root/root usr/lib/libclamav.so.9.0.1
-rwxr-xr-x root/root usr/lib/libclammspack.la
lrwxrwxrwx root/root usr/lib/libclammspack.so -> libclammspack.so.0.1.0
lrwxrwxrwx root/root usr/lib/libclammspack.so.0 -> libclammspack.so.0.1.0
-rwxr-xr-x root/root usr/lib/libclammspack.so.0.1.0
-rwxr-xr-x root/root usr/lib/libclamunrar.la
-lrwxrwxrwx root/root usr/lib/libclamunrar.so -> libclamunrar.so.7.1.1
-lrwxrwxrwx root/root usr/lib/libclamunrar.so.7 -> libclamunrar.so.7.1.1
--rwxr-xr-x root/root usr/lib/libclamunrar.so.7.1.1
+lrwxrwxrwx root/root usr/lib/libclamunrar.so -> libclamunrar.so.9.0.1
+lrwxrwxrwx root/root usr/lib/libclamunrar.so.9 -> libclamunrar.so.9.0.1
+-rwxr-xr-x root/root usr/lib/libclamunrar.so.9.0.1
-rwxr-xr-x root/root usr/lib/libclamunrar_iface.la
-lrwxrwxrwx root/root usr/lib/libclamunrar_iface.so -> libclamunrar_iface.so.7.1.1
-lrwxrwxrwx root/root usr/lib/libclamunrar_iface.so.7 -> libclamunrar_iface.so.7.1.1
--rwxr-xr-x root/root usr/lib/libclamunrar_iface.so.7.1.1
+lrwxrwxrwx root/root usr/lib/libclamunrar_iface.so -> libclamunrar_iface.so.9.0.1
+lrwxrwxrwx root/root usr/lib/libclamunrar_iface.so.9 -> libclamunrar_iface.so.9.0.1
+-rwxr-xr-x root/root usr/lib/libclamunrar_iface.so.9.0.1
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/libclamav.pc
--rw-r--r-- root/root usr/lib/pkgconfig/libclammspack.pc
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/clamd
drwxr-xr-x root/root usr/share/
diff --git a/clamav/.signature b/clamav/.signature
index eab157c8..9751c8d8 100644
--- a/clamav/.signature
+++ b/clamav/.signature
@@ -1,8 +1,8 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF3x6FOzO6eQE8t1bmoQR8o5My0VEKUpDLnKIse9tQw4IdfeYaTjqe94iJDi0jmfw3pzSwrirW9o7nBUxgHV8qFg8=
-SHA256 (Pkgfile) = 9d27845932b80e6f9a1feaac5c80ec313383bf8642082216b002d81d553238f5
-SHA256 (.footprint) = e3320c203d925ab33f915dd3171cb2d192d33a0ef8ddfdfdcfdaa9aef35c0120
-SHA256 (clamav-0.100.2.tar.gz) = 4a2e4f0cd41e62adb5a713b4a1857c49145cd09a69957e6d946ecad575206dd6
+RWSagIOpLGJF34/wqc4wsFDMW+rGYxQo4n5/ziLgHVgGZayvHbdLp6rc6GgxpqFQYdUL1eJeCUCtE3P8Aftj45BOoUXou3KENwI=
+SHA256 (Pkgfile) = 69ccc3138203b23ae93df4c304cf15d5bb03b5f31588c2a826f2cb1633068f9b
+SHA256 (.footprint) = 7abe8ba5fb5d1625f3b5753b5164684c358921c3395d547fa1dd89a434d33e68
+SHA256 (clamav-0.101.1.tar.gz) = fa368fa9b2f57638696150c7d108b06dec284e8d8e3b8e702c784947c01fb806
SHA256 (clamd.conf) = e8a57ed7c3110fdda708f0b3f2fbfc97f944bc5e1987c40a164d864d5570bea5
SHA256 (freshclam.conf) = 1374ba1986a7320ded85dcf6136741dc9fc8da7316d393ce4b29bac26a8a897e
SHA256 (clamd) = b5de1447901943ac057b531c0b40e8bf21c4eb0d771fa27d6a6c8835c35ea2a7
diff --git a/clamav/Pkgfile b/clamav/Pkgfile
index 1cc60f0f..2bfcf307 100644
--- a/clamav/Pkgfile
+++ b/clamav/Pkgfile
@@ -4,7 +4,7 @@
# Depends on: bzip2 libgmp curl
name=clamav
-version=0.100.2
+version=0.101.1
release=1
source=(http://www.clamav.net/downloads/production/$name-$version.tar.gz \
clamd.conf freshclam.conf clamd freshclam)
[View Less]
1
0
commit 684494e9a7df0c33a0ef423291726b214a97d95c
Author: Thomas Penteker <tek(a)serverop.de>
Date: Mon Jan 7 23:32:41 2019 +0100
bind: 9.10.8-P1 -> 9.12.3-P1
diff --git a/bind/.footprint b/bind/.footprint
index 046c2d2a..3e65a307 100644
--- a/bind/.footprint
+++ b/bind/.footprint
@@ -11,6 +11,7 @@ drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/bind9-config
-rwxr-xr-x root/root usr/bin/delv
-rwxr-xr-x root/root usr/bin/isc-config.sh
+-rwxr-xr-x root/root usr/bin/…
[View More]mdig
-rwxr-xr-x root/root usr/bin/named-rrchecker
-rwxr-xr-x root/root usr/bin/nslookup
-rwxr-xr-x root/root usr/bin/nsupdate
@@ -20,13 +21,14 @@ drwxr-xr-x root/root usr/include/bind9/
-rw-r--r-- root/root usr/include/bind9/getaddresses.h
-rw-r--r-- root/root usr/include/bind9/version.h
drwxr-xr-x root/root usr/include/dns/
--rw-r--r-- root/root usr/include/dns/acache.h
-rw-r--r-- root/root usr/include/dns/acl.h
-rw-r--r-- root/root usr/include/dns/adb.h
+-rw-r--r-- root/root usr/include/dns/badcache.h
-rw-r--r-- root/root usr/include/dns/bit.h
-rw-r--r-- root/root usr/include/dns/byaddr.h
-rw-r--r-- root/root usr/include/dns/cache.h
-rw-r--r-- root/root usr/include/dns/callbacks.h
+-rw-r--r-- root/root usr/include/dns/catz.h
-rw-r--r-- root/root usr/include/dns/cert.h
-rw-r--r-- root/root usr/include/dns/client.h
-rw-r--r-- root/root usr/include/dns/clientinfo.h
@@ -39,16 +41,22 @@ drwxr-xr-x root/root usr/include/dns/
-rw-r--r-- root/root usr/include/dns/dlz.h
-rw-r--r-- root/root usr/include/dns/dlz_dlopen.h
-rw-r--r-- root/root usr/include/dns/dns64.h
+-rw-r--r-- root/root usr/include/dns/dnsrps.h
-rw-r--r-- root/root usr/include/dns/dnssec.h
+-rw-r--r-- root/root usr/include/dns/dnstap.h
-rw-r--r-- root/root usr/include/dns/ds.h
-rw-r--r-- root/root usr/include/dns/dsdigest.h
+-rw-r--r-- root/root usr/include/dns/dyndb.h
-rw-r--r-- root/root usr/include/dns/ecdb.h
+-rw-r--r-- root/root usr/include/dns/ecs.h
+-rw-r--r-- root/root usr/include/dns/edns.h
-rw-r--r-- root/root usr/include/dns/enumclass.h
-rw-r--r-- root/root usr/include/dns/enumtype.h
-rw-r--r-- root/root usr/include/dns/events.h
-rw-r--r-- root/root usr/include/dns/fixedname.h
-rw-r--r-- root/root usr/include/dns/forward.h
-rw-r--r-- root/root usr/include/dns/geoip.h
+-rw-r--r-- root/root usr/include/dns/ipkeylist.h
-rw-r--r-- root/root usr/include/dns/iptable.h
-rw-r--r-- root/root usr/include/dns/journal.h
-rw-r--r-- root/root usr/include/dns/keydata.h
@@ -56,6 +64,7 @@ drwxr-xr-x root/root usr/include/dns/
-rw-r--r-- root/root usr/include/dns/keytable.h
-rw-r--r-- root/root usr/include/dns/keyvalues.h
-rw-r--r-- root/root usr/include/dns/lib.h
+-rw-r--r-- root/root usr/include/dns/librpz.h
-rw-r--r-- root/root usr/include/dns/log.h
-rw-r--r-- root/root usr/include/dns/lookup.h
-rw-r--r-- root/root usr/include/dns/master.h
@@ -65,6 +74,7 @@ drwxr-xr-x root/root usr/include/dns/
-rw-r--r-- root/root usr/include/dns/ncache.h
-rw-r--r-- root/root usr/include/dns/nsec.h
-rw-r--r-- root/root usr/include/dns/nsec3.h
+-rw-r--r-- root/root usr/include/dns/nta.h
-rw-r--r-- root/root usr/include/dns/opcode.h
-rw-r--r-- root/root usr/include/dns/order.h
-rw-r--r-- root/root usr/include/dns/peer.h
@@ -139,6 +149,7 @@ drwxr-xr-x root/root usr/include/isc/
-rw-r--r-- root/root usr/include/isc/condition.h
-rw-r--r-- root/root usr/include/isc/counter.h
-rw-r--r-- root/root usr/include/isc/crc64.h
+-rw-r--r-- root/root usr/include/isc/deprecated.h
-rw-r--r-- root/root usr/include/isc/dir.h
-rw-r--r-- root/root usr/include/isc/entropy.h
-rw-r--r-- root/root usr/include/isc/errno.h
@@ -148,11 +159,13 @@ drwxr-xr-x root/root usr/include/isc/
-rw-r--r-- root/root usr/include/isc/file.h
-rw-r--r-- root/root usr/include/isc/formatcheck.h
-rw-r--r-- root/root usr/include/isc/fsaccess.h
+-rw-r--r-- root/root usr/include/isc/fuzz.h
-rw-r--r-- root/root usr/include/isc/hash.h
-rw-r--r-- root/root usr/include/isc/heap.h
-rw-r--r-- root/root usr/include/isc/hex.h
-rw-r--r-- root/root usr/include/isc/hmacmd5.h
-rw-r--r-- root/root usr/include/isc/hmacsha.h
+-rw-r--r-- root/root usr/include/isc/ht.h
-rw-r--r-- root/root usr/include/isc/httpd.h
-rw-r--r-- root/root usr/include/isc/int.h
-rw-r--r-- root/root usr/include/isc/interfaceiter.h
@@ -169,6 +182,7 @@ drwxr-xr-x root/root usr/include/isc/
-rw-r--r-- root/root usr/include/isc/magic.h
-rw-r--r-- root/root usr/include/isc/md5.h
-rw-r--r-- root/root usr/include/isc/mem.h
+-rw-r--r-- root/root usr/include/isc/meminfo.h
-rw-r--r-- root/root usr/include/isc/msgcat.h
-rw-r--r-- root/root usr/include/isc/msgs.h
-rw-r--r-- root/root usr/include/isc/mutex.h
@@ -245,22 +259,21 @@ drwxr-xr-x root/root usr/include/isccfg/
-rw-r--r-- root/root usr/include/isccfg/log.h
-rw-r--r-- root/root usr/include/isccfg/namedconf.h
-rw-r--r-- root/root usr/include/isccfg/version.h
-drwxr-xr-x root/root usr/include/lwres/
--rw-r--r-- root/root usr/include/lwres/context.h
--rw-r--r-- root/root usr/include/lwres/int.h
--rw-r--r-- root/root usr/include/lwres/ipv6.h
--rw-r--r-- root/root usr/include/lwres/lang.h
--rw-r--r-- root/root usr/include/lwres/list.h
--rw-r--r-- root/root usr/include/lwres/lwbuffer.h
--rw-r--r-- root/root usr/include/lwres/lwpacket.h
--rw-r--r-- root/root usr/include/lwres/lwres.h
--rw-r--r-- root/root usr/include/lwres/net.h
--rw-r--r-- root/root usr/include/lwres/netdb.h
--rw-r--r-- root/root usr/include/lwres/platform.h
--rw-r--r-- root/root usr/include/lwres/result.h
--rw-r--r-- root/root usr/include/lwres/stdlib.h
--rw-r--r-- root/root usr/include/lwres/string.h
--rw-r--r-- root/root usr/include/lwres/version.h
+drwxr-xr-x root/root usr/include/ns/
+-rw-r--r-- root/root usr/include/ns/client.h
+-rw-r--r-- root/root usr/include/ns/interfacemgr.h
+-rw-r--r-- root/root usr/include/ns/lib.h
+-rw-r--r-- root/root usr/include/ns/listenlist.h
+-rw-r--r-- root/root usr/include/ns/log.h
+-rw-r--r-- root/root usr/include/ns/notify.h
+-rw-r--r-- root/root usr/include/ns/query.h
+-rw-r--r-- root/root usr/include/ns/server.h
+-rw-r--r-- root/root usr/include/ns/sortlist.h
+-rw-r--r-- root/root usr/include/ns/stats.h
+-rw-r--r-- root/root usr/include/ns/types.h
+-rw-r--r-- root/root usr/include/ns/update.h
+-rw-r--r-- root/root usr/include/ns/version.h
+-rw-r--r-- root/root usr/include/ns/xfrout.h
drwxr-xr-x root/root usr/include/pk11/
-rw-r--r-- root/root usr/include/pk11/constants.h
-rw-r--r-- root/root usr/include/pk11/internal.h
@@ -280,31 +293,10 @@ drwxr-xr-x root/root usr/lib/
-rw-r--r-- root/root usr/lib/libisc.a
-rw-r--r-- root/root usr/lib/libisccc.a
-rw-r--r-- root/root usr/lib/libisccfg.a
--rw-r--r-- root/root usr/lib/liblwres.a
-drwxr-xr-x root/root usr/lib/python2.7/
-drwxr-xr-x root/root usr/lib/python2.7/site-packages/
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc-1.0-py2.7.egg-info
-drwxr-xr-x root/root usr/lib/python2.7/site-packages/isc/
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/__init__.py
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/__init__.pyc
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/checkds.py
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/checkds.pyc
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/coverage.py
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/coverage.pyc
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/dnskey.py
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/dnskey.pyc
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/eventlist.py
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/eventlist.pyc
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/keydict.py
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/keydict.pyc
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/keyevent.py
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/keyevent.pyc
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/keyzone.py
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/keyzone.pyc
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/utils.py
--rw-r--r-- root/root usr/lib/python2.7/site-packages/isc/utils.pyc
+-rw-r--r-- root/root usr/lib/libns.a
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/ddns-confgen
+-rwxr-xr-x root/root usr/sbin/dnssec-cds
-rwxr-xr-x root/root usr/sbin/dnssec-dsfromkey
-rwxr-xr-x root/root usr/sbin/dnssec-importkey
-rwxr-xr-x root/root usr/sbin/dnssec-keyfromlabel
@@ -314,8 +306,6 @@ drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/dnssec-signzone
-rwxr-xr-x root/root usr/sbin/dnssec-verify
-rwxr-xr-x root/root usr/sbin/genrandom
--rwxr-xr-x root/root usr/sbin/isc-hmac-fixup
--rwxr-xr-x root/root usr/sbin/lwresd
-rwxr-xr-x root/root usr/sbin/named
-rwxr-xr-x root/root usr/sbin/named-checkconf
-rwxr-xr-x root/root usr/sbin/named-checkzone
@@ -327,97 +317,12 @@ lrwxrwxrwx root/root usr/sbin/named-compilezone -> named-checkzone
lrwxrwxrwx root/root usr/sbin/tsig-keygen -> ddns-confgen
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/man/
-drwxr-xr-x root/root usr/share/man/man3/
--rw-r--r-- root/root usr/share/man/man3/lwres.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_addr_parse.3.gz -> lwres_resutil.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_add.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_back.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_clear.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_first.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_forward.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_getmem.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_getuint16.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_getuint32.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_getuint8.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_init.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_invalidate.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_putmem.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_putuint16.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_putuint32.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_putuint8.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_buffer_subtract.3.gz -> lwres_buffer.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_conf_clear.3.gz -> lwres_config.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_conf_get.3.gz -> lwres_config.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_conf_init.3.gz -> lwres_config.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_conf_parse.3.gz -> lwres_config.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_conf_print.3.gz -> lwres_config.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_config.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_context.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_context_allocmem.3.gz -> lwres_context.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_context_create.3.gz -> lwres_context.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_context_destroy.3.gz -> lwres_context.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_context_freemem.3.gz -> lwres_context.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_context_initserial.3.gz -> lwres_context.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_context_nextserial.3.gz -> lwres_context.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_context_sendrecv.3.gz -> lwres_context.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_endhostent.3.gz -> lwres_gethostent.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_endhostent_r.3.gz -> lwres_gethostent.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_freeaddrinfo.3.gz -> lwres_getaddrinfo.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_freehostent.3.gz -> lwres_getipnode.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_gabn.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gabnrequest_free.3.gz -> lwres_gabn.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gabnrequest_parse.3.gz -> lwres_gabn.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gabnrequest_render.3.gz -> lwres_gabn.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gabnresponse_free.3.gz -> lwres_gabn.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gabnresponse_parse.3.gz -> lwres_gabn.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gabnresponse_render.3.gz -> lwres_gabn.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_gai_strerror.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_getaddrinfo.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_getaddrsbyname.3.gz -> lwres_resutil.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gethostbyaddr.3.gz -> lwres_gethostent.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gethostbyaddr_r.3.gz -> lwres_gethostent.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gethostbyname.3.gz -> lwres_gethostent.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gethostbyname2.3.gz -> lwres_gethostent.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gethostbyname_r.3.gz -> lwres_gethostent.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_gethostent.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gethostent_r.3.gz -> lwres_gethostent.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_getipnode.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_getipnodebyaddr.3.gz -> lwres_getipnode.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_getipnodebyname.3.gz -> lwres_getipnode.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_getnamebyaddr.3.gz -> lwres_resutil.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_getnameinfo.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_getrrsetbyname.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_gnba.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gnbarequest_free.3.gz -> lwres_gnba.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gnbarequest_parse.3.gz -> lwres_gnba.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gnbarequest_render.3.gz -> lwres_gnba.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gnbaresponse_free.3.gz -> lwres_gnba.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gnbaresponse_parse.3.gz -> lwres_gnba.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_gnbaresponse_render.3.gz -> lwres_gnba.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_herror.3.gz -> lwres_hstrerror.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_hstrerror.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_inetntop.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_lwpacket_parseheader.3.gz -> lwres_packet.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_lwpacket_renderheader.3.gz -> lwres_packet.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_net_ntop.3.gz -> lwres_inetntop.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_noop.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_nooprequest_free.3.gz -> lwres_noop.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_nooprequest_parse.3.gz -> lwres_noop.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_nooprequest_render.3.gz -> lwres_noop.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_noopresponse_free.3.gz -> lwres_noop.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_noopresponse_parse.3.gz -> lwres_noop.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_noopresponse_render.3.gz -> lwres_noop.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_packet.3.gz
--rw-r--r-- root/root usr/share/man/man3/lwres_resutil.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_sethostent.3.gz -> lwres_gethostent.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_sethostent_r.3.gz -> lwres_gethostent.3.gz
-lrwxrwxrwx root/root usr/share/man/man3/lwres_string_parse.3.gz -> lwres_resutil.3.gz
drwxr-xr-x root/root usr/share/man/man5/
-rw-r--r-- root/root usr/share/man/man5/named.conf.5.gz
-rw-r--r-- root/root usr/share/man/man5/rndc.conf.5.gz
drwxr-xr-x root/root usr/share/man/man8/
-rw-r--r-- root/root usr/share/man/man8/ddns-confgen.8.gz
+-rw-r--r-- root/root usr/share/man/man8/dnssec-cds.8.gz
-rw-r--r-- root/root usr/share/man/man8/dnssec-dsfromkey.8.gz
-rw-r--r-- root/root usr/share/man/man8/dnssec-importkey.8.gz
-rw-r--r-- root/root usr/share/man/man8/dnssec-keyfromlabel.8.gz
@@ -427,8 +332,6 @@ drwxr-xr-x root/root usr/share/man/man8/
-rw-r--r-- root/root usr/share/man/man8/dnssec-signzone.8.gz
-rw-r--r-- root/root usr/share/man/man8/dnssec-verify.8.gz
-rw-r--r-- root/root usr/share/man/man8/genrandom.8.gz
--rw-r--r-- root/root usr/share/man/man8/isc-hmac-fixup.8.gz
--rw-r--r-- root/root usr/share/man/man8/lwresd.8.gz
-rw-r--r-- root/root usr/share/man/man8/named-checkconf.8.gz
-rw-r--r-- root/root usr/share/man/man8/named-checkzone.8.gz
lrwxrwxrwx root/root usr/share/man/man8/named-compilezone.8.gz -> named-checkzone.8.gz
diff --git a/bind/.signature b/bind/.signature
index 4938d57a..0d96b9f4 100644
--- a/bind/.signature
+++ b/bind/.signature
@@ -1,8 +1,8 @@
untrusted comment: verify with /etc/ports/contrib.pub
-RWSagIOpLGJF36jq8DrXIRCFkd9AjgWM4pYqm5h3P1+U/ne823z5JdlGqGRxwQQS7jRRwupC+1K+27vfJZSyei2sxYE52yWYKgE=
-SHA256 (Pkgfile) = a575b6753dd9950b5fd2ad27fc4e3664ac79ab1482e0a37bbdafef8947e683e0
-SHA256 (.footprint) = 96035b43e686812f4c67771fb0a683fec5d6d5e5f8be9210dc5777055c227ce9
-SHA256 (bind-9.10.8-P1.tar.gz) = 26c31406400c7371558aadd55cfb7c529d51fdad1ff9585c5d2e26cffa78162b
+RWSagIOpLGJF39dS2lxvOuqmYMb8mWdbubMusgNDakiS4je3ISqTD/wS1+8zKwIoYTOBGoy9j4gmYrO1M0Sv+lE3EEMPRCPN2gk=
+SHA256 (Pkgfile) = 0c2310a45f581a21da3378a9222af24f36d77abf1cdcc85489b3b2ae74206229
+SHA256 (.footprint) = 73b49f1c230567bc018e621a1cd7109608be6f4b55d4e09e9ccf796ea934c903
+SHA256 (bind-9.12.3-P1.tar.gz) = 6cb79389d787368af27f01c65a9fa09be1fd062eda37c94819a1a0178d5ded73
SHA256 (named.root) = 2e19682ad79bee201e3fc0454b73d45d04be7ba7dceb28612ec71fff0add6de4
SHA256 (db.0.0.127) = 6c82640080a1c311005e7a264a2abbaabb7198f39430389b3ddf37cf22f42ff5
SHA256 (db.localhost) = 1a61cc85da0581a784c06535b2462f027bc850270ac7287c1152b8479dc7a053
diff --git a/bind/Pkgfile b/bind/Pkgfile
index fd356fac..eebd058b 100644
--- a/bind/Pkgfile
+++ b/bind/Pkgfile
@@ -5,14 +5,13 @@
# Depends on:
name=bind
-version=9.10.8-P1
+version=9.12.3-P1
release=1
source=(ftp://ftp.isc.org/isc/bind9/$version/$name-$version.tar.gz \
named.root db.0.0.127 db.localhost db.ip6.arpa named named.conf)
build() {
cd $name-$version
- sed -i -e 's|\@LN\@ \${man3}/|ln -s |g' lib/lwres/man/Makefile.in
./configure \
--prefix=/usr \
[View Less]
1
0