summaryrefslogtreecommitdiff
path: root/user/gnu-ghostscript
diff options
context:
space:
mode:
Diffstat (limited to 'user/gnu-ghostscript')
-rw-r--r--user/gnu-ghostscript/APKBUILD6
-rw-r--r--user/gnu-ghostscript/locksafe.patch14
2 files changed, 18 insertions, 2 deletions
diff --git a/user/gnu-ghostscript/APKBUILD b/user/gnu-ghostscript/APKBUILD
index 14ce2c5f6..b526bb794 100644
--- a/user/gnu-ghostscript/APKBUILD
+++ b/user/gnu-ghostscript/APKBUILD
@@ -2,7 +2,7 @@
# Maintainer: A. Wilcox <awilfox@adelielinux.org>
pkgname=gnu-ghostscript
pkgver=9.14.1
-pkgrel=2
+pkgrel=3
pkgdesc="PostScript utilities"
url="https://www.gnu.org/software/ghostscript/"
arch="all"
@@ -14,6 +14,7 @@ makedepends="cups-dev dbus-dev fontconfig-dev freetype-dev lcms2-dev libice-dev
subpackages="$pkgname-dev $pkgname-doc $pkgname-libs"
source="ftp://ftp.gnu.org/gnu/ghostscript/gnu-ghostscript-$pkgver.tar.xz
do-not-use-sprintf.patch
+ locksafe.patch
"
build() {
@@ -44,4 +45,5 @@ package() {
}
sha512sums="658f6ae14b29965c7959b9bd1463760d7fb03b35251446fc37101dbe7ee2866c74a0803e22b2f4488be3221d026578be1d6be7b562ff240036134fbf83edabf9 gnu-ghostscript-9.14.1.tar.xz
-1c4d79633ecece9f4de7a672f2888939be7d1e0ba24f3a66500fdfbb37e081e0f323a5efa0d1547fed51206e5a95d3b0659c0ea845d0bc333f281dfb88fcc040 do-not-use-sprintf.patch"
+1c4d79633ecece9f4de7a672f2888939be7d1e0ba24f3a66500fdfbb37e081e0f323a5efa0d1547fed51206e5a95d3b0659c0ea845d0bc333f281dfb88fcc040 do-not-use-sprintf.patch
+959e0386e4ac268298ab5e9d3936afcf38560b1d3ab49256719d72d38783feef62ceb065d35235de9f7b7bc52ab119a297e115954ea0bb4d7c00046f333141aa locksafe.patch"
diff --git a/user/gnu-ghostscript/locksafe.patch b/user/gnu-ghostscript/locksafe.patch
new file mode 100644
index 000000000..d5df6948d
--- /dev/null
+++ b/user/gnu-ghostscript/locksafe.patch
@@ -0,0 +1,14 @@
+Bug report: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=840691
+Symptom: 'invalidaccess -7' opening PostScript files in Evince, Okular, etc
+
+--- gnu-ghostscript-9.14.1/Resource/Init/gs_init.ps.old 2016-11-06 17:40:19.000000000 +0000
++++ gnu-ghostscript-9.14.1/Resource/Init/gs_init.ps 2019-06-26 02:22:56.825331976 +0000
+@@ -2018,7 +2018,7 @@
+
+ /.locksafe {
+ .locksafe_userparams
+- systemdict /getenv {pop //false} put
++ systemdict /getenv {pop //false} .forceput
+ % setpagedevice has the side effect of clearing the page, but
+ % we will just document that. Using setpagedevice keeps the device
+ % properties and pagedevice .LockSafetyParams in agreement even