Package: cups / 2.2.10-5

Metadata

Package Version Patches format
cups 2.2.10-5 3.0 (quilt)

Patch series

view the series file
Patch File delta Description
pwg raster attributes.patch | (download)

scheduler/printers.c | 77 76 + 1 - 0 !
1 file changed, 76 insertions(+), 1 deletion(-)

 for pwg raster, add required ipp attributes

Add required by IPP Everywhere for PWG Raster when PWG Raster as input format
is supported

Bug-Upstream: https://www.cups.org/str.php?L4428
manpage hyphen minus.patch | (download)

man/backend.man | 4 2 + 2 - 0 !
man/client.conf.man.in | 4 2 + 2 - 0 !
man/cups-lpd.man.in | 6 3 + 3 - 0 !
man/cups-snmp.conf.man | 2 1 + 1 - 0 !
man/cups.man | 2 1 + 1 - 0 !
man/cupsaddsmb.man.in | 2 1 + 1 - 0 !
man/cupsctl.man | 6 3 + 3 - 0 !
man/cupsd-logs.man | 36 18 + 18 - 0 !
man/cupsd.conf.man.in | 2 1 + 1 - 0 !
man/cupsfilter.man | 2 1 + 1 - 0 !
man/filter.man | 2 1 + 1 - 0 !
man/ippfind.man | 6 3 + 3 - 0 !
man/ipptoolfile.man | 8 4 + 4 - 0 !
man/lp.man | 14 7 + 7 - 0 !
man/lpadmin.man | 6 3 + 3 - 0 !
man/lpoptions.man.in | 4 2 + 2 - 0 !
man/lpr.man | 10 5 + 5 - 0 !
man/mime.convs.man | 6 3 + 3 - 0 !
man/mime.types.man | 4 2 + 2 - 0 !
man/ppdc.man | 2 1 + 1 - 0 !
20 files changed, 64 insertions(+), 64 deletions(-)

 fix hyphen-used-as-minus-sign manpage errors

