From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: Fiona Klute <fiona.klute@gmx.de>
Cc: buildroot@buildroot.org
Subject: Re: [Buildroot] [PATCH 1/1] package/kbd: requires shared libraries if using uClibc
Date: Sun, 20 Sep 2026 14:14:59 +0200 [thread overview]
Message-ID: <aq_NM15i7OLrpmRK@windsurf> (raw)
In-Reply-To: <20260920113231.2342852-1-fiona.klute@gmx.de>
On Sun, Sep 20, 2026 at 01:32:31PM +0200, Fiona Klute via buildroot wrote:
> Since upstream commit 7fdd8debe37ae52812b77d82e08713bd62c607f4 [1]
> (included from release 2.9.0) libkbdfile unconditionally includes
> dlfcn.h. uClibc provides this header only if shared library support is
> enabled [2], so building kbd fails if BR2_TOOLCHAIN_BUILDROOT_UCLIBC=y
> and BR2_STATIC_LIBS=y (BR2_SHARED_STATIC_LIBS=y works).
Hm, you bring an interesting problem to the table here. So far,
whenever <dlfcn.h> was used, we simply added a !BR2_STATIC_LIBS
dependency. Just check in the tree:
$ git grep dlcfn
BR2_STATIC_LIBS=y with glibc is not possible.
BR2_STATIC_LIBS=y with uClibc indeed brings this outcome, as in this
case, we build uClibc without dynamic library support, and therefore
dlfcn.h is missing.
The interesting case is BR2_STATIC_LIBS=y with musl. We do allow this
configuration.. but in this case indeed musl will still provide
<dlfcn.h> and allow loading dynamic libraries.
I'm not sure how to handle this. However, for the time being, for the
sake of consistency, I think we should handle this <dlfcn.h> usage of
kbd like we're doing in all other packages: by adding just a
!BR2_STATIC_LIBS dependency.
Thomas
--
Thomas Petazzoni, co-owner and CEO, Bootlin
Embedded Linux and Kernel engineering and training
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
next prev parent reply other threads:[~2026-09-20 12:15 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-09-20 11:32 [Buildroot] [PATCH 1/1] package/kbd: requires shared libraries if using uClibc Fiona Klute via buildroot
2026-09-20 12:14 ` Thomas Petazzoni via buildroot [this message]
2026-09-20 13:24 ` Fiona Klute via buildroot
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=aq_NM15i7OLrpmRK@windsurf \
--to=buildroot@buildroot.org \
--cc=fiona.klute@gmx.de \
--cc=thomas.petazzoni@bootlin.com \
/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