Mon Mar 11 12:45:37 2024 UTC (77d)
ghostscript-agpl: update to 10.03.0.

Version 10.03.0 (2024-03-06)

Highlights in this release include:

  • A vulnerability was identified in the way Ghostscript/GhostPDL called
    tesseract for the OCR devices, which could allow arbitrary code execution.
    As as result, we strongly urge anyone including the OCR devices in their
    build to update as soon as possible.
  • As of this release (10.03.0) pdfwrite creates PDF files with XRef streams
    and ObjStm streams. This can result in considerably smaller PDF output
    files. See Vector Devices for more details.
  • Ghostscript/pdfwrite now supports passing through PDF "Optional Content".
  • Our efforts in code hygiene and maintainability continue.
  • The usual round of bug fixes, compatibility changes, and incremental
    improvements.

Incompatible changes

  • (10.03.0) Almost all the "internal" PostScript procedures defined during
    the interpreter startup are now "executeonly", further reducing the attack
    surface of the interpreter.

    The nature of these procedures means there should be no impact for
    legitimate usage, but it is possible it will impact uses which abuse the
    previous accessibility (even for legitimate reasons). Such cases may now
    require "DELAYBIND", See DELAYBIND
  • (10.03.0) The "makeimagedevice" non-standard operator has been removed. It
    allowed low level access to the graphics library in a way that was,
    essentially impossible to secure.
  • (10.03.0) The "putdeviceprops", "getdeviceprops", "finddevice",
    "copydevice", "findprotodevice" non-standard operators have all been
    removed. They provided functionality that is either accessible through
    standard operators, or should not be used by user PostScript.
  • (10.03.0) The process of "tidying" the PostScript namespace should have
    removed only non-standard and undocumented operators. Nevertheless, it is
    possible that any integrations or utilities that rely on those non-standard
    and undocumented operators may stop working or may change behaviour.

    If you encounter such a case, please contact us (Discord, #ghostscript IRC
    channel, or the gs-devel mailing list would be best), and we'll work with
    you to either find an alternative solution or return the previous
    functionality, if there is genuinely no other option.


(wiz)
diff -r1.83 -r1.84 pkgsrc/print/ghostscript-agpl/Makefile
diff -r1.32 -r1.33 pkgsrc/print/ghostscript-agpl/Makefile.common
diff -r1.25 -r1.26 pkgsrc/print/ghostscript-agpl/PLIST
diff -r1.47 -r1.48 pkgsrc/print/ghostscript-agpl/distinfo

cvs diff -r1.83 -r1.84 pkgsrc/print/ghostscript-agpl/Makefile (expand / switch to unified diff)

