Hello community, here is the log from the commit of package cups-backends for openSUSE:Factory checked in at Fri May 29 00:51:41 CEST 2009. -------- --- cups-backends/cups-backends.changes 2007-07-30 20:33:00.000000000 +0200 +++ cups-backends/cups-backends.changes 2009-05-28 13:07:08.000000000 +0200 @@ -1,0 +2,12 @@ +Thu May 28 12:58:50 CEST 2009 - jsmeix@suse.de + +- Removed the beh backend because it is now provided + in the upgraded foomatic-filters version 4.0.1 package. +- Replaced the pipe backend source cups-pipe.pl perl script + with a new source cups-pipe.sh bash script which works + in much better compliance to CUPS and which also fixes + a bug that it did not get signals from the cupsd + so that it did not terminate pipe when removing jobs + (see Novell/Suse Bugzilla bnc#499735). + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- beh cups-pipe.pl README-beh.html New: ---- cups-pipe.sh ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ cups-backends.spec ++++++ --- /var/tmp/diff_new_pack.Z20105/_old 2009-05-29 00:50:08.000000000 +0200 +++ /var/tmp/diff_new_pack.Z20105/_new 2009-05-29 00:50:08.000000000 +0200 @@ -1,28 +1,34 @@ # # spec file for package cups-backends (Version 1.0) # -# Copyright (c) 2007 SUSE LINUX Products GmbH, Nuernberg, Germany. -# This file and all modifications and additions to the pristine -# package are under the same license as the package itself. +# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany. # +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + # Please submit bugfixes or comments via http://bugs.opensuse.org/ # # norootforbuild + Name: cups-backends BuildRequires: cups-devel hal-devel Summary: Various Free Backends for the cups Package License: GPL v2 or later Group: Hardware/Printing Version: 1.0 -Release: 103 +Release: 253 Source0: http://www.srz.de/Members/bla/cups/backend/hpnpf/hpnpf.tgz Source1: http://www.srz.de/Members/bla/cups/backend/hpnpf/hpnpf.txt -Source2: cups-pipe.pl +Source2: cups-pipe.sh Source4: hal.c -Source5: http://www.linuxprinting.org/download/printing/beh -Source6: README-beh.html Patch0: hpnpf.patch Patch1: cups-backends-silenct-hal.patch Requires: cups-libs, dbus-1, hal @@ -37,6 +43,8 @@ -------- Jiri Srain <jsrain@suse.cz> Jeffrey Stedfast <fejj@novell.com> + Klaus Singvogel <kssingvo@suse.de> + Johannes Meixner <jsmeix@suse.de> %prep %setup -c -T @@ -45,8 +53,6 @@ tar xzvvf %{SOURCE0} cd .. cp -a %{SOURCE4} . -cp -a %{SOURCE5} beh -cp -a %{SOURCE6} . %patch1 -p0 %build @@ -56,35 +62,42 @@ %install mkdir -p $RPM_BUILD_ROOT/%{_libdir}/cups/backend -install -m 755 -D ${RPM_SOURCE_DIR}/cups-pipe.pl $RPM_BUILD_ROOT%{_libdir}/cups/backend/pipe +install -m 755 -D ${RPM_SOURCE_DIR}/cups-pipe.sh $RPM_BUILD_ROOT%{_libdir}/cups/backend/pipe install -m 755 -D hal $RPM_BUILD_ROOT%{_libdir}/cups/backend/hal -install -m 755 -D beh $RPM_BUILD_ROOT%{_libdir}/cups/backend/beh %files %defattr(-, root,root) %dir %{_libdir}/cups %dir %{_libdir}/cups/backend %{_libdir}/cups/backend/* -%doc README-beh.html %changelog -* Mon Jul 30 2007 - crivera@suse.de +* Thu May 28 2009 jsmeix@suse.de +- Removed the beh backend because it is now provided + in the upgraded foomatic-filters version 4.0.1 package. +- Replaced the pipe backend source cups-pipe.pl perl script + with a new source cups-pipe.sh bash script which works + in much better compliance to CUPS and which also fixes + a bug that it did not get signals from the cupsd + so that it did not terminate pipe when removing jobs + (see Novell/Suse Bugzilla bnc#499735). +* Mon Jul 30 2007 crivera@suse.de - Silence the hal backend. This will allow current printers that use the hal backend to work, but it will not report new printers. This is the first step toward removing the backend completely. -* Wed Mar 22 2006 - lmuelle@suse.de +* Wed Mar 22 2006 lmuelle@suse.de - Update beh backend to the current version. - Add beh documentation derivated from http://www.linuxprinting.org/beh.html. - Move ncp backend to the ncpfs package. -* Wed Jan 25 2006 - mls@suse.de +* Wed Jan 25 2006 mls@suse.de - converted neededforbuild to BuildRequires -* Thu Jan 12 2006 - kssingvo@suse.de +* Thu Jan 12 2006 kssingvo@suse.de - added backend error handler (beh) (bugzilla#132002) -* Tue Oct 04 2005 - jsrain@suse.cz +* Tue Oct 04 2005 jsrain@suse.cz - fixed the error handling in the pipe backend (#93480) -* Mon Sep 19 2005 - lmuelle@suse.de +* Mon Sep 19 2005 lmuelle@suse.de - Don't redirect stdout to stderr in the pipe backend. - Install the right files, [#117887]. -* Tue Jul 26 2005 - kssingvo@suse.de +* Tue Jul 26 2005 kssingvo@suse.de - initial version ++++++ cups-pipe.sh ++++++ #! /bin/bash # CUPS wrapper backend "pipe" for printing to any program. # It forwards the print job data like a pipe into another command. # Author: Johannes Meixner <jsmeix@suse.de>, 2009 # For basic information see "man 7 backend" and "man 7 filter". # Activate the "set -x" line to get debugging info in /var/log/cups/error_log: #set -x # Output "Device Discovery" information on stdout: if test "$#" = "0" then echo 'direct pipe "Unknown" "Forward print job data like a pipe to another command"' exit 0 fi # Output usage information in case of wrong number of parameters: if test "$#" != "5" -a "$#" != "6" then echo 'Usage: pipe job-id user title copies options [file]' 1>&2 echo 'Queue setup example:' 1>&2 echo 'lpadmin -p queue_name -v "pipe:/path/to/command?option1=value1&-option2&value2" -E' 1>&2 echo 'The command is called with the specified options as:' 1>&2 echo '/path/to/command option1=value1 -option2 value2' 1>&2 echo 'The original command line parameters (... job-id user ...)' 1>&2 echo 'are provided as environment variables PIPE_BACKEND_ARGV[0-6]' 1>&2 exit 1 fi # Keep the original command line parameters (... job-id user ...) # in environment variables to make them available for the command: export PIPE_BACKEND_ARGV0="$0" export PIPE_BACKEND_ARGV1="$1" export PIPE_BACKEND_ARGV2="$2" export PIPE_BACKEND_ARGV3="$3" export PIPE_BACKEND_ARGV4="$4" export PIPE_BACKEND_ARGV5="$5" export PIPE_BACKEND_ARGV6="$6" # Have the input at fd0 (stdin) in any case: if test -n "$6" then exec <"$6" fi # To be on the safe side clip anything after the first space character # because spaces are excluded characters in a URI (see RFC 2396): URI=${DEVICE_URI%% *} # Extract the command to which the job schould be sent from the URI. # Clip the URI scheme (anything up to the first ':' character) and # clip anything after the first '?' character # because anything after the first '?' character are options: COMMAND=${URI#*:} COMMAND=${COMMAND%%\?*} # Extract the options (e.g. from 'pipe:/path/to/command?option1=value1&-option2&value2' # clip anything up to the first '?' character and # replace the options separator '&' character by a space: OPTIONS=${URI#*\?} if test "$OPTIONS" = "$URI" then OPTIONS="" fi OPTIONS=$( echo "$OPTIONS" | tr '&' ' ' ) # Options could have been specified in a wrong way # as addendum to the DeviceURI separated by spaces # (spaces are excluded characters in a URI, see RFC 2396) # which works by luck at least for some CUPS versions # see https://bugzilla.novell.com/show_bug.cgi?id=499735 # like 'pipe:/path/to/command option1=value1 -option2 value2' # nevertheless use additionally those kind of options too: MORE_OPTIONS=${DEVICE_URI#* } if test "$MORE_OPTIONS" = "$DEVICE_URI" then MORE_OPTIONS="" fi OPTIONS=$( echo "$OPTIONS" "$MORE_OPTIONS" | tr -s ' ' ) # Test if the command is executable: if ! test -x "$COMMAND" then echo "Cannot execute $COMMAND" 1>&2 exit 1 fi # Replace this wrapper with the actual command # so that it exits with the exit code of the command # and that the command gets any signals directly. exec "$COMMAND" $OPTIONS ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org