[Buildroot] [git commit branch/2023.11.x] package/cups: fix avahi handling

Peter Korsgaard peter at korsgaard.com
Sat Jan 13 10:30:01 UTC 2024


commit: https://git.buildroot.net/buildroot/commit/?id=acaf6162fdb0a446175685e44ccfeb9e3afc1b10
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/2023.11.x

--{dis,en}able-avahi is unrecognized since bump to version 2.3.3op2 in
commit 8cf034ab0f686d0a3891b6fe5bb5a2d1bdf381d5 (which switched upstream
location from apple to openprinting):

configure: WARNING: unrecognized options: --disable-gtk-doc, --disable-gtk-doc-html, --disable-doc, --disable-docs, --disable-documentation, --with-xmlto, --with-fop, --disable-dependency-tracking, --enable-ipv6, --disable-nls, --disable-systemd, --disable-avahi

Signed-off-by: Fabrice Fontaine <fontaine.fabrice at gmail.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni at bootlin.com>
(cherry picked from commit 36743d61756ec4c8bdf1963a8cfea01724ba78ef)
Signed-off-by: Peter Korsgaard <peter at korsgaard.com>
---
 package/cups/cups.mk | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/package/cups/cups.mk b/package/cups/cups.mk
index 344e21e02b..855328a7e7 100644
--- a/package/cups/cups.mk
+++ b/package/cups/cups.mk
@@ -68,11 +68,11 @@ else
 CUPS_CONF_OPTS += --disable-libusb
 endif
 
-ifeq ($(BR2_PACKAGE_AVAHI),y)
+ifeq ($(BR2_PACKAGE_AVAHI_LIBAVAHI_CLIENT),y)
 CUPS_DEPENDENCIES += avahi
-CUPS_CONF_OPTS += --enable-avahi
+CUPS_CONF_OPTS += --with-dnssd=avahi
 else
-CUPS_CONF_OPTS += --disable-avahi
+CUPS_CONF_OPTS += --with-dnssd=no
 endif
 
 ifeq ($(BR2_PACKAGE_HAS_UDEV),y)



More information about the buildroot mailing list