poky.lists.yoctoproject.org archive mirror
 help / color / mirror / Atom feed
From: star <star@gmx.li>
To: poky@lists.yoctoproject.org
Subject: Re: [poky] avahi configuration (without d-bus/X11)
Date: Thu, 2 May 2024 16:18:02 +0200	[thread overview]
Message-ID: <1204f795-ca39-4d9f-a1ec-820b8c2d577e@gmx.li> (raw)
In-Reply-To: <55CA67CE-8196-4E70-B2BD-D8C5BB95B0F9@arm.com>

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"
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.


  reply	other threads:[~2024-05-02 14:18 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 [this message]
2024-05-02 14:34         ` Tim Orling
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=1204f795-ca39-4d9f-a1ec-820b8c2d577e@gmx.li \
    --to=star@gmx.li \
    --cc=poky@lists.yoctoproject.org \
    /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).