Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni via buildroot <buildroot@buildroot.org>
To: "Théo Lebrun" <theo.lebrun@bootlin.com>
Cc: buildroot@buildroot.org,
	"James Hilliard" <james.hilliard1@gmail.com>,
	"Daniel Lang" <dalang@gmx.at>,
	"Joseph Kogut" <joseph.kogut@gmail.com>,
	"Romain Naour" <romain.naour@gmail.com>,
	"Valentin Korenblit" <valentinkorenblit@gmail.com>,
	"Benoît Monin" <benoit.monin@bootlin.com>,
	"Gregory CLEMENT" <gregory.clement@bootlin.com>,
	"Jimmy Wesolowski" <Jimmy.Wesolowski@mobileye.com>,
	"Tawfik Bayouk" <tawfik.bayouk@mobileye.com>,
	"Vladimir Kondratiev" <vladimir.kondratiev@mobileye.com>
Subject: Re: [Buildroot] [PATCH 1/4] package/bpftool: disable feature auto-detection for host build
Date: Sun, 18 Oct 2026 22:42:23 +0200	[thread overview]
Message-ID: <atUvKBNRsqHYsh7r@windsurf> (raw)
In-Reply-To: <20260828-xdp-tools-tleb-v1-1-463c25b5a99b@bootlin.com>

On Fri, Aug 28, 2026 at 06:46:47PM +0200, Théo Lebrun via buildroot wrote:
> On my system:
> 
>     $ readelf -d host/sbin/bpftool | awk '/NEEDED/ {$1=""; print}'
>     (NEEDED) Shared library: [libelf.so.1]     # ACK
>     (NEEDED) Shared library: [libz.so.1]       # ACK
>     (NEEDED) Shared library: [libcap.so.2]     # NACK
>     (NEEDED) Shared library: [libLLVM.so.22.1] # NACK
>     (NEEDED) Shared library: [libc.so.6]       # ACK
> 
> After:
> 
>     $ readelf -d host/sbin/bpftool | awk '/NEEDED/ {$1=""; print}'
>     (NEEDED) Shared library: [libelf.so.1]
>     (NEEDED) Shared library: [libz.so.1]
>     (NEEDED) Shared library: [libc.so.6]
> 
> Host bpftool auto-detects optional features by probing the system.
> In my case it finds:
>  - libcap which resolves to my system shared object because
>    BR2_PACKAGE_LIBCAP=n.
>  - libLLVM which resolves to the BR2-built one thanks to llvm-config in
>    $PATH. But we don't have that marked as an explicit dependency.
> 
> Avoid the mechanism by hardcoding FEATURE_TESTS to the empty string.
> Goal is to make the host-bpftool more hermetic to the host system. If
> we ever need those features (future xdp-tools package doesn't), then
> we'll add the dependency explicitly.
> 
> Signed-off-by: Théo Lebrun <theo.lebrun@bootlin.com>

Applied to master, thanks!

Best regards,

Thomas Petazzoni
-- 
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

  reply	other threads:[~2026-10-18 20:42 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-08-28 16:46 [Buildroot] [PATCH 0/4] Add xdp-tools package Théo Lebrun via buildroot
2026-08-28 16:46 ` [Buildroot] [PATCH 1/4] package/bpftool: disable feature auto-detection for host build Théo Lebrun via buildroot
2026-10-18 20:42   ` Thomas Petazzoni via buildroot [this message]
2026-10-23 13:19   ` Raphaël Mélotte via buildroot
2026-08-28 16:46 ` [Buildroot] [PATCH 2/4] package/bpftool: allow building on MIPS architecture Théo Lebrun via buildroot
2026-10-18 20:53   ` Thomas Petazzoni via buildroot
2026-08-28 16:46 ` [Buildroot] [PATCH 3/4] package/llvm: add option to build the BPF backend in host-llvm Théo Lebrun via buildroot
2026-08-28 16:46 ` [Buildroot] [PATCH 4/4] package/xdp-tools: new package Théo Lebrun via buildroot
2026-09-03 14:59   ` [Buildroot] [4/4] " dowan gullient via buildroot
2026-11-26 15:41     ` Théo Lebrun 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=atUvKBNRsqHYsh7r@windsurf \
    --to=buildroot@buildroot.org \
    --cc=Jimmy.Wesolowski@mobileye.com \
    --cc=benoit.monin@bootlin.com \
    --cc=dalang@gmx.at \
    --cc=gregory.clement@bootlin.com \
    --cc=james.hilliard1@gmail.com \
    --cc=joseph.kogut@gmail.com \
    --cc=romain.naour@gmail.com \
    --cc=tawfik.bayouk@mobileye.com \
    --cc=theo.lebrun@bootlin.com \
    --cc=thomas.petazzoni@bootlin.com \
    --cc=valentinkorenblit@gmail.com \
    --cc=vladimir.kondratiev@mobileye.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