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

star <[email protected]>
Newsgroups org.yoctoproject.lists.poky
Message-ID <[email protected]>
On 5/2/24 16:34, Tim Orling via lists.yoctoproject.org wrote:
>
>
> On Thu, May 2, 2024 at 7:18 AM Steve via lists.yoctoproject.org
> <http://lists.yoctoproject.org> <[email protected]
> <mailto:[email protected]>> wrote:
>
>     On 5/2/24 14:54, Ross Burton via lists.yoctoproject.org
>     <http://lists.yoctoproject.org> wrote:
>      > On 2 May 2024, at 13:00, Steve via lists.yoctoproject.org
>     <http://lists.yoctoproject.org> <[email protected]
>     <mailto:[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
>
>     Well Ross, you made my day ... again! Thanks.
>     Yes, as above mentioned I already disabled dbus and gtk3. But it seems I
>     have to write also PACKAGECONFIG[dbus] = "--disable-dbus,
>     --disable-dbus,dbus"
>
>
> That is not what you needed to change. What you need to change is the
> "weak" default value of the PACKACONFIG ??= "dbus ..."
> So just setting PACKAGECONFIG = ""
>
> https://docs.yoctoproject.org/ref-manual/variables.html#term-PACKAGECONFIG <https://docs.yoctoproject.org/ref-manual/variables.html#term-PACKAGECONFIG>
> https://git.yoctoproject.org/poky/tree/meta/recipes-connectivity/avahi/avahi_0.8.bb#n50 <https://git.yoctoproject.org/poky/tree/meta/recipes-connectivity/avahi/avahi_0.8.bb#n50>
>

Thanks Tim, you are right!
That is even better.
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.