Automatically generated using sed -i -s 's/^-/\\-/g;s/ -/ \\-/g;s/"-/"\\-/g' man/*.man*
Also fix a missing backslash escape

0003 Install root backends world readable.patch | (download)

backend/Makefile | 4 2 + 2 - 0 !
scheduler/cups-deviced.c | 2 1 + 1 - 0 !
scheduler/job.c | 2 1 + 1 - 0 !
3 files changed, 4 insertions(+), 4 deletions(-)

 install root backends world-readable

This is needed:
 - to comply with Debian Policy
 - because it is both nonsensical to not do so
 - it also breaks system checkers, bug reporting, etc

Bug: http://www.cups.org/str.php?L2935
Bug-Debian: http://bugs.debian.org/410171

fixes for jobs with multiple files and multiple formats.patch | (download)

backend/ipp.c | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 fix jobs with multiple files or multiple formats

Bug-Redhat: https://bugzilla.redhat.com/show_bug.cgi?id=972242
Bug: https://www.cups.org/str.php?L4348
Last-Updated: 2015-02-10
Patch-Name: fixes-for-jobs-with-multiple-files-and-multiple-formats.patch

tests ignore warnings.patch | (download)

test/run-stp-tests.sh | 6 5 + 1 - 0 !
1 file changed, 5 insertions(+), 1 deletion(-)

 tests: ignore warnings from colord and avahi

These warnings change the expected number of warnings

tests ignore usb crash.patch | (download)

test/run-stp-tests.sh | 5 4 + 1 - 0 !
1 file changed, 4 insertions(+), 1 deletion(-)

 tests: ignore usb & dnssd backend unexpected exits

Ignore the following errors:
 "[cups-deviced] PID * (usb) crashed on signal 11!" and
 "[cups-deviced] PID * (dnssd) stopped with status 1"

 They seem to regularly happen on Debian/Ubuntu buildds and break error lines
 counting.
tests ignore kfreebsd amd64 not a pdf.patch | (download)

test/run-stp-tests.sh | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 tests: ignore loadfile failures

Ignore the 'loadFile failed: temp file: not a PDF file' error that sometimes
breaks the errorlines counting on kfreebsd-amd64 for some reason
tests ignore ipv6 address family not supported.patch | (download)

test/run-stp-tests.sh | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 tests: ignore errors triggered on ipv6-deprived hosts

Ignore the 'Address family not supported by protocol' error that breaks the
errorlines counting on buildds without a working IPv6 stack.
tests ignore kfreebsd unable to write uncompressed print data.patch | (download)

test/run-stp-tests.sh | 1 1 + 0 - 0 !
1 file changed, 1 insertion(+)

 tests: ignore the failure to write uncompressed data

Ignore the 'Unable to write uncompressed print data: Broken pipe'  error that
sometimes breaks the errorlines counting on kfreebsd for some reason.
test i18n nonlinux.patch | (download)

cups/testi18n.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 tests: do not run the cups_euc_jp test case on bsd/hurd either, as
tests wait on unfinished jobs everytime.patch | (download)

test/run-stp-tests.sh | 5 5 + 0 - 0 !
1 file changed, 5 insertions(+)

 tests: make sure that all scheduled jobs are finished before

 running a new test. Fixes failures on slow architectures like armel and
 mipsel.
Bug-Debian: http://bugs.debian.org/670878
tests fix ppdLocalize on unclean env.patch | (download)

cups/testppd.c | 8 8 + 0 - 0 !
1 file changed, 8 insertions(+)

 tests: force lc_* environment variables when testing (non)
 l10n'isation.

 Permits building in non-"C" environments.
tests use ipv4 lo address.patch | (download)

test/5.1-lpadmin.sh | 4 2 + 2 - 0 !
test/run-stp-tests.sh | 8 4 + 4 - 0 !
2 files changed, 6 insertions(+), 6 deletions(-)

 use 127.0.0.1 instead of localhost in the test-suite. this should

 make the test-suite work in pbuilder. It apparently also fixes an ipp backend
 problem in the test-suite.
tests make lpstat call reproducible.patch | (download)

test/run-stp-tests.sh | 6 3 + 3 - 0 !
1 file changed, 3 insertions(+), 3 deletions(-)

 force lc_all=c environment variable when grepping the output of
 lpstat.

 Permits testing in non-"C" environments.
tests no pdftourf.patch | (download)

test/run-stp-tests.sh | 4 1 + 3 - 0 !
test/test.convs | 1 0 + 1 - 0 !
test/test.types | 2 0 + 2 - 0 !
3 files changed, 1 insertion(+), 6 deletions(-)

 revert pdftourf filter addition in tests

 "Update "make test" to include alternate filter."
 .
 This fixes the error lines counting in the test, and is unneeded as pdftourf
 is not shipped in Debian.
move cupsd conf default to share.patch | (download)

cgi-bin/admin.c | 6 5 + 1 - 0 !
conf/Makefile | 5 3 + 2 - 0 !
2 files changed, 8 insertions(+), 3 deletions(-)

 move cupsd.conf.default from serverroot to datadir

drop_unnecessary_dependencies.patch | (download)

Makedefs.in | 2 1 + 1 - 0 !
cups/Makefile | 4 2 + 2 - 0 !
filter/Makefile | 2 1 + 1 - 0 !
3 files changed, 4 insertions(+), 4 deletions(-)

 do not link libcups.so and libcupsimage.so unnecessarily

This avoids unnecessary package dependencies for both libcups, as well as for packages using cups-config.

Bug: https://www.cups.org/str.php?L4343
Bug-Debian: http://bugs.debian.org/438067

Patch-Name: drop_unnecessary_dependencies.patch

airprint support.patch | (download)

conf/mime.convs.in | 3 3 + 0 - 0 !
conf/mime.types | 3 3 + 0 - 0 !
scheduler/conf.c | 2 1 + 1 - 0 !
scheduler/dirsvc.c | 6 6 + 0 - 0 !
scheduler/printers.c | 4 3 + 1 - 0 !
5 files changed, 16 insertions(+), 2 deletions(-)

 patch to support apple airprint (printing from iphone, ipad, ipod
 Touch to a CUPS server)

Bug-Ubuntu: https://bugs.launchpad.net/bugs/711779
Bug-Ubuntu: https://bugs.launchpad.net/bugs/1054495
Bug-Debian: http://bugs.debian.org/700961
Bug: https://cups.org/str.php?L4341
0019 Let snmp backend also use manufacturer specific MIBs.patch | (download)

backend/snmp.c | 8 8 + 0 - 0 !
1 file changed, 8 insertions(+)

 let snmp backend also use manufacturer-specific mibs
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit

 … of HP and Ricoh to obtain the device IDs of network-connected
 printers. This way we get more reliable information about make and model
 and in addition the supported page description languages, which allows one to
 identify whether an optional PostScript add-on is installed or for an
 unsupported printer which generic PPD is the best choice (requested by
 Ricoh).
Bug: https://www.cups.org/str.php?L3552

no conffile timestamp.patch | (download)

scheduler/classes.c | 2 1 + 1 - 0 !
scheduler/job.c | 2 1 + 1 - 0 !
scheduler/printers.c | 2 1 + 1 - 0 !
scheduler/subscriptions.c | 2 1 + 1 - 0 !
4 files changed, 4 insertions(+), 4 deletions(-)

 disable time stamps in conffiles, to avoid ever-changing files in
 /etc.

Bug: https://github.com/apple/cups/issues/3067
Bug-Debian: https://bugs.debian.org/549673

Patch-Name: no-conffile-timestamp.patch

removecvstag.patch | (download)

conf/Makefile | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

 do not write vcs tags into installed conffiles

Bug: http://www.cups.org/str.php?L2369
rename systemd units.patch | (download)

scheduler/org.cups.cups-lpd.socket | 2 1 + 1 - 0 !
scheduler/org.cups.cupsd.path.in | 2 1 + 1 - 0 !
scheduler/org.cups.cupsd.service.in | 2 1 + 1 - 0 !
scheduler/org.cups.cupsd.socket.in | 2 1 + 1 - 0 !
4 files changed, 4 insertions(+), 4 deletions(-)

 rename the systemd service file from org.cups.cups.* to cups.*

Patch-Name: rename-systemd-units.patch

do not broadcast with hostnames.patch | (download)

scheduler/conf.c | 2 1 + 1 - 0 !
1 file changed, 1 insertion(+), 1 deletion(-)

 do not use host names for broadcasting print queues and

 managing print queues broadcasted from other servers by default. Many
 networks do not have valid host names for all machines.
Bug-Ubuntu: https://bugs.launchpad.net/bugs/449586

Patch-Name: do-not-broadcast-with-hostnames.patch

reactivate_recommended_driver.patch | (download)

scheduler/cups-driverd.cxx | 10 0 + 10 - 0 !
1 file changed, 10 deletions(-)

 cups removes the "(recommended)" comments of the nicknames of
 Foomatic PPDs when listing available PPDs. This patch removes this removal
 action.

logfiles_adm_readable.patch | (download)

scheduler/log.c | 11 9 + 2 - 0 !
1 file changed, 9 insertions(+), 2 deletions(-)

 make log files readable to group "adm", if present.

Bug-Ubuntu: https://launchpad.net/bugs/345953

default_log_settings.patch | (download)

conf/cupsd.conf.in | 4 4 + 0 - 0 !
1 file changed, 4 insertions(+)

 deactivate cups' own log rotating as the system already provides a
 more sophisticated log rotating

confdirperms.patch | (download)

scheduler/conf.c | 2 2 + 0 - 0 !
1 file changed, 2 insertions(+)

 do not mess with the permissions of cupsd.conf.

show compile command lines.patch | (download)

Makedefs.in | 1 0 + 1 - 0 !
1 file changed, 1 deletion(-)

 show compile command lines

Patch-Name: show-compile-command-lines.patch

log debug history nearly unlimited.patch | (download)

scheduler/conf.c | 2 1 + 1 - 0 !
scheduler/conf.h | 2 1 + 1 - 0 !
2 files changed, 2 insertions(+), 2 deletions(-)

 make log debug history nearly unlimited

cupsd set default for SyncOnClose to Yes.patch | (download)

conf/cups-files.conf.in | 2 1 + 1 - 0 !
doc/help/man-cups-files.conf.html | 2 1 + 1 - 0 !
man/cups-files.conf.man.in | 2 1 + 1 - 0 !
scheduler/conf.c | 2 1 + 1 - 0 !
4 files changed, 4 insertions(+), 4 deletions(-)

 set the default for synconclose to yes

cups set default error policy retry job.patch | (download)

doc/help/man-cupsd.conf.html | 4 2 + 2 - 0 !
man/cupsd.conf.man.in | 4 2 + 2 - 0 !
scheduler/conf.c | 6 3 + 3 - 0 !
3 files changed, 7 insertions(+), 7 deletions(-)

 set default job error policy to "retry-job", since it is less

 confusing and a better default on most machines.
 .
 Amend documentation accordingly.
man cups lpd drop dangling references.patch | (download)

man/cups-lpd.man.in | 2 0 + 2 - 0 !
1 file changed, 2 deletions(-)

 drop dangling references from cups-lpd.man

Bug-Debian: http://bugs.debian.org/570157
debianize_cups config.patch | (download)

cups-config.in | 11 6 + 5 - 0 !
1 file changed, 6 insertions(+), 5 deletions(-)

 use dpkg-architecture in cups-config to make it
 architecture-independant

 Also filter -L/usr/lib/(triplet) out of LDFLAGS.
 Also strip unnecessary libs from --libs.
 Also launch krb5-config at runtime to avoid getting usr/lib/(triplet) from krb5-config
Bug-Debian: https://bugs.debian.org/741519
Bug-Debian: https://bugs.debian.org/727058
Bug-Debian: https://bugs.debian.org/730838
Bug-Debian: https://bugs.debian.org/751157
0034 Build mantohtml with the build architecture compiler.patch | (download)

Makedefs.in | 1 1 + 0 - 0 !
configure.ac | 9 9 + 0 - 0 !
man/Makefile | 6 2 + 4 - 0 !
man/mantohtml.c | 15 10 + 5 - 0 !
4 files changed, 22 insertions(+), 9 deletions(-)

 build mantohtml with the build architecture compiler

mantohtml is run during build. Thus it needs to be built with the build
architecture compiler (or execution fails). The obvious part is switching to
CC_FOR_BUILD. That also depends on it not requiring any other cups components.
In particular, removing uses of strlcpy and replacing host architecture-
specific includes is thus needed.

Bug-Debian: https://bugs.debian.org/837936

0035 The lp and lpr commands now provide better error mes.patch | (download)

cups/dest.c | 38 37 + 1 - 0 !
1 file changed, 37 insertions(+), 1 deletion(-)

 =?utf-8?q?the=20`lp`=20and=20`lpr`=20commands=20now=20provide=20b?=
 =?UTF-8?q?etter=20error=20messages=20when=20the=20default=0Aprinter=20can?=
 =?UTF-8?q?not=20be=20found=20(Issue=20#5096)?=

- berkeley/lpr.c: Use cupsLastErrorMessage() for not-found errors.
- cups/dest.c: Set the last error message in cupsGetNamedDest().
- systemv/lp.c: Use cupsLastErrorMessage() for not-found errors.

Bug-Debian: #870463

0036 Protect against continuing to read from a file at EO.patch | (download)

cups/file.c | 12 12 + 0 - 0 !
1 file changed, 12 insertions(+)

 protect against continuing to read from a file at eof (issue #5473)

Fixed a potential memory leak when reading at the end of a file

0037 Use the same requested attributes values for all IPP.patch | (download)

cgi-bin/admin.c | 10 8 + 2 - 0 !
scheduler/ipp.c | 9 7 + 2 - 0 !
systemv/lpadmin.c | 6 2 + 4 - 0 !
3 files changed, 17 insertions(+), 8 deletions(-)

 use the same requested-attributes values for all ipp everywhere setup
 requests (Issue #5484)

The lpadmin command, web interface, and scheduler all queried an IPP
0038 Add a USB quirk rule for the Lexmark E120n Issue 547.patch | (download)

backend/org.cups.usb-quirks | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 add a usb quirk rule for the lexmark e120n (issue #5478)


0039 Updated the USB quirks rule for Zebra label printers.patch | (download)

backend/org.cups.usb-quirks | 7 2 + 5 - 0 !
1 file changed, 2 insertions(+), 5 deletions(-)

 updated the usb quirks rule for zebra label printers (issue #5395)

Now all Zebra label printers use unidir and no-reattach.

0040 Add USB quirks rule for Xerox printers Issue 5523.patch | (download)

backend/org.cups.usb-quirks | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 add usb quirks rule for xerox printers (issue #5523)


0041 Add a USB quirks rule for the DYMO 450 Turbo Issue 5.patch | (download)

backend/org.cups.usb-quirks | 3 3 + 0 - 0 !
1 file changed, 3 insertions(+)

 add a usb quirks rule for the dymo 450 turbo (issue #5521)


0042 Fix compile error on Linux Issue 5483.patch | (download)

cups/hash.c | 4 2 + 2 - 0 !
1 file changed, 2 insertions(+), 2 deletions(-)

 fix compile error on linux (issue #5483)


0043 Stop parsing the Emulators keywords in PPD files Iss.patch | (download)

cups/ppd.c | 76 2 + 74 - 0 !
cups/ppd.h | 8 4 + 4 - 0 !
2 files changed, 6 insertions(+), 78 deletions(-)

 stop parsing the emulators keywords in ppd files (issue #5475)

This also addresses a potential memory leak...

0044 Fix potential unaligned accesses in the string pool .patch | (download)

cgi-bin/admin.c | 12 6 + 6 - 0 !
cgi-bin/var.c | 42 20 + 22 - 0 !
cups/ppd-cache.c | 134 59 + 75 - 0 !
cups/ppd-mark.c | 12 6 + 6 - 0 !
cups/ppd.c | 115 56 + 59 - 0 !
cups/string.c | 21 10 + 11 - 0 !
scheduler/ipp.c | 8 4 + 4 - 0 !
7 files changed, 161 insertions(+), 183 deletions(-)

 fix potential unaligned accesses in the string pool (issue #5474)

This set of changes makes the PPD functions use strdup and free - they were
modifying the contents of the string in places and doing other things that
were not safe for (immutable) strings in the pool.

Clean out some more _cupsStr cruft that might potentially cause an unaligned memory access (Issue #5474)

Don't directly use the string pool in the CGI programs or scheduler.

manpage translations.patch | (download)

man/Makefile | 15 14 + 1 - 0 !
man/Makefile.l10n | 246 246 + 0 - 0 !
man/de/Makefile | 7 7 + 0 - 0 !
man/fr/Makefile | 7 7 + 0 - 0 !
4 files changed, 274 insertions(+), 1 deletion(-)

 po4a infrastructure and translations for manpages.
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit