From: Tim Waugh <twaugh@redhat.com>
To: Open Printing <printing-architecture@lists.linux-foundation.org>
Subject: [Printing-architecture] [patch] cups-filters 1.0.41: gstoraster needs dbus
Date: Wed, 06 Nov 2013 17:32:09 +0000 [thread overview]
Message-ID: <1383759129.10582.11.camel@rubik> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 240 bytes --]
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.
*/
[-- Attachment #1.2: cups-filters-dbus.patch --]
[-- Type: text/x-patch, Size: 2324 bytes --]
diff -up cups-filters-1.0.41/Makefile.am.dbus cups-filters-1.0.41/Makefile.am
--- cups-filters-1.0.41/Makefile.am.dbus 2013-10-25 14:12:56.000000000 +0100
+++ cups-filters-1.0.41/Makefile.am 2013-11-06 17:16:58.504234619 +0000
@@ -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
diff -up cups-filters-1.0.41/configure.ac.dbus cups-filters-1.0.41/configure.ac
--- cups-filters-1.0.41/configure.ac.dbus 2013-10-30 07:21:44.000000000 +0000
+++ cups-filters-1.0.41/configure.ac 2013-11-06 17:23:07.619921079 +0000
@@ -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}
diff -up cups-filters-1.0.41/filter/colord.c.dbus cups-filters-1.0.41/filter/colord.c
--- cups-filters-1.0.41/filter/colord.c.dbus 2013-07-29 20:12:42.000000000 +0100
+++ cups-filters-1.0.41/filter/colord.c 2013-11-06 17:16:58.505234623 +0000
@@ -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
[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 482 bytes --]
next reply other threads:[~2013-11-06 17:32 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-06 17:32 Tim Waugh [this message]
2013-11-06 20:12 ` [Printing-architecture] [patch] cups-filters 1.0.41: gstoraster needs dbus Till Kamppeter
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1383759129.10582.11.camel@rubik \
--to=twaugh@redhat.com \
--cc=printing-architecture@lists.linux-foundation.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.