Tue Feb 27 17:48:20 2018 UTC ()
cups-filters: Update print/cups-filters to 1.20.1

Changes:
1.20.1
------
 - libcupsfilters: Silenced warning when using CUPS < 2.x by
   eliminating the use of a recently introduced CUPS library
   function (Bugzilla bug #1421).
 - braille: Fix some missing options on indexv4. Thanks to
   Samuel Thibault for this patch (Pull request #21).
 - braille: Fix disabling margins on indexv4 in graphic
   mode. Thanks to Samuel Thibault for this patch (Pull request
   #20).
 - braille: Fix installation of brftopagedbrf. Thanks to Samuel
   Thibault for this patch (Pull request #18, Issue #17).
 - cups-browsed: Fixed crash when CUPS reports a print queue
   without "device-uri" attribute when cups-browsed polls a
   list of local CUPS queues (Issue #16).

1.20.0
------
 - libcupsfilters: Let the PPD generator prefer the English
   translation file from CUPS for the human-readable strings in
   the PPD files.
 - libcupsfilters: The PPD generator lists all page sizes with
   human-readable names now, including proprietary names of the
   printer.
 - cups-browsed, driverless: Fixed get-printer-attributes call
   on driverless printers for generating the PPD, explicitly
   requesting the media-col-database attribute as otherwise
   borderless page sizes do not appear.
 - libcupsfilters: Fixed loading option/choice strings lists
   from driverless printers for PPD file generation. Especially
   proprietary media types appear correctly now.
 - libcupsfilters: Completed color space support in the PPD
   generator: Added DeviceGray/RGB/CMYK, default to 8 bit for
   SRGB and to 16 bit for AdobeRGB, avoid duplicate listings of
   the same color space.

1.19.0
------
 - libcupsfilters: Let the PPD generator add the options "Print
   Optimization", "Print Rendering Intent" and "Print Scaling"
   if appropriate IPP attributes are found.
 - libcupsfilters: Let the PPD generator read out the maximum
   of info about color spaces and this way not only reliably
   the correct choices are added to the ColorModel option but
   also the maximum supported bit depth (8 or 16 bit) is used.
 - libcupsfilters: Overtaken new features from CUPS' PPD
   generator: Presets, Finishing Templates, and extraction of
   media sizes from "media-col-database"
 - libcupsfilters: Improvements on header of generated PPDs:
   use cups-filters version number, "drvless.ppd" PCFileName,
   APSupplies and cupsChargeInfoURI from CUPS.
 - libcupsfilters: Let the PPD generator use the IPP string
   tables in the translation files of CUPS 2.3.x or newer
   (English strings only). Let all options in the PPD have
   human-readable option and choice names. In case of CUPS
   2.2.x or older (or if the CUPS translation are missing) we
   fall back to internal tables.
 - cups-browsed: Improved debug output when checking IPP
   attributes of IPP printers.
 - .gitignore: Ignore also core files.
 - cups-browsed: Support use of PPD files generated by CUPS for
   IPP Printers. Works only if the the local queue created by
   cups-browsed replaces a temporary queue from CUPS.
   Configurable via "UseCUPSGeneratedPPDs" directive in
   cups-browsed.conf.

1.18.0
------
 - braille: Add support for page-ranges option. Thanks to
          Samuel Thibault for this patch (Pull request #12).
 - braille: Fix supporting docx and LO file names with
          spaces. Thanks to Samuel Thibault for this patch (Pull
          request #11).
 - .gitignore: Updated and cleaned up.
 - Build system: Make sure that "make dist" always includes all
   files of the repository, plus the files generated by
   ./autogen.sh, independent of the system configuration and
   the used ./configure options.
 - pdftoijs, pdftoopvp: Build pdftoijs and pdftoopvp only on
   demand (via "--enable-ijs" and "--enable-opvp" on the
   ./configure command line). There are actually no known
   printer drivers using these filters. If no one complains
   about the missing filters they will get completely removed.
 - Build system: Set default path for pdftops to
   /usr/bin/pdftops also for cross-compiling (Bug #1417).
 - cups-browsed: Set "printer-location" as an attribute and not
   as an option when creating/updating a CUPS queue (Bug
   #1413).
 - braille: Fix handling non-printable characters in BRF
   files. Thanks to Samuel Thibault for this patch.
 - braille: Fix printing backslashes in BRF files. Thanks to
   Samuel Thibault for this patch.
 - braille: use application/vnd.cups-brf instead of
   text/vnd.cups-brf. Thanks to Samuel Thibault for this patch.
 - braille: Make sure liblouis emits pure BRF output. Thanks to
   Samuel Thibault for this patch.
 - braille: Spaces at the head of lines were not getting
   embossed, because bash would eat them in the read
   command. IFS allows to avoid the issue. Thanks to Samuel
   Thibault for this patch.
 - gstoraster: Emit proper error message if Ghostscript is
   missing.  Thanks to Peter De Wachter (pdewacht at gmail dot
   com) for the patch (Bug #1415).
 - braille: Old bash does not like quotes, like in '$(("123" +
   0))'. Removed unneeded quotes. Thanks to Samuel Thibault for
   this patch.
 - braille: Index V5 embossers are compatible with the V4
   protocol so we do not need driver changes, we just need to
   advertise the support. Thanks to Samuel Thibault for this
   patch.


(leot)
diff -r1.89 -r1.90 pkgsrc/print/cups-filters/Makefile
diff -r1.53 -r1.54 pkgsrc/print/cups-filters/distinfo
diff -r1.1 -r1.2 pkgsrc/print/cups-filters/patches/patch-filter_gstoraster.c

cvs diff -r1.89 -r1.90 pkgsrc/print/cups-filters/Makefile (expand / switch to unified diff)

--- pkgsrc/print/cups-filters/Makefile 2018/02/27 12:37:53 1.89
+++ pkgsrc/print/cups-filters/Makefile 2018/02/27 17:48:20 1.90
@@ -1,17 +1,16 @@ @@ -1,17 +1,16 @@
1# $NetBSD: Makefile,v 1.89 2018/02/27 12:37:53 ryoon Exp $ 1# $NetBSD: Makefile,v 1.90 2018/02/27 17:48:20 leot Exp $
2 2
3DISTNAME= cups-filters-1.17.9 3DISTNAME= cups-filters-1.20.1
4PKGREVISION= 7 
5CATEGORIES= print 4CATEGORIES= print
6MASTER_SITES= http://openprinting.org/download/cups-filters/ 5MASTER_SITES= http://openprinting.org/download/cups-filters/
7EXTRACT_SUFX= .tar.xz 6EXTRACT_SUFX= .tar.xz
8 7
9MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
10HOMEPAGE= http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters 9HOMEPAGE= http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
11COMMENT= Backends, filters, and other software for cups 10COMMENT= Backends, filters, and other software for cups
12LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND mit 11LICENSE= gnu-gpl-v2 AND gnu-gpl-v3 AND gnu-lgpl-v2 AND mit
13 12
14GNU_CONFIGURE= yes 13GNU_CONFIGURE= yes
15USE_LIBTOOL= yes 14USE_LIBTOOL= yes
16USE_TOOLS+= bash:run pkg-config gmake 15USE_TOOLS+= bash:run pkg-config gmake
17USE_LANGUAGES= c c++11 16USE_LANGUAGES= c c++11
@@ -39,26 +38,28 @@ CFLAGS+= -framework IOKit @@ -39,26 +38,28 @@ CFLAGS+= -framework IOKit
39 38
40BUILD_DEFS+= VARBASE 39BUILD_DEFS+= VARBASE
41CONFIGURE_ARGS+= --localstatedir=${VARBASE} 40CONFIGURE_ARGS+= --localstatedir=${VARBASE}
42 41
43RCD_SCRIPTS= cups-browsed 42RCD_SCRIPTS= cups-browsed
44 43
45CONFIGURE_ARGS+= --disable-braille 44CONFIGURE_ARGS+= --disable-braille
46CONFIGURE_ARGS+= --disable-ldap 45CONFIGURE_ARGS+= --disable-ldap
47CONFIGURE_ARGS+= --disable-mutool 46CONFIGURE_ARGS+= --disable-mutool
48CONFIGURE_ARGS+= --with-apple-raster-filter=rastertopdf 47CONFIGURE_ARGS+= --with-apple-raster-filter=rastertopdf
49CONFIGURE_ARGS+= --with-shell=${TOOLS_PATH.bash} 48CONFIGURE_ARGS+= --with-shell=${TOOLS_PATH.bash}
50CONFIGURE_ARGS+= --with-pdftops-path=${PREFIX}/bin/pdftops 49CONFIGURE_ARGS+= --with-pdftops-path=${PREFIX}/bin/pdftops
51CONFIGURE_ARGS+= --with-gs-path=${PREFIX}/bin/gs 50CONFIGURE_ARGS+= --with-gs-path=${PREFIX}/bin/gs
 51CONFIGURE_ARGS+= --enable-ijs
 52CONFIGURE_ARGS+= --enable-opvp
52 53
53INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/cups-filters 54INSTALL_MAKE_FLAGS+= sysconfdir=${PREFIX}/share/examples/cups-filters
54 55
55CONF_FILES= ${PREFIX}/share/examples/cups-filters/fonts/conf.d/99pdftoopvp.conf ${PKG_SYSCONFDIR}/fontconfig/conf.d/99pdftoopvp.conf 56CONF_FILES= ${PREFIX}/share/examples/cups-filters/fonts/conf.d/99pdftoopvp.conf ${PKG_SYSCONFDIR}/fontconfig/conf.d/99pdftoopvp.conf
56CONF_FILES+= ${PREFIX}/share/examples/cups-filters/cups-browsed.conf ${PKG_SYSCONFDIR}/cups/cups-browsed.conf 57CONF_FILES+= ${PREFIX}/share/examples/cups-filters/cups-browsed.conf ${PKG_SYSCONFDIR}/cups/cups-browsed.conf
57 58
58post-extract: 59post-extract:
59 ${CP} ${FILESDIR}/cups-browsed-daemonize.sh ${WRKSRC} 60 ${CP} ${FILESDIR}/cups-browsed-daemonize.sh ${WRKSRC}
60 61
61SUBST_CLASSES+= daemonize 62SUBST_CLASSES+= daemonize
62SUBST_STAGE.daemonize= pre-configure 63SUBST_STAGE.daemonize= pre-configure
63SUBST_MESSAGE.daemonize= Customizing daemonizing script 64SUBST_MESSAGE.daemonize= Customizing daemonizing script
64SUBST_FILES.daemonize= cups-browsed-daemonize.sh 65SUBST_FILES.daemonize= cups-browsed-daemonize.sh

cvs diff -r1.53 -r1.54 pkgsrc/print/cups-filters/distinfo (expand / switch to unified diff)

--- pkgsrc/print/cups-filters/distinfo 2017/10/23 13:07:55 1.53
+++ pkgsrc/print/cups-filters/distinfo 2018/02/27 17:48:20 1.54
@@ -1,10 +1,10 @@ @@ -1,10 +1,10 @@
1$NetBSD: distinfo,v 1.53 2017/10/23 13:07:55 leot Exp $ 1$NetBSD: distinfo,v 1.54 2018/02/27 17:48:20 leot Exp $
2 2
3SHA1 (cups-filters-1.17.9.tar.xz) = 352a16072f9f01057e1ea2a2ba119dc518082e1e 3SHA1 (cups-filters-1.20.1.tar.xz) = 08c913fc12ef90edfa0c590dfd0212594320e5c4
4RMD160 (cups-filters-1.17.9.tar.xz) = 669cab62509a43b60b97e730f7dc18c6ea67f555 4RMD160 (cups-filters-1.20.1.tar.xz) = 783fdbe0143dcc005cc434c59adca20c68191bb2
5SHA512 (cups-filters-1.17.9.tar.xz) = 811d2671c660a2129c207d5d8daaa576b027ba14ac4cf4753d0e8c1190866a684e284f1e7439b864aaab332e429befbc13c567bf6c9fc1a502fe2cd7d11e5ed4 5SHA512 (cups-filters-1.20.1.tar.xz) = 9c0fc3c821a24db99a55b0d5e1750946b294e3b265edae4d4701b4bb3ff9d0f19cb282ff44ec8880a0f643a2703ea3419b03d3d32a5e045d86a2d37031cef108
6Size (cups-filters-1.17.9.tar.xz) = 1454068 bytes 6Size (cups-filters-1.20.1.tar.xz) = 1467060 bytes
7SHA1 (patch-Makefile.in) = 2d5b05c9dca8ef7cc51931d77dddb1b2c4d422d8 7SHA1 (patch-Makefile.in) = 2d5b05c9dca8ef7cc51931d77dddb1b2c4d422d8
8SHA1 (patch-configure) = b55dc7dc22008351c396374aceb88d2be293d179 8SHA1 (patch-configure) = b55dc7dc22008351c396374aceb88d2be293d179
9SHA1 (patch-filter_gstoraster.c) = a9fac7892972943f345c6b76529feff0ba098458 9SHA1 (patch-filter_gstoraster.c) = 4eef8d91d8ca26a5a874e29885b836e9670d9e5d
10SHA1 (patch-filter_mupdftoraster.c) = 4c4f7d292163657f9541c8ce454ba57d248f7ef0 10SHA1 (patch-filter_mupdftoraster.c) = 4c4f7d292163657f9541c8ce454ba57d248f7ef0

cvs diff -r1.1 -r1.2 pkgsrc/print/cups-filters/patches/patch-filter_gstoraster.c (expand / switch to unified diff)

--- pkgsrc/print/cups-filters/patches/patch-filter_gstoraster.c 2016/11/06 11:21:19 1.1
+++ pkgsrc/print/cups-filters/patches/patch-filter_gstoraster.c 2018/02/27 17:48:20 1.2
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1$NetBSD: patch-filter_gstoraster.c,v 1.1 2016/11/06 11:21:19 leot Exp $ 1$NetBSD: patch-filter_gstoraster.c,v 1.2 2018/02/27 17:48:20 leot Exp $
2 2
3execvpe(3) appeared only on NetBSD 8.0, use execve(3) instead (like 3execvpe(3) appeared only on NetBSD 8.0, use execve(3) instead (like
4cups-filters-1.11.4). 4cups-filters-1.11.4).
5 5
6--- filter/gstoraster.c.orig 2016-10-27 22:50:52.000000000 +0000 6--- filter/gstoraster.c.orig 2018-02-07 22:08:42.000000000 +0000
7+++ filter/gstoraster.c 7+++ filter/gstoraster.c
8@@ -502,7 +502,7 @@ gs_spawn (const char *filename, 8@@ -503,7 +503,7 @@ gs_spawn (const char *filename,
9 } 9 }
10  10
11 /* Execute Ghostscript command line ... */ 11 /* Execute Ghostscript command line ... */
12- execvpe(filename, gsargv, envp); 12- execvpe(filename, gsargv, envp);
13+ execve(filename, gsargv, envp); 13+ execve(filename, gsargv, envp);
14 perror(filename); 14 fprintf(stderr, "ERROR: Unable to launch Ghostscript: %s: %s\n", filename, strerror(errno));
15 goto out; 15 goto out;
16 } 16 }