--- pkgsrc/print/ghostscript-agpl/Makefile 2023/11/13 18:26:25 1.83
+++ pkgsrc/print/ghostscript-agpl/Makefile 2024/03/11 12:45:37 1.84
@@ -1,18 +1,17 @@ @@ -1,18 +1,17 @@
1# $NetBSD: Makefile,v 1.83 2023/11/13 18:26:25 wiz Exp $ 1# $NetBSD: Makefile,v 1.84 2024/03/11 12:45:37 wiz Exp $
2 2
3DISTNAME= ghostscript-${GS_VERSION} 3DISTNAME= ghostscript-${GS_VERSION}
4PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/} 4PKGNAME= ${DISTNAME:S/ghostscript/ghostscript-agpl/}
5PKGREVISION= 2 
6CATEGORIES= print 5CATEGORIES= print
7MASTER_SITES= ${MASTER_SITE_GITHUB:=ArtifexSoftware/} 6MASTER_SITES= ${MASTER_SITE_GITHUB:=ArtifexSoftware/}
8GITHUB_PROJECT= ghostpdl-downloads 7GITHUB_PROJECT= ghostpdl-downloads
9GITHUB_RELEASE= gs${GS_VERSION:S/.//g} 8GITHUB_RELEASE= gs${GS_VERSION:S/.//g}
10EXTRACT_SUFX= .tar.xz 9EXTRACT_SUFX= .tar.xz
11 10
12MAINTAINER= pkgsrc-users@NetBSD.org 11MAINTAINER= pkgsrc-users@NetBSD.org
13HOMEPAGE= https://ghostscript.com/ 12HOMEPAGE= https://ghostscript.com/
14COMMENT= Postscript interpreter 13COMMENT= Postscript interpreter
15 14
16# Upstream calls this "GPL Ghostscript", which is confusing; 15# Upstream calls this "GPL Ghostscript", which is confusing;
17# see https://bugs.ghostscript.com/show_bug.cgi?id=700877 16# see https://bugs.ghostscript.com/show_bug.cgi?id=700877
18# Plus adobe verbatim for Resources/CMap. 17# Plus adobe verbatim for Resources/CMap.

cvs diff -r1.32 -r1.33 pkgsrc/print/ghostscript-agpl/Makefile.common (expand / switch to unified diff)

--- pkgsrc/print/ghostscript-agpl/Makefile.common 2023/11/03 09:14:16 1.32
+++ pkgsrc/print/ghostscript-agpl/Makefile.common 2024/03/11 12:45:37 1.33
@@ -1,5 +1,5 @@ @@ -1,5 +1,5 @@
1# $NetBSD: Makefile.common,v 1.32 2023/11/03 09:14:16 adam Exp $ 1# $NetBSD: Makefile.common,v 1.33 2024/03/11 12:45:37 wiz Exp $
2# used by print/ghostscript-agpl/Makefile 2# used by print/ghostscript-agpl/Makefile
3# used by fonts/ghostscript-cidfonts-ryumin/Makefile 3# used by fonts/ghostscript-cidfonts-ryumin/Makefile
4 4
5GS_VERSION= 10.02.1 5GS_VERSION= 10.03.0

cvs diff -r1.25 -r1.26 pkgsrc/print/ghostscript-agpl/PLIST (expand / switch to unified diff)

--- pkgsrc/print/ghostscript-agpl/PLIST 2023/10/23 10:59:33 1.25
+++ pkgsrc/print/ghostscript-agpl/PLIST 2024/03/11 12:45:37 1.26
@@ -1,14 +1,14 @@ @@ -1,14 +1,14 @@
1@comment $NetBSD: PLIST,v 1.25 2023/10/23 10:59:33 adam Exp $ 1@comment $NetBSD: PLIST,v 1.26 2024/03/11 12:45:37 wiz Exp $
2bin/dvipdf 2bin/dvipdf
3bin/eps2eps 3bin/eps2eps
4bin/gs 4bin/gs
5bin/gsbj 5bin/gsbj
6bin/gsc 6bin/gsc
7bin/gsdj 7bin/gsdj
8bin/gsdj500 8bin/gsdj500
9bin/gslj 9bin/gslj
10bin/gslp 10bin/gslp
11bin/gsnd 11bin/gsnd
12bin/gsx 12bin/gsx
13bin/lprsetup.sh 13bin/lprsetup.sh
14bin/pdf2dsc 14bin/pdf2dsc
@@ -23,27 +23,27 @@ bin/ps2pdf @@ -23,27 +23,27 @@ bin/ps2pdf
23bin/ps2pdf12 23bin/ps2pdf12
24bin/ps2pdf13 24bin/ps2pdf13
25bin/ps2pdf14 25bin/ps2pdf14
26bin/ps2pdfwr 26bin/ps2pdfwr
27bin/ps2ps 27bin/ps2ps
28bin/ps2ps2 28bin/ps2ps2
29bin/unix-lpr.sh 29bin/unix-lpr.sh
30include/ghostscript/gdevdsp.h 30include/ghostscript/gdevdsp.h
31include/ghostscript/gserrors.h 31include/ghostscript/gserrors.h
32include/ghostscript/iapi.h 32include/ghostscript/iapi.h
33include/ghostscript/ierrors.h 33include/ghostscript/ierrors.h
34lib/libgs.so 34lib/libgs.so
35lib/libgs.so.10 35lib/libgs.so.10
36lib/libgs.so.10.02 36lib/libgs.so.10.03
37man/man1/dvipdf.1 37man/man1/dvipdf.1
38man/man1/eps2eps.1 38man/man1/eps2eps.1
39man/man1/gs.1 39man/man1/gs.1
40man/man1/gsbj.1 40man/man1/gsbj.1
41man/man1/gsdj.1 41man/man1/gsdj.1
42man/man1/gsdj500.1 42man/man1/gsdj500.1
43man/man1/gslj.1 43man/man1/gslj.1
44man/man1/gslp.1 44man/man1/gslp.1
45man/man1/gsnd.1 45man/man1/gsnd.1
46man/man1/pdf2dsc.1 46man/man1/pdf2dsc.1
47man/man1/pdf2ps.1 47man/man1/pdf2ps.1
48man/man1/pf2afm.1 48man/man1/pf2afm.1
49man/man1/pfbtopfa.1 49man/man1/pfbtopfa.1

cvs diff -r1.47 -r1.48 pkgsrc/print/ghostscript-agpl/distinfo (expand / switch to unified diff)

--- pkgsrc/print/ghostscript-agpl/distinfo 2023/11/03 09:14:16 1.47
+++ pkgsrc/print/ghostscript-agpl/distinfo 2024/03/11 12:45:37 1.48
@@ -1,12 +1,12 @@ @@ -1,12 +1,12 @@
1$NetBSD: distinfo,v 1.47 2023/11/03 09:14:16 adam Exp $ 1$NetBSD: distinfo,v 1.48 2024/03/11 12:45:37 wiz Exp $
2 2
3BLAKE2s (ghostscript-10.02.1.tar.xz) = 0af0a3eea666d184acb4f825fa7a1ae0a63a5e134d72afe561a2cc58fd87e696 3BLAKE2s (ghostscript-10.03.0.tar.xz) = ba41f0419063e1dec395939e82f57870639c4f8548c63094974c838345ecb241
4SHA512 (ghostscript-10.02.1.tar.xz) = ee0f754c1bd8a18428ad14eaa3ead80ff8b96275af5012e7a8384f1f10490da056eec9ae3cc791a7a13a24e16e54df5bccdd109c7d53a14534bbd7360a300b11 4SHA512 (ghostscript-10.03.0.tar.xz) = 74d7da586eefbf3fb3c085bb4d2b73ee667fd0ae9cff73ece613c77c443148b847086f91802124baf91ac35cdc83be07199799378def92c8fbd96ced7d0ee9a8
5Size (ghostscript-10.02.1.tar.xz) = 68017088 bytes 5Size (ghostscript-10.03.0.tar.xz) = 68041176 bytes
6SHA1 (patch-base_gserrors_h) = 36c8fcf27fcb0bfdcc075ad96efe3e44fb727d9a 6SHA1 (patch-base_gserrors_h) = 36c8fcf27fcb0bfdcc075ad96efe3e44fb727d9a
7SHA1 (patch-base_lib.mak) = 723926f167b49568376ef0c0da6aa4ec01fe1516 7SHA1 (patch-base_lib.mak) = 723926f167b49568376ef0c0da6aa4ec01fe1516
8SHA1 (patch-base_mkromfs.c) = 9d9afbd0fbb8c70c8f4f7de3cadc5b54541f0db0 8SHA1 (patch-base_mkromfs.c) = 9d9afbd0fbb8c70c8f4f7de3cadc5b54541f0db0
9SHA1 (patch-base_ttobjs.h) = 378ad7d316a4a9dc53b9c8e612582a7c8e9b3688 9SHA1 (patch-base_ttobjs.h) = 378ad7d316a4a9dc53b9c8e612582a7c8e9b3688
10SHA1 (patch-base_unix-dll.mak) = 8076ce689807872bf94b552daaf9547b646ca249 10SHA1 (patch-base_unix-dll.mak) = 8076ce689807872bf94b552daaf9547b646ca249
11SHA1 (patch-configure) = c448faa2f588dd8d7f58a9c1498b3dc5e903a5e2 11SHA1 (patch-configure) = c448faa2f588dd8d7f58a9c1498b3dc5e903a5e2
12SHA1 (patch-devices_devs.mak) = e9937d401a278cc6d0a6d4cff78c526375bc18ca 12SHA1 (patch-devices_devs.mak) = e9937d401a278cc6d0a6d4cff78c526375bc18ca