rpms/hplip/F-10 hplip-dbus.patch,NONE,1.1 hplip.spec,1.187,1.188

Tim Waugh twaugh at fedoraproject.org
Thu Dec 11 11:13:09 UTC 2008


Author: twaugh

Update of /cvs/pkgs/rpms/hplip/F-10
In directory cvs1.fedora.phx.redhat.com:/tmp/cvs-serv24445

Modified Files:
	hplip.spec 
Added Files:
	hplip-dbus.patch 
Log Message:
* Thu Dec 11 2008 Tim Waugh <twaugh at redhat.com> 2.8.7-4
- Prevent backend crash when D-Bus not running (bug #474362).


hplip-dbus.patch:

--- NEW FILE hplip-dbus.patch ---
diff -up hplip-2.8.7/prnt/backend/hp.c.dbus hplip-2.8.7/prnt/backend/hp.c
--- hplip-2.8.7/prnt/backend/hp.c.dbus	2008-12-11 10:44:30.000000000 +0000
+++ hplip-2.8.7/prnt/backend/hp.c	2008-12-11 10:46:15.000000000 +0000
@@ -489,6 +489,9 @@ static int device_event(const char *dev,
     DBusMessage * msg = NULL;
     int id = atoi(jobid);
 
+    if (dbus_conn == NULL)
+	return 0;
+
     msg = dbus_message_new_signal(DBUS_PATH, DBUS_INTERFACE, "Event");
 
     if (NULL == msg)


Index: hplip.spec
===================================================================
RCS file: /cvs/pkgs/rpms/hplip/F-10/hplip.spec,v
retrieving revision 1.187
retrieving revision 1.188
diff -u -r1.187 -r1.188
--- hplip.spec	21 Oct 2008 13:22:20 -0000	1.187
+++ hplip.spec	11 Dec 2008 11:12:39 -0000	1.188
@@ -1,7 +1,7 @@
 Summary: HP Linux Imaging and Printing Project
 Name: hplip
 Version: 2.8.7
-Release: 3%{?dist}
+Release: 4%{?dist}
 License: GPLv2+ and MIT
 Group: System Environment/Daemons
 Conflicts: system-config-printer < 0.6.132
@@ -18,6 +18,7 @@
 Patch2: hplip-gzip-n.patch
 Patch3: hplip-quiet.patch
 Patch4: hplip-marker-supply.patch
+Patch5: hplip-dbus.patch
 Patch6: hplip-systray.patch
 Patch8: hplip-libsane.patch
 Patch12: hplip-no-root-config.patch
@@ -114,6 +115,9 @@
 # Low ink is a warning condition, not an error.
 %patch4 -p1 -b .marker-supply
 
+# Prevent backend crash when D-Bus not running (bug #474362).
+%patch5 -p1 -b .dbus
+
 # Make --qt4 the default for the systray applet, so that it appears
 # in the right place.
 %patch6 -p1 -b .systray
@@ -306,6 +310,9 @@
 exit 0
 
 %changelog
+* Thu Dec 11 2008 Tim Waugh <twaugh at redhat.com> 2.8.7-4
+- Prevent backend crash when D-Bus not running (bug #474362).
+
 * Tue Oct 21 2008 Tim Waugh <twaugh at redhat.com> 2.8.7-3
 - Ship PPDs in the correct location (bug #343841).
 




More information about the fedora-extras-commits mailing list