[Buildroot] [PATCH] libiio: fix libavahi-client dependency

Marcus Folkesson marcus.folkesson at gmail.com
Wed Dec 27 12:22:24 UTC 2017


Hi Baruch,

On Wed, Dec 27, 2017 at 02:12:49PM +0200, Baruch Siach wrote:
> Hi Marcus,
> 
> On Wed, Dec 27, 2017 at 01:06:03PM +0100, Marcus Folkesson wrote:
> > Avahi needs avahi-daemon and D-Bus to build avahi-client.
> > 
> > Signed-off-by: Marcus Folkesson <marcus.folkesson at gmail.com>
> > ---
> >  package/libiio/libiio.mk | 4 ++--
> >  1 file changed, 2 insertions(+), 2 deletions(-)
> > 
> > diff --git a/package/libiio/libiio.mk b/package/libiio/libiio.mk
> > index 0b13064085..0ff6c47dba 100644
> > --- a/package/libiio/libiio.mk
> > +++ b/package/libiio/libiio.mk
> > @@ -54,8 +54,8 @@ else
> >  LIBIIO_CONF_OPTS += -DWITH_IIOD_USBD=OFF
> >  endif
> >  
> > -# Avahi support in libiio requires avahi-client, which needs avahi-daemon
> > -ifeq ($(BR2_PACKAGE_AVAHI)$(BR2_PACKAGE_AVAHI_DAEMON),yy)
> > +# Avahi support in libiio requires avahi-client, which needs avahi-daemon and dbus
> > +ifeq ($(BR2_PACKAGE_AVAHI)$(BR2_PACKAGE_AVAHI_DAEMON)$(BR2_PACKAGE_DBUS),yyy)
> 
> When BR2_PACKAGE_AVAHI_DAEMON is enabled, BR2_PACKAGE_AVAHI must also be 
> enabled. So the is no need to check for BR2_PACKAGE_AVAHI.
> 

You are so right.

> >  LIBIIO_DEPENDENCIES += avahi
> >  endif
> 
> baruch
> 
> -- 
>      http://baruch.siach.name/blog/                  ~. .~   Tk Open Systems
> =}------------------------------------------------ooO--U--Ooo------------{=
>    - baruch at tkos.co.il - tel: +972.2.679.5364, http://www.tkos.co.il -

Best regards
Marcus Folkesson


More information about the buildroot mailing list