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

Tim Orling <[email protected]>
Newsgroups org.yoctoproject.lists.poky
Message-ID <CANx9H-CHJqUef2Zh39gCNK3NkK=wBsW8zOVCBbN9P9nrTn5DqA@mail.gmail.com>
On Thu, May 2, 2024 at 7:18 AM Steve via lists.yoctoproject.org <star=
[email protected]> wrote:

> On 5/2/24 14:54, Ross Burton via lists.yoctoproject.org wrote:
> > On 2 May 2024, at 13:00, Steve via lists.yoctoproject.org <star=
> [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://git.yoctoproject.org/poky/tree/meta/recipes-connectivity/avahi/avahi_0.8.bb#n50


> Frankly speaking I don't understand why this is to be configured twice
> and why PACKAGECONFIG overrule that, but that helps to get rid of both
> d-bus and libX11.
>
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> View/Reply Online (#13338):
> https://lists.yoctoproject.org/g/poky/message/13338
> Mute This Topic: https://lists.yoctoproject.org/mt/105861001/924729
> Group Owner: [email protected]
> Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [
> [email protected]]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
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.