git: 1ca92b55c1bf - main - print/cups-pdf: Remove deprecated ghostscript setpdfwrite operator
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 01 Apr 2022 12:59:08 UTC
The branch main has been updated by mikael: URL: https://cgit.FreeBSD.org/ports/commit/?id=1ca92b55c1bfa84fd8a2d2b52767a4979d6f17e5 commit 1ca92b55c1bfa84fd8a2d2b52767a4979d6f17e5 Author: Mikael Urankar <mikael@FreeBSD.org> AuthorDate: 2022-04-01 12:46:43 +0000 Commit: Mikael Urankar <mikael@FreeBSD.org> CommitDate: 2022-04-01 12:59:06 +0000 print/cups-pdf: Remove deprecated ghostscript setpdfwrite operator cups-pdf prints a blank patch without this patch. PR: 262757 Reported by: freebsd-bugs@micallef.io Obtained from: archlinux (https://bugs.archlinux.org/task/70313) --- print/cups-pdf/Makefile | 2 +- ...ove-deprecated-ghostscript-setpdfwrite-operator | 27 ++++++++++++++++++++++ 2 files changed, 28 insertions(+), 1 deletion(-) diff --git a/print/cups-pdf/Makefile b/print/cups-pdf/Makefile index 6dee1953ab36..5c98a2713d92 100644 --- a/print/cups-pdf/Makefile +++ b/print/cups-pdf/Makefile @@ -2,7 +2,7 @@ PORTNAME= cups-pdf DISTVERSION= 3.0.1 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= print MASTER_SITES= http://www.cups-pdf.de/src/ \ http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/src/ diff --git a/print/cups-pdf/files/patch-remove-deprecated-ghostscript-setpdfwrite-operator b/print/cups-pdf/files/patch-remove-deprecated-ghostscript-setpdfwrite-operator new file mode 100644 index 000000000000..d3018f33cfd4 --- /dev/null +++ b/print/cups-pdf/files/patch-remove-deprecated-ghostscript-setpdfwrite-operator @@ -0,0 +1,27 @@ +https://github.com/archlinux/svntogit-packages/commit/ff157761a0dffe4eb19b46c61b422dcdb2e1c8d9 + +--- extra/cups-pdf.conf.orig 2022-04-01 11:22:32 UTC ++++ extra/cups-pdf.conf +@@ -250,9 +250,9 @@ GSTmp /tmp + ### Key: GSCall (config) + ## command line for calling GhostScript (!!! DO NOT USE NEWLINES !!!) + ## MacOSX: for using pstopdf set this to %s %s -o %s %s +-### Default: %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s ++### Default: %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c -f %s + +-#GSCall %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s ++#GSCall %s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile="%s" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c -f %s + + ### Key: PDFVer (config, ppd, lptopions) + ## PDF version to be created - can be "1.5", "1.4", "1.3" or "1.2" +--- src/cups-pdf.h.orig 2022-04-01 11:22:32 UTC ++++ src/cups-pdf.h +@@ -58,7 +58,7 @@ struct { + { "AnonDirName", SEC_CONF|SEC_PPD, { "/var/spool/cups-pdf/ANONYMOUS" } }, + { "AnonUser", SEC_CONF|SEC_PPD, { "nobody" } }, + { "GhostScript", SEC_CONF|SEC_PPD, { "/usr/bin/gs" } }, +- { "GSCall", SEC_CONF|SEC_PPD, { "%s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=\"%s\" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c .setpdfwrite -f %s" } }, ++ { "GSCall", SEC_CONF|SEC_PPD, { "%s -q -dCompatibilityLevel=%s -dNOPAUSE -dBATCH -dSAFER -sDEVICE=pdfwrite -sOutputFile=\"%s\" -dAutoRotatePages=/PageByPage -dAutoFilterColorImages=false -dColorImageFilter=/FlateEncode -dPDFSETTINGS=/prepress -c -f %s" } }, + { "Grp", SEC_CONF|SEC_PPD, { "lp" } }, + { "GSTmp", SEC_CONF|SEC_PPD, { "TMPDIR=/var/tmp" } }, + { "Log", SEC_CONF|SEC_PPD, { "/var/log/cups" } },