pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/print/cups-pdf



Module Name:    pkgsrc
Committed By:   ryoon
Date:           Sat Mar 22 19:38:55 UTC 2025

Modified Files:
        pkgsrc/print/cups-pdf: Makefile distinfo
Added Files:
        pkgsrc/print/cups-pdf/patches: patch-extra_cups-pdf.conf
            patch-src_cups-pdf.h

Log Message:
print/cups-pdf: Fix usage of the latest GhostScript

* Without these patches, you will get blank PDF files only.
* Bump PKGREVISION.


To generate a diff of this commit:
cvs rdiff -u -r1.38 -r1.39 pkgsrc/print/cups-pdf/Makefile
cvs rdiff -u -r1.5 -r1.6 pkgsrc/print/cups-pdf/distinfo
cvs rdiff -u -r0 -r1.1 \
    pkgsrc/print/cups-pdf/patches/patch-extra_cups-pdf.conf \
    pkgsrc/print/cups-pdf/patches/patch-src_cups-pdf.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/print/cups-pdf/Makefile
diff -u pkgsrc/print/cups-pdf/Makefile:1.38 pkgsrc/print/cups-pdf/Makefile:1.39
--- pkgsrc/print/cups-pdf/Makefile:1.38 Thu Nov 14 22:21:23 2024
+++ pkgsrc/print/cups-pdf/Makefile      Sat Mar 22 19:38:55 2025
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.38 2024/11/14 22:21:23 wiz Exp $
+# $NetBSD: Makefile,v 1.39 2025/03/22 19:38:55 ryoon Exp $
 
 DISTNAME=              cups-pdf-3.0.1
-PKGREVISION=           17
+PKGREVISION=           18
 CATEGORIES=            print
 MASTER_SITES=          ${HOMEPAGE}src/
 DISTFILES=             ${DISTNAME:S/pdf-/pdf_/}.tar.gz

Index: pkgsrc/print/cups-pdf/distinfo
diff -u pkgsrc/print/cups-pdf/distinfo:1.5 pkgsrc/print/cups-pdf/distinfo:1.6
--- pkgsrc/print/cups-pdf/distinfo:1.5  Tue Oct 26 11:12:04 2021
+++ pkgsrc/print/cups-pdf/distinfo      Sat Mar 22 19:38:55 2025
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.5 2021/10/26 11:12:04 nia Exp $
+$NetBSD: distinfo,v 1.6 2025/03/22 19:38:55 ryoon Exp $
 
 BLAKE2s (cups-pdf_3.0.1.tar.gz) = f403f95b253aeec174159178356c413c37b4caefcd0055b387d50d67cb50f7d0
 SHA512 (cups-pdf_3.0.1.tar.gz) = a06580f3056dddbb883c8db0c71b37b883482ae1ac8aa9bcfd85e679c4dcb44278006b7110d2988173d0eeb05b0f19fb39081fad49bf26839235e97fbe27a818
 Size (cups-pdf_3.0.1.tar.gz) = 29754 bytes
+SHA1 (patch-extra_cups-pdf.conf) = 68a3ade52e8988adcc7cf8b0e1351c2cc240b9ae
+SHA1 (patch-src_cups-pdf.h) = 3251e25fa1f7aa7fb266a780f6eb22eebee35115

Added files:

Index: pkgsrc/print/cups-pdf/patches/patch-extra_cups-pdf.conf
diff -u /dev/null pkgsrc/print/cups-pdf/patches/patch-extra_cups-pdf.conf:1.1
--- /dev/null   Sat Mar 22 19:38:55 2025
+++ pkgsrc/print/cups-pdf/patches/patch-extra_cups-pdf.conf     Sat Mar 22 19:38:55 2025
@@ -0,0 +1,18 @@
+$NetBSD: patch-extra_cups-pdf.conf,v 1.1 2025/03/22 19:38:55 ryoon Exp $
+
+* Fix PDF generation using the recent GhostScript.
+
+--- extra/cups-pdf.conf.orig   2025-03-22 19:31:23.836472476 +0000
++++ extra/cups-pdf.conf
+@@ -250,9 +250,9 @@
+ ### 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" 
Index: pkgsrc/print/cups-pdf/patches/patch-src_cups-pdf.h
diff -u /dev/null pkgsrc/print/cups-pdf/patches/patch-src_cups-pdf.h:1.1
--- /dev/null   Sat Mar 22 19:38:55 2025
+++ pkgsrc/print/cups-pdf/patches/patch-src_cups-pdf.h  Sat Mar 22 19:38:55 2025
@@ -0,0 +1,15 @@
+$NetBSD: patch-src_cups-pdf.h,v 1.1 2025/03/22 19:38:55 ryoon Exp $
+
+* Fix PDF generation using the recent GhostScript.
+
+--- src/cups-pdf.h.orig        2025-03-22 19:31:42.083190911 +0000
++++ 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" } },



Home | Main Index | Thread Index | Old Index