Hello community,
here is the log from the commit of package cups.1147 for openSUSE:12.2:Update checked in at 2012-12-18 13:38:18
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:12.2:Update/cups.1147 (Old)
and /work/SRC/openSUSE:12.2:Update/.cups.1147.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "cups.1147", Maintainer is ""
Changes:
--------
New Changes file:
--- /dev/null 2012-11-30 12:21:47.308011256 +0100
+++ /work/SRC/openSUSE:12.2:Update/.cups.1147.new/cups.changes 2012-12-18 13:38:20.000000000 +0100
@@ -0,0 +1,2813 @@
+-------------------------------------------------------------------
+Wed Nov 28 21:54:57 UTC 2012 - stefan.bruens@rwth-aachen.de
+
+- newer poppler pdftops supports and needs '-origpagesizes' when called
+ from cups filter. The configure check requires poppler-tools
+ Fixes bnc#776080 (nonworking duplex printing)
+
+-------------------------------------------------------------------
+Wed May 16 14:32:36 CEST 2012 - jsmeix@suse.de
+
+- Upgraded to CUPS 1.5.3 (mainly a bugfix release) that fixes
+ a number of PostScript, SSL, authenticated printing,
+ and networking issues.
+ Excerpt:
+ * The scheduler could crash if a PPD file contained
+ an invalid paper size (STR #4049).
+ * Missing localizations caused empty output (STR #4033).
+ * Changed how timeouts are implemented in the LPD backend
+ (STR #4013).
+ * The default InputSlot setting was never used (STR #3957).
+ * Fixed the IPP backend's handling of HTTP/1.0 compatibility
+ (STR #3988).
+ For a complete list see the CHANGES.txt file.
+- revert_cups-ssl.m4_to_1.5.2.patch reverts cups-ssl.m4 to what
+ it was in CUPS 1.5.2 so that autoconf produces a syntactically
+ correct configure script otherwise "bash -n configure" fails
+ with "syntax error: unexpected end of file",
+ see http://www.cups.org/str.php?L4084
+
+-------------------------------------------------------------------
+Thu Apr 12 10:53:55 CEST 2012 - jsmeix@suse.de
+
+- No longer require Ghostscript but only "Recommends: ghostscript"
+ because the Ghostscript device "cups" is needed by several CUPS
+ filters (in particular the "rasterto..." filters) but those
+ filters are not used on all systems (e.g. on a print server
+ with only "raw" queues) so that a weak Recommends fits better.
+ Furthermore this avoids a build dependency cycle between the
+ main-packages cups and ghostscript.
+- No longer require /usr/bin/pdftops but only a "Recommends"
+ because the CUPS filter /usr/lib/cups/filter/pdftops
+ (which calls /usr/bin/pdftops) is not used on all systems
+ (e.g. on a print server with only "raw" queues) so that
+ a weak Recommends fits better.
+
+-------------------------------------------------------------------
+Tue Apr 10 16:25:24 CEST 2012 - jsmeix@suse.de
+
+- In cups.spec only "Requires: ghostscript" but no longer require
+ ghostscript-fonts-std in cups.spec because in ghostscript.spec
+ there is already "Requires: ghostscript-fonts-std"
+ (related to openSUSE Bugzilla bnc#735824).
+- In cups.spec remove the Obsoletes/Provides cups-SUSE-ppds-dat
+ because cups-SUSE-ppds-dat.rpm existed only up to SLE10
+ but it does no longer exist since 11.1/SLE11
+ and CUPS 1.5.x is not provided for SLE10.
+- Use traditional bash scriptlets for post/postun with
+ an explicite "exit 0" line at the end to be fail safe and
+ therefore also "PreReq: /sbin/ldconfig" explicitly for the
+ cups-libs sub-package, see the "Shared_libraries" section in
+ http://en.opensuse.org/openSUSE:Packaging_scriptlet_snippets
+
+-------------------------------------------------------------------
+Tue Feb 7 14:42:59 CET 2012 - jsmeix@suse.de
+
+- Upgraded to CUPS 1.5.2 (mainly a bugfix release). This release
+ fixes a number of printing, encryption, and ipptool issues.
+ Excerpt:
+ * The scheduler incorrectly used free() on a POSIX ACL value,
+ which could cause a crash (STR #3970).
+ * Encryption was broken with OpenSSL (probably STR #3933
+ and bnc#739410 ).
+ * Badly formed GIF files could cause the image filters
+ to crash (STR #3914).
+ For a complete list see the CHANGES.txt file.
+
+-------------------------------------------------------------------
+Tue Jan 10 04:58:44 UTC 2012 - crrodriguez@opensuse.org
+
+- Use explicit buildrequires on the needed libraries.
+ otherwise build will fail after libtiff-devel deps cleanup
+- Cleanup requires of -devel package, which only needs glibc-devel
+- Fix up, cups-config script, which with option --libs adds:
+ LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err -lssl -lcrypto
+ -lz -lpthread -lm -lcrypt "
+ IMGLIBS="-ltiff -ljpeg -lpng"
+ This only makes sense when using static linking but we don't ship
+ static libraries and will only help bloating dependant packages.
+
+-------------------------------------------------------------------
+Sat Dec 17 18:19:14 UTC 2011 - crrodriguez@opensuse.org
+
+- Update systemd patch, Bind to datagram socket as well in
+ systemd cups.socket unit file, to prevent that port being
+ stolen by another service (from RH).
+- There is no need to use -fno-strict-aliasing
+ in cflags any longer.
+
+-------------------------------------------------------------------
+Sat Dec 3 20:09:32 UTC 2011 - crrodriguez@opensuse.org
+
+- Update systemd patch to a newer version that uses
+ libsystemd-daemon instead of bundling sd-daemon wrappers.
+
+-------------------------------------------------------------------
+Sat Dec 3 19:11:36 UTC 2011 - crrodriguez@opensuse.org
+
+- Add complete systemd support, the hardware stuff is handled in
+ builtin udev rules (see /lib/udev/rules.d/99-systemd.rules).
+ See also http://0pointer.de/blog/projects/socket-activation2.html
+
+-------------------------------------------------------------------
+Thu Oct 6 11:00:09 CEST 2011 - jsmeix@suse.de
+
+- Upgraded to CUPS 1.5.0 (openSUSE Bugzilla bnc#722057)
+ Backward incompatible changes:
+ * The main header cups/cups.h no longer includes the PPD header
+ cups/ppd.h which may require code changes to applications.
+ * CUPS no longer supports the old ~/.cupsrc or ~/.lpoptions files
+ from CUPS 1.1.x. The ~/.cups/client.conf and ~/.cups/lpoptions
+ files that were introduced in CUPS 1.2 must now be used.
+ * The scheduler now requires that filters and backends
+ have group write permissions disabled (security).
+ * The HP-GL/2 filter is no longer included (STR #3322).
+ * The SCSI backend is no longer included (STR #3500).
+ Other changes:
+ * Updated the PostScript filter to support IncludeFeature
+ in more circumstances (STR #3417).
+ * The scheduler now sets the process group for child processes
+ and manages the group (STR #2829).
+ * The scheduler now more carefully creates and removes
+ configuration, cache, and state files (STR #3715).
+ * The lpadmin command now allows default option values
+ to be deleted (STR #2959).
+ * Restored support for GNU TLS and OpenSSL with threading
+ enabled (STR #3605, STR #3461).
+ Therefore cups-1.4.4-str3461-1.4.reverted.patch
+ is no longer needed (openSUSE Bugzilla bnc#617026).
+ * Increased the default RIPCache value to 128MB (STR #3535).
+ Therefore cups-1.4.4-set_default_RIPCache_128m.patch
+ is no longer needed (openSUSE Bugzilla bnc#628233).
+ * Updated PDF filter to support Ghostscript ps2write (STR #3766).
+ * Updated PDF filter to support Poppler option to preserve page
+ sizes in PDF files when the user has not selected a particular
+ media size (STR #3689).
+ * Added new PWG Raster filter for IPP Everywhere printer support.
+ * Added support for a new cupsFilter2 keyword in PPD files
+ to allow for the propagation of the actual MIME media type
+ produced by a filter.
+ * Name resolution errors no longer no longer cause
+ queues to stop (STR #3719, STR #3753). See also
+ https://bugzilla.novell.com/show_bug.cgi?id=337794#c16
+ * Added a new cups-exec helper program that applies security
+ profiles to filters, port monitors, backends, CGI programs,
+ and mini-daemons.
+ * The web interface can now be disabled using the WebInterface
+ directive in cupsd.conf (STR #2625).
+ * The ipptest tool is now a first-class user program (STR #3484).
+ For a complete list see the CHANGES.txt file.
+- cups-1.4.4-str3461-1.4.reverted.patch (bnc#617026) and
+ cups-1.4.4-set_default_RIPCache_128m.patch (bnc#628233)
+ are no longer needed because the issues are fixed upstream.
+ cups-1.5-additional_policies.patch (fate#303515) replaces the
+ cups-1.4-additional_policies.patch which does no longer apply.
+
+-------------------------------------------------------------------
+Fri Sep 30 20:07:52 UTC 2011 - coolo@suse.com
+
+- add libtool as buildrequire to make the spec file more reliable
+
+-------------------------------------------------------------------
+Thu Sep 29 15:10:07 CEST 2011 - jsmeix@suse.de
+
+- Reverted the change from meissner below dated
+ "Fri Sep 23 09:54:39 CEST 2011" so that baselibs.conf again
+ contains only one line "cups-libs" as before because the
+ submitrequest 85423 Printing/cups -> openSUSE:Factory/cups
+ was declined by coolo with the following reason:
+ "cups-devel-32bit requires cups-32bit (default requires),
+ which does not exist".
+
+-------------------------------------------------------------------
+Thu Sep 29 11:51:21 CEST 2011 - jsmeix@suse.de
+
+- Upgraded to CUPS 1.4.8
+ * network backends could crash if a printer returned a value
+ of 0 for the maximum capacity for a supply (STR #3875)
+ * For a complete list see the CHANGES.txt file.
+- Upgraded to CUPS 1.4.7
+ * imageto* filters could crash with bad GIF files (STR #3867)
+ * CUPS did not work with some printers that incorrectly
+ implemented the HTTP/1.1 standard (STR #3778, STR #3791)
+ * Fixed crash in scheduler when the application/octet-stream
+ MIME type was not defined (STR #3690)
+ * The web interface no longer tries to use multi-part delivery
+ when adding printers (STR #3455) using Epiphany or IE
+ * "lp" and "lpr" failed with Kerberos enabled (STR #3768)
++++ 2616 more lines (skipped)
++++ between /dev/null
++++ and /work/SRC/openSUSE:12.2:Update/.cups.1147.new/cups.changes
New:
----
PSLEVEL1.PPD.bz2
PSLEVEL2.PPD.bz2
baselibs.conf
cups-0001-systemd-add-systemd-socket-activation-and-unit-files.patch
cups-1.2rc1-template.patch
cups-1.3.6-access_conf.patch
cups-1.3.9-desktop_file.patch
cups-1.4-do_not_strip_recommended_from_PPDs.patch
cups-1.4.3-default-webcontent-path.patch
cups-1.5-additional_policies.patch
cups-1.5.3-source.tar.bz2
cups-client.conf
cups-config-libs.patch
cups-pam.diff
cups.changes
cups.init
cups.spec
cups.sysconfig
cups.xinetd
postscript.ppd.bz2
revert_cups-ssl.m4_to_1.5.2.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ cups.spec ++++++
++++ 653 lines (skipped)
++++++ baselibs.conf ++++++
cups-libs
++++++ cups-0001-systemd-add-systemd-socket-activation-and-unit-files.patch ++++++
--- config.h.in.orig
+++ config.h.in
@@ -496,6 +496,13 @@
/*
+ * Do we have systemd support?
+ */
+
+#undef HAVE_SYSTEMD
+
+
+/*
* Various scripting languages...
*/
--- /dev/null
+++ config-scripts/cups-systemd.m4
@@ -0,0 +1,36 @@
+dnl
+dnl "$Id$"
+dnl
+dnl systemd stuff for CUPS.
+
+dnl Find whether systemd is available
+
+SDLIBS=""
+AC_ARG_WITH([systemdsystemunitdir],
+ AS_HELP_STRING([--with-systemdsystemunitdir=DIR], [Directory for systemd service files]),
+ [], [with_systemdsystemunitdir=$($PKGCONFIG --variable=systemdsystemunitdir systemd)])
+if test "x$with_systemdsystemunitdir" != xno; then
+ AC_MSG_CHECKING(for libsystemd-daemon)
+ if $PKGCONFIG --exists libsystemd-daemon; then
+ AC_MSG_RESULT(yes)
+ SDCFLAGS=`$PKGCONFIG --cflags libsystemd-daemon`
+ SDLIBS=`$PKGCONFIG --libs libsystemd-daemon`
+ AC_SUBST([systemdsystemunitdir], [$with_systemdsystemunitdir])
+ AC_DEFINE(HAVE_SYSTEMD)
+ else
+ AC_MSG_RESULT(no)
+ fi
+fi
+
+if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
+ SYSTEMD_UNITS="cups.service cups.socket cups.path"
+else
+ SYSTEMD_UNITS=""
+fi
+
+AC_SUBST(SYSTEMD_UNITS)
+AC_SUBST(SDLIBS)
+
+dnl
+dnl "$Id$"
+dnl
--- configure.in.orig
+++ configure.in
@@ -37,6 +37,7 @@ sinclude(config-scripts/cups-pam.m4)
sinclude(config-scripts/cups-largefile.m4)
sinclude(config-scripts/cups-dnssd.m4)
sinclude(config-scripts/cups-launchd.m4)
+sinclude(config-scripts/cups-systemd.m4)
sinclude(config-scripts/cups-defaults.m4)
sinclude(config-scripts/cups-pdf.m4)
sinclude(config-scripts/cups-scripting.m4)
@@ -71,6 +72,9 @@ AC_OUTPUT(Makedefs
conf/snmp.conf
cups-config
data/testprint
+ data/cups.service
+ data/cups.socket
+ data/cups.path
desktop/cups.desktop
doc/help/ref-cupsd-conf.html
doc/help/standard.html
--- cups/usersys.c.orig
+++ cups/usersys.c
@@ -750,7 +750,7 @@ cups_read_client_conf(
struct stat sockinfo; /* Domain socket information */
if (!stat(CUPS_DEFAULT_DOMAINSOCKET, &sockinfo) &&
- (sockinfo.st_mode & S_IRWXO) == S_IRWXO)
+ (sockinfo.st_mode & (S_IROTH | S_IWOTH)) == (S_IROTH | S_IWOTH))
cups_server = CUPS_DEFAULT_DOMAINSOCKET;
else
#endif /* CUPS_DEFAULT_DOMAINSOCKET */
--- /dev/null
+++ data/cups.path.in
@@ -0,0 +1,8 @@
+[Unit]
+Description=CUPS Printer Service Spool
+
+[Path]
+PathExistsGlob=@CUPS_REQUESTS@/d*
+
+[Install]
+WantedBy=multi-user.target
--- /dev/null
+++ data/cups.service.in
@@ -0,0 +1,9 @@
+[Unit]
+Description=CUPS Printing Service
+
+[Service]
+ExecStart=@sbindir@/cupsd -f
+
+[Install]
+Also=cups.socket cups.path
+WantedBy=printer.target
--- /dev/null
+++ data/cups.socket.in
@@ -0,0 +1,11 @@
+[Unit]
+Description=CUPS Printing Service Sockets
+
+[Socket]
+ListenStream=@CUPS_DEFAULT_DOMAINSOCKET@
+ListenStream=631
+ListenDatagram=0.0.0.0:631
+BindIPv6Only=ipv6-only
+
+[Install]
+WantedBy=sockets.target
--- data/Makefile.orig
+++ data/Makefile
@@ -112,6 +112,12 @@ install-data:
$(INSTALL_DATA) $$file $(DATADIR)/ppdc; \
done
$(INSTALL_DIR) -m 755 $(DATADIR)/profiles
+ if test "x$(SYSTEMD_UNITS)" != "x" ; then \
+ $(INSTALL_DIR) -m 755 $(SYSTEMDUNITDIR); \
+ for file in $(SYSTEMD_UNITS); do \
+ $(INSTALL_DATA) $$file $(SYSTEMDUNITDIR); \
+ done; \
+ fi
#
@@ -159,6 +165,9 @@ uninstall:
-$(RMDIR) $(DATADIR)/charsets
-$(RMDIR) $(DATADIR)/banners
-$(RMDIR) $(DATADIR)
+ for file in $(SYSTEMD_UNITS); do \
+ $(RM) $(SYSTEMDUNITDIR)/$$file; \
+ done
#
--- Makedefs.in.orig
+++ Makedefs.in
@@ -143,6 +143,7 @@ CXXFLAGS = @CPPFLAGS@ @CXXFLAGS@
CXXLIBS = @CXXLIBS@
DBUS_NOTIFIER = @DBUS_NOTIFIER@
DBUS_NOTIFIERLIBS = @DBUS_NOTIFIERLIBS@
+SYSTEMD_UNITS = @SYSTEMD_UNITS@
DNSSD_BACKEND = @DNSSD_BACKEND@
DSOFLAGS = -L../cups @DSOFLAGS@
DSOLIBS = @DSOLIBS@ $(COMMONLIBS)
@@ -151,6 +152,7 @@ FONTS = @FONTS@
IMGLIBS = @IMGLIBS@
IMGFILTERS = @IMGFILTERS@
LAUNCHDLIBS = @LAUNCHDLIBS@
+SDLIBS = @SDLIBS@
LDFLAGS = -L../cgi-bin -L../cups -L../filter -L../ppdc \
-L../scheduler @LDARCHFLAGS@ \
@LDFLAGS@ @RELROFLAGS@ @PIEFLAGS@ $(OPTIM)
@@ -267,6 +269,7 @@ PAMFILE = @PAMFILE@
DEFAULT_LAUNCHD_CONF = @DEFAULT_LAUNCHD_CONF@
DBUSDIR = @DBUSDIR@
+SYSTEMDUNITDIR = $(BUILDROOT)@systemdsystemunitdir@
#
--- scheduler/client.h.orig
+++ scheduler/client.h
@@ -75,6 +75,9 @@ typedef struct
int fd; /* File descriptor for this server */
http_addr_t address; /* Bind address of socket */
http_encryption_t encryption; /* To encrypt or not to encrypt... */
+#ifdef HAVE_SYSTEMD
+ int is_systemd; /* Is this a systemd socket? */
+#endif /* HAVE_SYSTEMD */
} cupsd_listener_t;
--- scheduler/dirsvc.c.orig
+++ scheduler/dirsvc.c
@@ -1457,7 +1457,7 @@ cupsdStartBrowsing(void)
}
}
- if (BrowseSocket >= 0)
+ if (BrowseSocket >= 0 && !BrowseSocketIsSystemd)
{
/*
* Bind the socket to browse port...
@@ -1501,13 +1501,17 @@ cupsdStartBrowsing(void)
cupsdLogMessage(CUPSD_LOG_ERROR, "Unable to set broadcast mode - %s.",
strerror(errno));
+ if (!BrowseSocketIsSystemd)
+ {
#ifdef WIN32
- closesocket(BrowseSocket);
+ closesocket(BrowseSocket);
#else
- close(BrowseSocket);
+ close(BrowseSocket);
#endif /* WIN32 */
- BrowseSocket = -1;
+ BrowseSocket = -1;
+ }
+
BrowseLocalProtocols &= ~BROWSE_CUPS;
BrowseRemoteProtocols &= ~BROWSE_CUPS;
@@ -1820,15 +1824,22 @@ cupsdStopBrowsing(void)
if (((BrowseLocalProtocols | BrowseRemoteProtocols) & BROWSE_CUPS) &&
BrowseSocket >= 0)
{
- /*
- * Close the socket and remove it from the input selection set.
- */
+ if (!BrowseSocketIsSystemd)
+ {
+ /*
+ * Close the socket.
+ */
#ifdef WIN32
- closesocket(BrowseSocket);
+ closesocket(BrowseSocket);
#else
- close(BrowseSocket);
+ close(BrowseSocket);
#endif /* WIN32 */
+ }
+
+ /*
+ * Remove it from the input selection set.
+ */
cupsdRemoveSelect(BrowseSocket);
BrowseSocket = -1;
@@ -5146,11 +5157,14 @@ update_cups_browse(void)
strerror(errno));
cupsdLogMessage(CUPSD_LOG_ERROR, "CUPS browsing turned off.");
+ if (!BrowseSocketIsSystemd)
+ {
#ifdef WIN32
- closesocket(BrowseSocket);
+ closesocket(BrowseSocket);
#else
- close(BrowseSocket);
+ close(BrowseSocket);
#endif /* WIN32 */
+ }
cupsdRemoveSelect(BrowseSocket);
BrowseSocket = -1;
--- scheduler/dirsvc.h.orig
+++ scheduler/dirsvc.h
@@ -96,6 +96,8 @@ VAR int Browsing VALUE(TRUE),
/* Short names for remote printers? */
BrowseSocket VALUE(-1),
/* Socket for browsing */
+ BrowseSocketIsSystemd VALUE(0),
+ /* BrowseSocket is systemd-provided? */
BrowsePort VALUE(IPP_PORT),
/* Port number for broadcasts */
BrowseInterval VALUE(DEFAULT_INTERVAL),
--- scheduler/listen.c.orig
+++ scheduler/listen.c
@@ -401,7 +401,11 @@ cupsdStopListening(void)
lis;
lis = (cupsd_listener_t *)cupsArrayNext(Listeners))
{
- if (lis->fd != -1)
+ if (lis->fd != -1
+#ifdef HAVE_SYSTEMD
+ && !lis->is_systemd
+#endif /* HAVE_SYSTEMD */
+ )
{
#ifdef WIN32
closesocket(lis->fd);
--- scheduler/main.c.orig
+++ scheduler/main.c
@@ -26,6 +26,8 @@
* launchd_checkin() - Check-in with launchd and collect the listening
* fds.
* launchd_checkout() - Update the launchd KeepAlive file as needed.
+ * systemd_checkin() - Check-in with systemd and collect the
+ * listening fds.
* parent_handler() - Catch USR1/CHLD signals...
* process_children() - Process all dead children...
* select_timeout() - Calculate the select timeout value.
@@ -62,6 +64,10 @@
# endif /* !LAUNCH_JOBKEY_SERVICEIPC */
#endif /* HAVE_LAUNCH_H */
+#ifdef HAVE_SYSTEMD
+#include