Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package cups for openSUSE:Factory checked in 
at 2022-04-13 21:04:16
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/cups (Old)
 and      /work/SRC/openSUSE:Factory/.cups.new.1900 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "cups"

Wed Apr 13 21:04:16 2022 rev:162 rq:969223 version:2.4.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/cups/cups.changes        2022-01-02 
11:54:42.625016989 +0100
+++ /work/SRC/openSUSE:Factory/.cups.new.1900/cups.changes      2022-04-13 
21:04:40.152551003 +0200
@@ -1,0 +2,206 @@
+Mon Apr  4 12:45:16 UTC 2022 - jsm...@suse.de
+
+- Have cups.pc in %{_libdir} to avoid a conflict
+  that cups-devel and cups-devel-32bit would
+  both contain /usr/lib/pkgconfig/cups.pc because
+  when cups.pc is arch dependent it has to be in %{_libdir}
+  which it is because it contains 'libdir=/usr/lib64' on x86_64
+  (if it was arch independent it would have to be in %{_datadir})
+  cf. https://build.opensuse.org/request/show/965680
+
+-------------------------------------------------------------------
+Fri Mar  4 11:34:13 UTC 2022 - jsm...@suse.de
+
+- Improved comments in spec file and in changes file
+- Have cups.keyring in ASCII armored format
+- Do not error out when 'make test' fails in the 'check' section
+  because https://github.com/OpenPrinting/cups/issues/155
+  is not yet actually fixed so currently the testsuite
+  still sometimes fails
+
+-------------------------------------------------------------------
+Tue Mar  1 18:16:11 UTC 2022 - Aurelien Joga <aurelienj...@gmail.com>
+
+- Version upgrade to 2.4.1:
+  See https://github.com/openprinting/cups/releases
+  CUPS 2.4.1 is the first bug fix release from 2.4.x series.
+  Among the other bug fixes it fixes sharing default color mode
+  to clients and several memory leaks.
+  * The default color mode now is now configurable and defaults
+    to the printer's reported default mode (Issue #277)
+  * Configuration script now checks linking for -Wl,-pie flags
+    (Issue #303)
+  * Fixed memory leaks -
+    in testi18n (Issue #313),
+    in cups_enum_dests() (Issue #317),
+    in _cupsEncodeOption() and http_tls_upgrade() (Issue #322)
+  * Fixed missing bracket in de/index.html (Issue #299)
+  * Fixed typos in configuration scripts (Issues #304, #316)
+  * Removed remaining legacy code for RIP_MAX_CACHE environment
+    variable (Issue #323)
+  * Removed deprecated directives from cupsctl and
+    cups-files.conf (Issue #300)
+  * Removed purge-jobs legacy code from CGI scripts and
+    templates (Issue #325)
+- Version upgrade to 2.4.0:
+  CUPS 2.4.0 is the latest stable OpenPrinting CUPS release.
+  Among the changes from beta and release candidate
+  the stable release adds two new configuration options for
+  optimizing cupsd setup on servers and several other changes.
+  * Added configure option --with-idle-exit-timeout (Issue #294)
+  * Added --with-systemd-timeoutstartsec configure
+    option (Issue #298)
+  * DigestOptions now are applied for MD5 Digest authentication
+    defined by RFC 2069 as well (Issue #287)
+  * Fixed compilation on Solaris (Issue #293)
+  * Fixed and improved German translations (Issue #296, Issue #297)
+- Version upgrade to 2.4rc1:
+  CUPS 2.4rc1 is a release candidate for OpenPrinting CUPS 2.4.0,
+  which adds two enhancements before the stable release.
+  * Added warning and debug messages when loading printers
+    if the queue is raw or with driver (Issue #286)
+  * Compilation now uses -fstack-protector-strong
+    if available (Issue #285)
+- Version upgrade to 2.4b1:
+  CUPS 2.4b1 is the beta release for OpenPrinting CUPS 2.4
+  which contains several new features such as basic OAuth support,
+  support for AirPrint and Mopria clients and support for running
+  CUPS as a snap, several deprecations (Kerberos, cups-config),
+  removals of old deprecated directives, and many bug fixes.
+  * Added support for CUPS running in a Snapcraft snap.
+  * Added basic OAuth 2.0 client support (Issue #100)
+  * Added support for AirPrint and Mopria clients (Issue #105)
+  * Added configure support for specifying systemd dependencies
+    in the CUPS service file (Issue #144)
+  * Added several features and improvements to ipptool (Issue #153)
+  * Added a JSON output mode for ipptool.
+  * The ipptool command now correctly reports an error
+    when a test file cannot be found.
+  * CUPS library now uses thread safe getpwnam_r and getpwuid_r
+    functions (Issue #274)
+  * Fixed Kerberos authentication for the web interface (Issue #19)
+  * The ZPL sample driver now supports more "standard" label
+    sizes (Issue #70)
+  * Fixed reporting of printer instances when enumerating and when
+    no options are set for the main instance (Issue #71)
+  * Reverted USB read limit enforcement change
+    from CUPS 2.2.12 (Issue #72)
+  * The IPP backend did not return the correct status code
+    when a job was canceled at the printer/server (Issue #74)
+  * The testlang unit test program now loops over all of the
+    available locales by default (Issue #85)
+  * The cupsfilter command now shows error messages when options
+    are used incorrectly (Issue #88)
+  * The PPD functions now treat boolean values as
+    case-insensitive (Issue #106)
+  * Temporary queue names no longer end with an
+    underscore (Issue #110)
+  * The USB backend now runs as root (Issue #121)
+  * Added pkg-config file for libcups (Issue #122)
+  * Fixed a PPD memory leak caused by emulator
+    definitions (Issue #124)
+  * Fixed a DISPLAY bug in ipptool (Issue #139)
+  * The scheduler now includes the [Job N] prefix for job log
+    messages, even when using syslog logging (Issue #154)
+  * Added support for locales using the GB18030
+    character set (Issue #159)
+  * httpReconnect2 did not reset the socket file descriptor
+    when the TLS negotiation failed (Apple #5907)
+  * httpUpdate did not reset the socket file descriptor
+    when the TLS negotiation failed (Apple #5915)
+  * The IPP backend now retries Validate-Job requests (Issue #132)
+  * Now show better error messages when a driver interface program
+    fails to provide a PPD file (Issue #148)
+  * Added dark mode support to the CUPS web interface (Issue #152)
+  * Added a workaround for Solaris in httpAddrConnect2 (Issue #156)
+  * Fixed an interaction between --remote-admin and --remote-any
+    for the cupsctl command (Issue #158)
+  * Now use a 60 second timeout for reading USB backchannel
+    data (Issue #160)
+  * The USB backend now tries harder to find a serial
+    number (Issue #170)
+  * Fixed @IF(name) handling in cupsd.conf (Apple #5918)
+  * Fixed documentation and added examples for CUPS' limited
+    CGI support (Apple #5940)
+  * Fixed the lpc command prompt (Apple #5946)
+  * Now always pass "localhost" in the Host: header when talking
+    over a domain socket or the loopback interface (Issue #185)
+  * Fixed a job history update issue in the scheduler (Issue #187)
+  * Fixed job-pages-per-set value for duplex print jobs.
+  * Fixed an edge case in ippReadIO to make sure that only complete
+    attributes and values are retained on an error (Issue #195)
+  * Hardened ippReadIO to prevent invalid IPP messages from being
+    propagated (Issue #195, Issue #196)
+  * The scheduler now supports the "everywhere" model
+    directly (Issue #201)
+  * Fixed some IPP Everywhere option mapping problems (Issue #238)
+  * Fixed support for "job-hold-until" with the Restart-Job
+    operation (Issue #250)
+  * Fixed the default color/grayscale presets for
+    IPP Everywhere PPDs (Issue #262)
+  * Fixed support for the 'offline-report' state for all
+    USB backends (Issue #264)
+  * Documentation fixes (Issue #92, Issue #163, Issue #177,
+    Issue #184)
+  * Localization updates (Issue #123, Issue #129, Issue #134,
+    Issue #146, Issue #164)
+  * USB quirk updates (Issue #192, Issue #270, Apple #5766,
+    Apple #5838, Apple #5843, Apple #5867)
+  * Web interface updates (Issue #142, Issue #218)
+  * The ippeveprinter tool now automatically uses an
+    available port.
+  * Fixed several Windows TLS and hashing issues.
+  * Deprecated cups-config (Issue #97)
+  * Deprecated Kerberos (AuthType Negotiate)
+    authentication (Issue #98)
+  * Removed support for the (long deprecated and unused)
+    FontPath, ListenBackLog, LPDConfigFile, KeepAliveTimeout,
+    RIPCache, and SMBConfigFile directives in cupsd.conf
+    and cups-files.conf.
+  * Stubbed out deprecated httpMD5 functions.
+  * Add test for undefined page ranges during printing.
+- downgrade-autoconf-requirement.patch downgrades the
+  autoconf requirement to what is currently available in openSUSE
+- fix-negotiate-authentication-between-CGIs-and-scheduler.patch
+  is obsolete because it is included in the upstream code, see
+  
https://github.com/OpenPrinting/cups/commit/3ff789ee90b18205c735e42e599eb3ee3043e88a
+  https://github.com/OpenPrinting/cups/pull/19
+  https://github.com/apple/cups/pull/5847
+  https://github.com/apple/cups/issues/5596
+- upstream_pull_174.patch
+  is obsolete because it is included in the upstream code, see
+  
https://github.com/OpenPrinting/cups/commit/43edb9df51b977d92929b084186dcd67d4f5ca44
+  https://github.com/OpenPrinting/cups/pull/174
+  https://github.com/OpenPrinting/cups/issues/72
+- patch cups-2.1.0-cups-systemd-socket.patch
+  is obsolete because it is included in the upstream code, see
+  
https://github.com/OpenPrinting/cups/commit/e96e96b4bd0d4e6f634bbb66b95d6e475501541c
+- Updated upstream source tarball signing key in cups.keyring, see
+  
https://github.com/OpenPrinting/cups/discussions/327#discussioncomment-2060579
+- Re-enabled the CUPS upstream testsuite via 'make test'
+  and removed 'make check' because since the upstream commit
+  
https://github.com/OpenPrinting/cups/commit/96ba46ebc818b610b0e40cbc9d62ef1dcd3ec9b6
+  the two Makefile targets 'test' and 'check' are identical.
+- Changed cups-2.1.0-cups-systemd-socket.patch
+  to accomodate new coding style
+- Changed cups-config-libs.orig to accommodate
+  recent code changes (SSL->TLS)
+- Changed cups-2.1.0-default-webcontent-path.patch
+  to accommodate code changes
+
+-------------------------------------------------------------------
+Tue Feb  1 09:18:27 UTC 2022 - jsm...@suse.de
+
+- Enhanced harden_cups.service.patch by adding
+  ReadWritePaths=/etc/cups
+  because cupsd needs write access in /etc/cups
+  (boo#1195288)
++++ 9 more lines (skipped)
++++ between /work/SRC/openSUSE:Factory/cups/cups.changes
++++ and /work/SRC/openSUSE:Factory/.cups.new.1900/cups.changes

Old:
----
  cups-2.1.0-cups-systemd-socket.patch
  cups-2.3.3op2-source.tar.gz
  cups-2.3.3op2-source.tar.gz.sig
  fix-negotiate-authentication-between-CGIs-and-scheduler.patch
  upstream_pull_174.patch

New:
----
  cups-2.4.1-source.tar.gz
  cups-2.4.1-source.tar.gz.sig
  downgrade-autoconf-requirement.patch
  harden_cups.service.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ cups.spec ++++++
--- /var/tmp/diff_new_pack.YRQuE6/_old  2022-04-13 21:04:45.044554915 +0200
+++ /var/tmp/diff_new_pack.YRQuE6/_new  2022-04-13 21:04:45.052554921 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package cups
 #
-# Copyright (c) 2021 SUSE LLC
+# Copyright (c) 2022 SUSE LLC
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -16,11 +16,12 @@
 #
 
 
-# Cf. https://rpm.org/user_doc/conditional_builds.html
-# by default enable testsuite (i.e. in the 'check' section run make check and 
make test)
-#bcond_without testsuite
-# disable testsuite for now until 
https://github.com/OpenPrinting/cups/issues/155 is fixed
-%bcond_with testsuite
+# By default enable testsuite (i.e. in the 'check' section run 'make test')
+# cf. https://rpm.org/user_doc/conditional_builds.html
+# To disable the testsuite you may set 'bcond_with testsuite' instead
+# until https://github.com/OpenPrinting/cups/issues/155 is actually fixed
+# but we do not error out when 'make test' fails (see the 'check' section):
+%bcond_without testsuite
 
 # _tmpfilesdir is not defined in systemd macros up to openSUSE 13.2
 %{!?_tmpfilesdir: %global _tmpfilesdir /usr/lib/tmpfiles.d }
@@ -29,34 +30,34 @@
 # "zypper vcmp 2.3.b99 2.3.0" shows "2.3.b99 is older than 2.3.0" and
 # "zypper vcmp 2.2.99 2.3b6" show "2.2.99 is older than 2.3b6" so that
 # version upgrades from 2.2.x via 2.3.b* to 2.3.0 work:
-Version:        2.3.3op2
+Version:        2.4.1
 Release:        0
 Summary:        The Common UNIX Printing System
 License:        Apache-2.0
 Group:          Hardware/Printing
 URL:            https://openprinting.github.io/cups
 # To get Source0 go to https://github.com/OpenPrinting/cups/releases or use 
e.g.
-# wget --no-check-certificate -O cups-2.3.3op2-source.tar.gz 
https://github.com/OpenPrinting/cups/releases/download/v2.3.3op2/cups-2.3.3op2-source.tar.gz
-Source0:        
https://github.com/OpenPrinting/cups/releases/download/v2.3.3op2/cups-2.3.3op2-source.tar.gz
+# wget --no-check-certificate -O cups-2.4.1-source.tar.gz 
https://github.com/OpenPrinting/cups/releases/download/v2.4.1/cups-2.4.1-source.tar.gz
+Source0:        
https://github.com/OpenPrinting/cups/releases/download/v2.4.1/cups-2.4.1-source.tar.gz
 # To get Source1 go to https://github.com/OpenPrinting/cups/releases or use 
e.g.
-# wget --no-check-certificate -O cups-2.3.3op2-source.tar.gz.sig 
https://github.com/OpenPrinting/cups/releases/download/v2.3.3op2/cups-2.3.3op2-source.tar.gz.sig
-Source1:        
https://github.com/OpenPrinting/cups/releases/download/v2.3.3op2/cups-2.3.3op2-source.tar.gz.sig
-# To get Source2 go to https://www.msweet.org/pgp.html
-# PGP Fingerprint: 845464660B686AAB36540B6F999559A027815955
+# wget --no-check-certificate -O cups-2.4.1-source.tar.gz.sig 
https://github.com/OpenPrinting/cups/releases/download/v2.4.1/cups-2.4.1-source.tar.gz.sig
+Source1:        
https://github.com/OpenPrinting/cups/releases/download/v2.4.1/cups-2.4.1-source.tar.gz.sig
+# To make Source2 use e.g.
+#   gpg --keyserver keys.openpgp.org --recv-keys 
7082A0A50A2E92640F3880E0E4522DCC9B246FF7
+#   gpg --export --armor 7082A0A50A2E92640F3880E0E4522DCC9B246FF7 >cups.keyring
+# See 
https://github.com/OpenPrinting/cups/discussions/327#discussioncomment-2060579
+# PGP Fingerprint: 7082A0A50A2E92640F3880E0E4522DCC9B246FF7
 Source2:        cups.keyring
 # To manually verify Source0 with Source1 and Source2 do e.g.
 #   gpg --import cups.keyring
-#   gpg --list-keys | grep -1 'Michael R Sweet' | grep -v 'expired'
-#   gpg --verify cups-2.3.3op2-source.tar.gz.sig cups-2.3.3op2-source.tar.gz
+#   gpg --list-keys | grep -1 'Zdenek Dohnal'
+#   gpg --verify cups-2.4.1-source.tar.gz.sig cups-2.4.1-source.tar.gz
 Source102:      Postscript.ppd.gz
 Source105:      Postscript-level1.ppd.gz
 Source106:      Postscript-level2.ppd.gz
 Source108:      cups-client.conf
 Source109:      baselibs.conf
 # Patch0...Patch9 is for patches from upstream:
-# Patch1 upstream_pull_174.patch is 
https://github.com/OpenPrinting/cups/pull/174
-# Use 60s timeout for read_thread, revert read limits
-Patch1:         upstream_pull_174.patch
 # Source10...Source99 is for sources from SUSE which are intended for upstream:
 # Patch10...Patch99 is for patches from SUSE which are intended for upstream:
 # Patch10 cups-2.1.0-choose-uri-template.patch adds 'smb://...' URIs to 
templates/choose-uri.tmpl:
@@ -64,15 +65,13 @@
 # Patch11 cups-2.1.0-default-webcontent-path.patch changes the default path 
whereto the
 # web content is installed from /usr/share/doc/cups to 
/usr/share/cups/webcontent
 # because the files of the CUPS web content are no documentation, see CUPS STR 
#3578
-# and http://bugzilla.novell.com/show_bug.cgi?id=546023#c6 and subsequent 
comments:
+# and https://bugzilla.suse.com/show_bug.cgi?id=546023#c6 and subsequent 
comments:
 Patch11:        cups-2.1.0-default-webcontent-path.patch
-# Patch12 cups-2.1.0-cups-systemd-socket.patch Use systemd socket activation 
properly:
-Patch12:        cups-2.1.0-cups-systemd-socket.patch
 # Patch100...Patch999 is for private patches from SUSE which are not intended 
for upstream:
 # Patch100 cups-pam.diff adds conf/pam.suse regarding support for PAM for SUSE:
 Patch100:       cups-pam.diff
 # Patch101 cups-2.0.3-additional_policies.patch adds the 'allowallforanybody' 
policy to cupsd.conf
-# see https://fate.novell.com/303515 and 
https://bugzilla.suse.com/show_bug.cgi?id=936309
+# see SUSE FATE 303515 and https://bugzilla.suse.com/show_bug.cgi?id=936309
 Patch101:       cups-2.0.3-additional_policies.patch
 # Patch103 cups-1.4-do_not_strip_recommended_from_PPDs.patch
 # reverts the change which was added by Michael Sweet in Jan 2007
@@ -83,8 +82,16 @@
 Patch103:       cups-1.4-do_not_strip_recommended_from_PPDs.patch
 # Patch104 cups-config-libs.patch fixes option --libs in cups-config script:
 Patch104:       cups-config-libs.patch
-# Patch106 Fixes web UI Kerberos authentication (bsc#1175960)
-Patch106:       fix-negotiate-authentication-between-CGIs-and-scheduler.patch
+# Patch107 harden_cups.service.patch adds hardening to systemd service 
cups.service
+# see https://bugzilla.suse.com/show_bug.cgi?id=1181400
+# and 
https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+# where the default hardening settings are enhanced by adding
+# ReadWritePaths=/etc/cups because cupsd needs write access in /etc/cups
+# see https://bugzilla.suse.com/show_bug.cgi?id=1195288
+Patch107:       harden_cups.service.patch
+# Patch108 downgrade-autoconf-requirement.patch
+# downgrades the autoconf requirement to the autoconf available in Tumbleweed 
as of this writing:
+Patch108:       downgrade-autoconf-requirement.patch
 # Build Requirements:
 BuildRequires:  dbus-1-devel
 BuildRequires:  fdupes
@@ -279,24 +286,19 @@
 %prep
 %setup -q
 # Patch0...Patch9 is for patches from upstream:
-# Patch1 upstream_pull_174.patch is 
https://github.com/OpenPrinting/cups/pull/174
-# Use 60s timeout for read_thread, revert read limits
-%patch1 -p1
 # Patch10...Patch99 is for patches from SUSE which are intended for upstream:
 # Patch10 cups-2.1.0-choose-uri-template.patch adds 'smb://...' URIs to 
templates/choose-uri.tmpl:
 %patch10 -b choose-uri-template.orig
 # Patch11 cups-2.1.0-default-webcontent-path.patch changes the default path 
whereto the
 # web content is installed from /usr/share/doc/cups to 
/usr/share/cups/webcontent
 # because the files of the CUPS web content are no documentation, see CUPS STR 
#3578
-# and http://bugzilla.novell.com/show_bug.cgi?id=546023#c6 and subsequent 
comments:
+# and https://bugzilla.suse.com/show_bug.cgi?id=546023#c6 and subsequent 
comments:
 %patch11 -b default-webcontent-path.orig
-# Patch12 cups-2.1.0-cups-systemd-socket.patch Use systemd socket activation 
properly:
-#patch12 -b cups-systemd-socket.orig
 # Patch100...Patch999 is for private patches from SUSE which are not intended 
for upstream:
 # Patch100 cups-pam.diff adds conf/pam.suse regarding support for PAM for SUSE:
 %patch100 -b cups-pam.orig
 # Patch101 cups-2.0.3-additional_policies.patch adds the 'allowallforanybody' 
policy to cupsd.conf
-# see https://fate.novell.com/303515 and 
https://bugzilla.suse.com/show_bug.cgi?id=936309
+# see SUSE FATE 303515 and https://bugzilla.suse.com/show_bug.cgi?id=936309
 %patch101 -b additional_policies.orig
 # Patch103 cups-1.4-do_not_strip_recommended_from_PPDs.patch
 # reverts the change which was added by Michael Sweet in Jan 2007
@@ -307,8 +309,16 @@
 %patch103 -b do_not_strip_recommended_from_PPDs.orig
 # Patch104 cups-config-libs.patch fixes option --libs in cups-config script:
 %patch104 -b cups-config-libs.orig
-# Patch106 Fixes web UI Kerberos authentication (bsc#1175960)
-%patch106 -p1
+# Patch107 harden_cups.service.patch adds hardening to systemd service 
cups.service
+# see https://bugzilla.suse.com/show_bug.cgi?id=1181400
+# and 
https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+# where the default hardening settings are enhanced by adding
+# ReadWritePaths=/etc/cups because cupsd needs write access in /etc/cups
+# see https://bugzilla.suse.com/show_bug.cgi?id=1195288
+%patch107 -p1 -b harden_cups.service.orig
+# Patch108 downgrade-autoconf-requirement.patch
+# downgrades the autoconf requirement to the autoconf available in Tumbleweed 
as of this writing:
+%patch108 -p1 -b downgrade-autoconf-requirement.orig
 
 %build
 # Remove ".SILENT" rule for verbose build output
@@ -327,7 +337,7 @@
 # default with-docdir path whereto the web content is installed
 # from /usr/share/doc/cups to /usr/share/cups/webcontent because the
 # files of the CUPS web content are no documentation, see CUPS STR #3578
-# and http://bugzilla.novell.com/show_bug.cgi?id=546023#c6 and subsequent 
comments
+# and https://bugzilla.suse.com/show_bug.cgi?id=546023#c6 and subsequent 
comments
 # so that the new default could be used as is but upstream may accept
 # cups-2.1.0-default-webcontent-path.patch in general but change its default
 # so that with-docdir is explicitly set here to be future proof.
@@ -377,6 +387,14 @@
 # Make the libraries accessible also via generic named links:
 ln -sf libcupsimage.so.2 %{buildroot}%{_libdir}/libcupsimage.so
 ln -sf libcups.so.2 %{buildroot}%{_libdir}/libcups.so
+# Move /usr/lib/pkgconfig/cups.pc to _libdir if it is not there
+# to avoid a conflict that cups-devel and cups-devel-32bit
+# would both contain /usr/lib/pkgconfig/cups.pc because
+# when cups.pc is arch dependent it has to be in _libdir
+# which it is because it contains 'libdir=/usr/lib64' on x86_64
+# (if it was arch independent it would have to be in _datadir)
+# cf. https://build.opensuse.org/request/show/965680
+test -d %{buildroot}%{_libdir}/pkgconfig || mv %{buildroot}/usr/lib/pkgconfig 
%{buildroot}%{_libdir}/pkgconfig
 # Add missing usual directories:
 install -d -m755 %{buildroot}%{_datadir}/cups/drivers
 install -d -m755 %{buildroot}%{_localstatedir}/cache/cups
@@ -398,7 +416,7 @@
 rm -f %{buildroot}%{_datadir}/applications/cups.desktop
 rm -rf %{buildroot}%{_datadir}/icons
 # Save /etc/cups/cupsd.conf and /etc/cups/cupsd.conf.default from becoming 
hardlinked
-# via the fdupes run below, see 
https://bugzilla.novell.com/show_bug.cgi?id=773971
+# via the fdupes run below, see 
https://bugzilla.suse.com/show_bug.cgi?id=773971
 # by making their content different and at the same time fix the misleading 
comment.
 # Intentionally let the build fail if 'grep' does not find what 'sed' should 
change
 # because if upstream changed it 'sed' would silently no longer change the 
files:
@@ -427,22 +445,38 @@
 # Never run fdupes carelessly over the whole buildroot directory
 # because in older openSUSE and SLE11 versions fdupes
 # links files with different owner, group, or permissions
-# see https://bugzilla.novell.com/show_bug.cgi?id=784670
+# see https://bugzilla.suse.com/show_bug.cgi?id=784670
 # and even in current openSUSE versions fdupes links across sub-package
-# boundaries, compare https://bugzilla.novell.com/show_bug.cgi?id=784869
+# boundaries, compare https://bugzilla.suse.com/show_bug.cgi?id=784869
 %fdupes -s %{buildroot}/%{_datadir}/cups/templates
 
 %check
 %if %{with testsuite}
-# There appears to be some kind of race condition when running make check and 
make test
+# There appears to be some kind of race condition when running 'make test'
 # cf. https://github.com/OpenPrinting/cups/issues/155
-# We print all logs for debugging purposes if either testsuite fails
-echo "DEBUG: running make check"
-bash -c 'make %{?_smp_mflags} check; EXIT=$?; if [ $EXIT -ne 0 ]; then cat 
test/*_log*-$(whoami); fi; exit $EXIT'
-echo "DEBUG: running make test"
-bash -c 'make %{?_smp_mflags} test; EXIT=$?; if [ $EXIT -ne 0 ]; then cat 
test/*_log*-$(whoami); fi; exit $EXIT'
+# so we do not call 'make %{?_smp_mflags} test' but plain 'make test'
+# cf. https://github.com/OpenPrinting/cups/issues/155#issuecomment-802886811
+# We print the log files for debugging purposes if the testsuite fails.
+# The log files in the test directory are named like
+# access_log-2022-03-04-abuild
+# debug_log-2022-03-04-abuild
+# error_log-2022-03-04-abuild
+# page_log-2022-03-04-abuild
+# We do not error out because https://github.com/OpenPrinting/cups/issues/155
+# is not yet actually fixed so currently the testsuite still sometimes fails:
+echo "TEST: running 'make test'"
+if make test
+then echo "TEST: succeeded"
+else echo "TEST: 'make test' FAILED"
+     for logfile in test/*_log-*-$(whoami)
+     do echo "TEST: printing log file $logfile:"
+        cat $logfile
+        echo "TEST: end of log file $logfile"
+     done
+     echo "TEST: end of printing log files"
+fi
 %else
-echo "DEBUG: skipped running make check and make test, cf. 
https://github.com/OpenPrinting/cups/issues/155";
+echo "TEST: skipped 'make test', cf. 
https://github.com/OpenPrinting/cups/issues/155";
 %endif
 
 %pre -p /bin/bash
@@ -527,7 +561,7 @@
 # This avoids that CUPS' configure magic might silently
 # not build and install an executable when whatever condition
 # for configure's automated tests is not fulfilled in the build system.
-# See https://bugzilla.novell.com/show_bug.cgi?id=526847#c9
+# See https://bugzilla.suse.com/show_bug.cgi?id=526847#c9
 # Regarding specific owner group and permission settings for directories
 # see https://bugzilla.suse.com/show_bug.cgi?id=1184161
 # When cupsd creates directories with specific owner group and permissions
@@ -682,6 +716,7 @@
 %{_includedir}/cups/
 %{_libdir}/libcups.so
 %{_libdir}/libcupsimage.so
+%{_libdir}/pkgconfig/cups.pc
 
 %files ddk
 %defattr(-,root,root)




++++++ cups-2.1.0-default-webcontent-path.patch ++++++
--- /var/tmp/diff_new_pack.YRQuE6/_old  2022-04-13 21:04:45.196555036 +0200
+++ /var/tmp/diff_new_pack.YRQuE6/_new  2022-04-13 21:04:45.208555046 +0200
@@ -1,18 +1,22 @@
---- config-scripts/cups-directories.m4.orig    2014-03-21 17:42:53.000000000 
+0100
-+++ config-scripts/cups-directories.m4 2015-09-01 11:08:43.000000000 +0200
-@@ -206,11 +206,11 @@ fi
- AC_SUBST(MENUDIR)
+--- config-scripts/cups-directories.m4
++++ config-scripts/cups-directories.m4.orig
+@@ -166,15 +166,15 @@ AS_IF([test "x$menudir" = x], [
+ AC_SUBST([MENUDIR])
  
  # Documentation files
--AC_ARG_WITH(docdir, [  --with-docdir           set path for 
documentation],docdir="$withval",docdir="")
-+AC_ARG_WITH(docdir, [  --with-docdir           set path and DocumentRoot 
directive for web content, 
default=datadir/cups/webcontent],docdir="$withval",docdir="")
+-AC_ARG_WITH([docdir], AS_HELP_STRING([--with-docdir], [set path for 
documentation]), [
++AC_ARG_WITH([docdir], AS_HELP_STRING([--with-docdir], [set path and 
DocumentRoot directive for web content, default=datadir/cups/webcontent]), [
+     docdir="$withval"
+ ], [
+     docdir=""
+ ])
  
- if test x$docdir = x; then
--      CUPS_DOCROOT="$datadir/doc/cups"
--      docdir="$datadir/doc/cups"
-+      CUPS_DOCROOT="$datadir/cups/webcontent"
-+      docdir="$datadir/cups/webcontent"
- else
-       CUPS_DOCROOT="$docdir"
- fi
+ AS_IF([test x$docdir = x], [
+-    CUPS_DOCROOT="$datadir/doc/cups"
+-    docdir="$datadir/doc/cups"
++    CUPS_DOCROOT="$datadir/cups/webcontent"
++    docdir="$datadir/cups/webcontent"
+ ], [
+     CUPS_DOCROOT="$docdir"
+ ])
 

++++++ cups-2.3.3op2-source.tar.gz -> cups-2.4.1-source.tar.gz ++++++
/work/SRC/openSUSE:Factory/cups/cups-2.3.3op2-source.tar.gz 
/work/SRC/openSUSE:Factory/.cups.new.1900/cups-2.4.1-source.tar.gz differ: char 
4, line 1

++++++ cups-config-libs.patch ++++++
--- /var/tmp/diff_new_pack.YRQuE6/_old  2022-04-13 21:04:45.276555100 +0200
+++ /var/tmp/diff_new_pack.YRQuE6/_new  2022-04-13 21:04:45.280555104 +0200
@@ -4,7 +4,7 @@
  # flags for compiler and linker...
  CFLAGS=""
  LDFLAGS="@EXPORT_LDFLAGS@"
--LIBS="@LIBGSSAPI@ @DNSSDLIBS@ @EXPORT_SSLLIBS@ @LIBZ@ @LIBS@"
+-LIBS="@LIBGSSAPI@ @DNSSDLIBS@ @EXPORT_TLSLIBS@ @LIBZ@ @LIBS@"
 +LIBS=""
  
  # Check for local invocation...

++++++ cups.keyring ++++++
--- /var/tmp/diff_new_pack.YRQuE6/_old  2022-04-13 21:04:45.312555129 +0200
+++ /var/tmp/diff_new_pack.YRQuE6/_new  2022-04-13 21:04:45.320555136 +0200
@@ -1,54 +1,15 @@
 -----BEGIN PGP PUBLIC KEY BLOCK-----
-Comment: GPGTools - https://gpgtools.org
 
-mQINBFplA9UBEACjPmClfkcn4YO05KHTyClVseJYVzGGHl+HLZGFPoadk2UKh3DD
-UAoNruBMQS4xFd1MNFZfduCntLIoLEzwwHAWMhEB5O9FZZZrlwN2my4xlWdaX/Bg
-FGhVsqGGp5C4n81996f1EmWJS+nTXHPQx0LJ5ahai6wuXJUhJwGHRVsJeVMYg9XZ
-eJgz73scH4ISFAIRTfH2PqkBqKL51quUN6E/poSA1iggsPa0tg6klb+kUGvvMjGO
-JUGg0L0lSwmJWbfbA6usD0ERSXA5h+TeSKTwuxTVYNTUpnVhSwfv5+wYHsoaeAiN
-qbqbHw6TpJS5NvyClQLXE45Y1u/COlUvWA7/ThmRfP8LDgNXHQgdgOVv8eh/3Wos
-zLfbw+wWFvaRCDZdzWBmUfJrS6K7dsABr6AQf5khqvazRv/Ma8ovNSd1WUUKTAm2
-O1/eOydFLJpNaiyYc+ETbjdD//hKtiSCf6sxER5uE0cKiWhMQeFGgesgzRYjSKCg
-Pk4Elux8q61uWqqPNjngFgRYRDuD/4jvTdD4mQqp+ASUYl1eXliKVH9tYJB4tcQ8
-n7+szE+Czh7iSKvCCTV2VHfYASHYT79efDhtrmbB/Q2Vkoyuxl78PHKM0m/6hZze
-+G1Cp4R3Ood/pOKlDrQdAWWlwOErZEu4pMSHoLJeuXfdFW7bAmEyKkoFZQARAQAB
-tCtNaWNoYWVsIFIgU3dlZXQgPG1pY2hhZWwuci5zd2VldEBnbWFpbC5jb20+iQJU
-BBMBCgA+FiEEhFRkZgtoaqs2VAtvmZVZoCeBWVUFAlplA9UCGwMFCQeGH4AFCwkI
-BwM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bpuSplcTPUot+fNJb
-uwg7uetsyqagUI6HSYwbPbmU2ELor+P2LP81Yexwkf/DE215mrIITXnr+dqL5+NG
-nNLcOZRqTFo/oxx+IaRhSJ6adg==
-=YD80
+mDMEYfKEjRYJKwYBBAHaRw8BAQdAJggn9NALyWqrgrFGPJ9RvPb7wYbskxKRKQcL
+v+8Hpbq0QVpkZW5layBEb2huYWwgKFRoZSBvbGQgNEQ0MjI3RDcga2V5IHJldm9r
+ZWQpIDx6ZG9obmFsQHJlZGhhdC5jb20+iJQEExYKADwWIQRwgqClCi6SZA84gODk
+Ui3MmyRv9wUCYfKEjQIbAwULCQgHAgMiAgEGFQoJCAsCBBYCAwECHgcCF4AACgkQ
+5FItzJskb/fbUQEAm6R78JoZSIOpu68gtUUp1qbfDdsfoQkbdyfws/myB6gA/A6/
+9QiIk50DNCmBTisZk5CFP51YNvwnyxafmE3cDn8GuDgEYfKEjRIKKwYBBAGXVQEF
+AQEHQF6Qgj5UQqUdvqvnDqygQ6Vm59nRGHbPVDTwendtM5cCAwEIB4h4BBgWCgAg
+FiEEcIKgpQoukmQPOIDg5FItzJskb/cFAmHyhI0CGwwACgkQ5FItzJskb/e2CwD/
+SyRi/I5Il5XY5VXEL/eBsnNvvtaO0T10V4/vBMiDb+sBAK3YmRl6WStfRiEvMXQv
+OhMT+sEjx6ufQXkuPeXHvrgK
+=vSEm
 -----END PGP PUBLIC KEY BLOCK-----
 

++++++ downgrade-autoconf-requirement.patch ++++++
diff --git a/configure.ac b/configure.ac
index a8c6c1040..6ace74a8d 100644
--- a/configure.ac
+++ b/configure.ac
@@ -9,8 +9,8 @@ dnl Licensed under Apache License v2.0.  See the file "LICENSE" 
for more
 dnl information.
 dnl
 
-dnl We need at least autoconf 2.71...
-AC_PREREQ([2.71])
+dnl We need at least autoconf 2.69...
+AC_PREREQ([2.69])
 
 dnl Package name and version...
 
AC_INIT([CUPS],[2.4.1],[https://github.com/openprinting/cups/issues],[cups],[https://openprinting.github.io/cups])

++++++ harden_cups.service.patch ++++++
Index: cups-2.3.3op2/scheduler/cups.service.in
===================================================================
--- cups-2.3.3op2.orig/scheduler/cups.service.in
+++ cups-2.3.3op2/scheduler/cups.service.in
@@ -5,6 +5,21 @@ After=network.target sssd.service ypbind
 Requires=cups.socket
 
 [Service]
+# added automatically, for details please see
+# https://en.opensuse.org/openSUSE:Security_Features#Systemd_hardening_effort
+ProtectSystem=full
+ProtectHome=true
+ProtectHostname=true
+ProtectKernelTunables=true
+ProtectKernelModules=true
+ProtectKernelLogs=true
+ProtectControlGroups=true
+RestrictRealtime=true
+# end of automatic additions
+# cupsd needs write access in /etc/cups see
+# https://bugzilla.opensuse.org/show_bug.cgi?id=1195288
+ReadWritePaths=/etc/cups
+# end of SUSE additions
 ExecStart=@sbindir@/cupsd -l
 Type=notify
 Restart=on-failure

Reply via email to