Skip to contentSkip to conversation

cups-filters 1.0.41: gstoraster needs dbus

PATCH In review Tim Waugh 2 participants 2 messages Nov 6, 2013 Kbuild

lore
Share & tools
lore

Tim Waugh

author
#0 lore raw

PATCH 1/1 cups-filters 1.0.41: gstoraster needs dbus

This patch fixes gstoraster, which uses dbus for colord support. Previously, it was being built without dbus and so colord support was missing.

Original bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1026928

Tim.
*/

Makefile.am renamed from Makefile.am.dbus +2 -0
diff -up cups-filters-1.0.41/Makefile.am.dbus cups-filters-1.0.41/Makefile.am
@@ -474,9 +474,11 @@ gstoraster_SOURCES = \
 	cupsfilters/raster.h
 gstoraster_CFLAGS = \
 	$(CUPS_CFLAGS) \
+	$(DBUS_CFLAGS) \
 	-I$(srcdir)/cupsfilters/
 gstoraster_LDADD = \
 	$(CUPS_LIBS) \
+	$(DBUS_LIBS) \
 	libcupsfilters.la
 
 imagetopdf_SOURCES = \

diff -up cups-filters-1.0.41/config.h.in.dbus cups-filters-1.0.41/config.h.in

configure.ac renamed from configure.ac.dbus +13 -0
diff -up cups-filters-1.0.41/configure.ac.dbus cups-filters-1.0.41/configure.ac
@@ -114,6 +114,18 @@ AX_COMPARE_VERSION([$CUPS_VERSION],[gt],
 AC_DEFINE(PDFTOPDF, [], [Needed for pdftopdf filter compilation])
 AC_DEFINE_DIR(BANNERTOPDF_DATADIR, "{CUPS_DATADIR}/data", [Directory where bannertopdf finds its data files (PDF templates)])
 
+dnl DBus support
+DBUS_CFLAGS=""
+DBUS_LIBS=""
+AC_ARG_ENABLE([dbus], AC_HELP_STRING([--disable-dbus],
+    [Do not use dbus to communicate with external services]))
+if test "$enable_dbus" != "no"; then
+        PKG_CHECK_MODULES(DBUS, [dbus-1], [HAVE_DBUS=-DHAVE_DBUS])
+        AC_DEFINE([HAVE_DBUS], [], [Defines if dbus is available.])
+fi
+AC_SUBST(DBUS_CFLAGS)
+AC_SUBST(DBUS_LIBS)
+
 AC_SEARCH_LIBS([dlopen],
 	[dl],
 	[AS_IF([test "$ac_cv_search_dlopen" != "none required"], [
@@ -640,6 +652,7 @@ Build configuration:
 	php-config:      ${with_php_config}
 	test-font:       ${with_test_font_path}
 	tiff:            ${with_tiff}
+	dbus:            ${HAVE_DBUS}
 	avahi:           ${enable_avahi}
 	browsing:        ${with_browseremoteprotocols}
 	werror:          ${enable_werror}
filter/colord.c renamed from filter/colord.c.dbus +2 -0
diff -up cups-filters-1.0.41/filter/colord.c.dbus cups-filters-1.0.41/filter/colord.c
@@ -32,6 +32,8 @@ MIT Open Source License  -  http://www.o
 #include <stdio.h>
 #include <sys/types.h>
 
+#include "config.h"
+
 #ifdef HAVE_DBUS
   #include <dbus/dbus.h>
 #endif
#1 lore raw

Thank you for the patch, I have found the problem independently today and have fixed it (in rev. 7121).

By the way, today I have moved foomatic-rip (the one with obsolete spooler support removed in this year's GSoC) into cups-filters. The foomatic-filters package is obsolete now.

Till

Quoted 17 lines · Tim Waugh

This patch fixes gstoraster, which uses dbus for colord support. Previously, it was being built without dbus and so colord support was missing.

Original bug report:
https://bugzilla.redhat.com/show_bug.cgi?id=1026928

Tim.
*/

_______________________________________________
Printing-architecture mailing list
[email protected]
https://lists.linuxfoundation.org/mailman/listinfo/printing-architecture