Re: [poky] avahi configuration (without d-bus/X11)

Ross Burton <[email protected]>
Newsgroups org.yoctoproject.lists.poky
Message-ID <[email protected]>
On 2 May 2024, at 13:00, Steve via lists.yoctoproject.org <[email protected]> wrote:
> 
> Hello,
> I need the avahi to announce my embedded device to network and give it
> an IP if DCHP is not working.
> Over the normal "avahi-daemon.conf" I want to disable d-bus and ipv6.
> That is working by do_install:append changing that file.
> 
> But, adding to image the package "avahi-daemon" (avahi-autoipd is not a
> problem) bloats my rootfs with dbus-daemon and libs and  libX11 libs. I
> don't have an screen attached.
> 
> So question: How to avoid that?
> 
> In my avahi_%.bbappend I added:
> EXTRA_OECONF += " \
>    --disable-dbus \
>    --disable-gtk \
>    --disable-gtk3 \
>    --disable-libevent \
>    --disable-qt5 \
> "
> But that doesn't seem to help.

Have a look at the recipe, specifically the PACKAGECONFIG options.  You want to disable the dbus and gtk3 options.  Note that if you have a headless device so don’t need X11 at all, then remove x11 from DISTRO_FEATURES and that will never be built.

Ross
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.