From: Tim Orling <ticotimo@gmail.com>
To: star@gmx.li
Cc: poky@lists.yoctoproject.org
Subject: Re: [poky] avahi configuration (without d-bus/X11)
Date: Thu, 2 May 2024 07:34:14 -0700 [thread overview]
Message-ID: <CANx9H-CHJqUef2Zh39gCNK3NkK=wBsW8zOVCBbN9P9nrTn5DqA@mail.gmail.com> (raw)
In-Reply-To: <1204f795-ca39-4d9f-a1ec-820b8c2d577e@gmx.li>
[-- Attachment #1: Type: text/plain, Size: 2474 bytes --]
On Thu, May 2, 2024 at 7:18 AM Steve via lists.yoctoproject.org <star=
gmx.li@lists.yoctoproject.org> 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=
> gmx.li@lists.yoctoproject.org> 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: poky+owner@lists.yoctoproject.org
> Unsubscribe: https://lists.yoctoproject.org/g/poky/unsub [
> ticotimo@gmail.com]
> -=-=-=-=-=-=-=-=-=-=-=-
>
>
[-- Attachment #2: Type: text/html, Size: 4176 bytes --]
next prev parent reply other threads:[~2024-05-02 14:34 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <17995B12D8E7BA2D.25909@lists.yoctoproject.org>
2023-11-21 15:13 ` [poky] shared library location and linking star
2024-05-02 12:00 ` avahi configuration (without d-bus/X11) Arno Steffens
2024-05-02 12:54 ` [poky] " Ross Burton
2024-05-02 14:18 ` star
2024-05-02 14:34 ` Tim Orling [this message]
2024-05-03 12:26 ` star
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CANx9H-CHJqUef2Zh39gCNK3NkK=wBsW8zOVCBbN9P9nrTn5DqA@mail.gmail.com' \
--to=ticotimo@gmail.com \
--cc=poky@lists.yoctoproject.org \
--cc=star@gmx.li \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).