summaryrefslogtreecommitdiff
path: root/source/xap/xpdf
diff options
context:
space:
mode:
Diffstat (limited to 'source/xap/xpdf')
-rw-r--r--source/xap/xpdf/patches/xpdf-4.02.crash.fix.diff11
-rwxr-xr-xsource/xap/xpdf/xpdf.SlackBuild3
2 files changed, 13 insertions, 1 deletions
diff --git a/source/xap/xpdf/patches/xpdf-4.02.crash.fix.diff b/source/xap/xpdf/patches/xpdf-4.02.crash.fix.diff
new file mode 100644
index 00000000..3a65985a
--- /dev/null
+++ b/source/xap/xpdf/patches/xpdf-4.02.crash.fix.diff
@@ -0,0 +1,11 @@
+--- ./xpdf/GlobalParams.cc.orig 2019-09-25 14:54:33.000000000 -0500
++++ ./xpdf/GlobalParams.cc 2019-10-08 13:33:36.526738508 -0500
+@@ -568,7 +568,7 @@
+ FcFontSetDestroy(fontSet);
+ }
+
+- FcFini();
++ // FcFini(); Commented out to fix crash
+ }
+ #endif // HAVE_FONTCONFIG
+
diff --git a/source/xap/xpdf/xpdf.SlackBuild b/source/xap/xpdf/xpdf.SlackBuild
index d0d119d0..a6bee8ee 100755
--- a/source/xap/xpdf/xpdf.SlackBuild
+++ b/source/xap/xpdf/xpdf.SlackBuild
@@ -25,7 +25,7 @@ cd $(dirname $0) ; CWD=$(pwd)
PKGNAM=xpdf
VERSION=4.02
PATCHLEVEL=
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
NUMJOBS=${NUMJOBS:-" -j$(expr $(nproc) + 1) "}
@@ -80,6 +80,7 @@ find . \
-exec chmod 644 {} \+
zcat $CWD/patches/xpdfrc.diff.gz | patch -p1 --verbose || exit 1
+zcat $CWD/patches/xpdf-4.02.crash.fix.diff.gz | patch -p1 --verbose || exit 1
mkdir build
cd build