diff options
| author | Robert Yang <liezhi.yang@windriver.com> | 2015-01-02 22:03:58 -0800 |
|---|---|---|
| committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-01-07 23:35:07 +0000 |
| commit | 188db833ab00f55216cab73128e05a58ace8a1a4 (patch) | |
| tree | 4ae495d602763af877ad2e7454d925055e2709b2 /meta/recipes-extended/cups | |
| parent | d1b523e7dd55b11d1b02904a83a0464b95616c07 (diff) | |
| download | poky-188db833ab00f55216cab73128e05a58ace8a1a4.tar.gz | |
cups: check avahi before use it
Fixed the error when --disable-avahi:
ippserver.c:425:8: error: unknown type name 'AvahiThreadedPoll'
The avahi is optional, we need check whether it is enabled before use as
other code does.
(From OE-Core rev: e69a1a583bf65dd2b6358c1d925d8de6419e3d76)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-extended/cups')
| -rw-r--r-- | meta/recipes-extended/cups/cups.inc | 1 | ||||
| -rw-r--r-- | meta/recipes-extended/cups/cups/0001-test-ippserver.c-check-avahi-before-use.patch | 34 |
2 files changed, 35 insertions, 0 deletions
diff --git a/meta/recipes-extended/cups/cups.inc b/meta/recipes-extended/cups/cups.inc index 16fdd4f363..5ff557a55e 100644 --- a/meta/recipes-extended/cups/cups.inc +++ b/meta/recipes-extended/cups/cups.inc | |||
| @@ -10,6 +10,7 @@ SRC_URI = "http://www.cups.org/software/${PV}/${BP}-source.tar.bz2 \ | |||
| 10 | file://cups.socket \ | 10 | file://cups.socket \ |
| 11 | file://cups.path \ | 11 | file://cups.path \ |
| 12 | file://cups.service \ | 12 | file://cups.service \ |
| 13 | file://0001-test-ippserver.c-check-avahi-before-use.patch \ | ||
| 13 | " | 14 | " |
| 14 | 15 | ||
| 15 | LEAD_SONAME = "libcupsdriver.so" | 16 | LEAD_SONAME = "libcupsdriver.so" |
diff --git a/meta/recipes-extended/cups/cups/0001-test-ippserver.c-check-avahi-before-use.patch b/meta/recipes-extended/cups/cups/0001-test-ippserver.c-check-avahi-before-use.patch new file mode 100644 index 0000000000..4bcff69b77 --- /dev/null +++ b/meta/recipes-extended/cups/cups/0001-test-ippserver.c-check-avahi-before-use.patch | |||
| @@ -0,0 +1,34 @@ | |||
| 1 | From fba92768324e76fa60d9c5f709e045bd4f7aee89 Mon Sep 17 00:00:00 2001 | ||
| 2 | From: Robert Yang <liezhi.yang@windriver.com> | ||
| 3 | Date: Sat, 3 Jan 2015 05:56:24 +0000 | ||
| 4 | Subject: [PATCH] test/ippserver.c: check avahi before use it | ||
| 5 | |||
| 6 | Fixed the error when --disable-avahi: | ||
| 7 | ippserver.c:425:8: error: unknown type name 'AvahiThreadedPoll' | ||
| 8 | |||
| 9 | The avahi is optional, we need check whether it is enabled before use as | ||
| 10 | other code does. | ||
| 11 | |||
| 12 | Upstream-Status: Pending | ||
| 13 | |||
| 14 | Signed-off-by: Robert Yang <liezhi.yang@windriver.com> | ||
| 15 | --- | ||
| 16 | test/ippserver.c | 2 +- | ||
| 17 | 1 file changed, 1 insertion(+), 1 deletion(-) | ||
| 18 | |||
| 19 | diff --git a/test/ippserver.c b/test/ippserver.c | ||
| 20 | index c785e5f..26c8a66 100644 | ||
| 21 | --- a/test/ippserver.c | ||
| 22 | +++ b/test/ippserver.c | ||
| 23 | @@ -421,7 +421,7 @@ static int valid_job_attributes(_ipp_client_t *client); | ||
| 24 | |||
| 25 | # ifdef HAVE_DNSSD | ||
| 26 | static DNSServiceRef DNSSDMaster = NULL; | ||
| 27 | -# else /* HAVE_AVAHI */ | ||
| 28 | +# elif defined(HAVE_AVAHI) /* HAVE_AVAHI */ | ||
| 29 | static AvahiThreadedPoll *DNSSDMaster = NULL; | ||
| 30 | static AvahiClient *DNSSDClient = NULL; | ||
| 31 | # endif /* HAVE_DNSSD */ | ||
| 32 | -- | ||
| 33 | 2.0.1 | ||
| 34 | |||
