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: Fri, 3 May 2024 14:26:21 +0200	[thread overview]
Message-ID: <62238bf6-16a7-4c31-bf1f-609301970134@gmx.li> (raw)
In-Reply-To: <CANx9H-CHJqUef2Zh39gCNK3NkK=wBsW8zOVCBbN9P9nrTn5DqA@mail.gmail.com>

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> <star=gmx.li@lists.yoctoproject.org
> <mailto:gmx.li@lists.yoctoproject.org>> 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> <star=gmx.li@lists.yoctoproject.org
>     <mailto: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://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.



      reply	other threads:[~2024-05-03 12:26 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
2024-05-03 12:26           ` star [this message]

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=62238bf6-16a7-4c31-bf1f-609301970134@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).