From: "Théo Lebrun via buildroot" <buildroot@buildroot.org>
To: "dowan gullient" <dowan.gullient@smile.fr>, <buildroot@buildroot.org>
Subject: Re: [Buildroot] [4/4] package/xdp-tools: new package
Date: Thu, 26 Nov 2026 16:41:06 +0100 [thread overview]
Message-ID: <DN598PGRKIE0.E2N6C8EP7BD0@bootlin.com> (raw)
In-Reply-To: <2fc9798f-a5c7-4ca5-b1d3-88ecd8a4b062@smile.fr>
Hello Dowan,
Let me reply to this LLM-assisted review to document some decisions
before sending V2 (once the build and tested is done).
On Thu Sep 3, 2026 at 4:59 PM CEST, dowan gullient wrote:
>> + select BR2_PACKAGE_ELFUTILS
>> + select BR2_PACKAGE_LIBBPF
>> + select BR2_PACKAGE_ZLIB
>> + select BR2_PACKAGE_LIBPCAP
>> + select BR2_PACKAGE_HOST_LLVM_BPF
>> + select BR2_PACKAGE_BASH
>> + select BR2_PACKAGE_BUSYBOX_SHOW_OTHERS # bash
>> + select BR2_PACKAGE_ETHTOOL
>> + select BR2_PACKAGE_IPROUTE2 # tc
>> + select BR2_PACKAGE_TCPDUMP
>> + select BR2_PACKAGE_WIRESHARK # tshark, capinfos
>> + select BR2_PACKAGE_NFTABLES # nft
>> + select BR2_PACKAGE_SOCAT
>> + select BR2_PACKAGE_NDISC6
>> + select BR2_PACKAGE_NDISC6_NDISC6 # ndisc6 tool
>
> The list of `select` statements is not in alphabetical order, if you
> could fix that, it would be better for maintenance.
Done for next iteration.
>> +XDP_TOOLS_LICENSE = GPL-2.0, LGPL-2.1, BSD-2-Clause
>
> The license string uses bare SPDX identifiers (`GPL-2.0`, `LGPL-2.1`)
> which are
> deprecated. Buildroot requires explicit variants such as `-only` or
> `-or-later`
> (or the historical `+`). Furthermore, when a component is dual-licensed
> (e.g.,
> libxdp under LGPL-2.1 OR BSD-2-Clause), the `OR` operator must be used
> instead
> of a comma-separated list. Please audit the source tree after build to
> determine the exact
> licenses to use, and update the variable accordingly.
Done. New variable is:
XDP_TOOLS_LICENSE = GPL-2.0-only, LGPL-2.1-only, BSD-2-Clause
I will not express the dual-licensed components explicitly here, as the
project's licensing is not super homogeneous:
⟩ sort /tmp/xdp-tools-licenses | uniq -c | sort -nr
72 SPDX-License-Identifier: GPL-2.0
14 SPDX-License-Identifier: (GPL-2.0 OR BSD-2-Clause)
10 SPDX-License-Identifier: (LGPL-2.1 OR BSD-2-Clause)
9 SPDX-License-Identifier: GPL-2.0-only
6 SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
4 SPDX-License-Identifier: GPL-2.0-or-later
3 SPDX-License-Identifier: (GPL-2.0-or-later OR BSD-2-clause)
2 SPDX-License-Identifier: LGPL-2.1
2 SPDX-License-Identifier: GPL-2.0+ WITH Linux-syscall-note
1 SPDX-License-Identifier: LGPL-2.1+
1 SPDX-License-Identifier: ((GPL-2.0 WITH Linux-syscall-note) OR BSD-3-Clause)
1 SPDX-License-Identifier: GPL-2.0+
1 SPDX-License-Identifier: BSD-2-Clause
>> +XDP_TOOLS_DEPENDENCIES = host-clang host-bpftool host-m4 host-pkgconf \
>> + libbpf elfutils zlib libpcap
>
> Also the `XDP_TOOLS_DEPENDENCIES` list in the `.mk` file is not sorted
> alphabetically.
Fixed:
XDP_TOOLS_DEPENDENCIES = elfutils host-bpftool host-clang host-m4 host-pkgconf \
libbpf libpcap zlib
>> +Upstream: Not submitted
>
> All three patches (0001, 0002, and the MIPS-specific 0003) use
> `Upstream: Not submitted` as their status tag. It would be better to
> either submit the patches
> upstream and update the tag, or change it to `Upstream: N/A` with a
> justification explaining why they are Buildroot-specific.
I upstreamed all the patches improving the test-suite ability to run on
a busybox rootfs.
https://github.com/xdp-project/xdp-tools/pull/593
Only one patch remains N/A: it is a workaround for a compiler bug and we
agreed that it didn't make sense to merge into xdp-tools. It does feel
at the right place however in a build system.
Regards,
--
Théo Lebrun, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com
_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot
prev parent reply other threads:[~2026-11-26 15:41 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
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 [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=DN598PGRKIE0.E2N6C8EP7BD0@bootlin.com \
--to=buildroot@buildroot.org \
--cc=dowan.gullient@smile.fr \
--cc=theo.lebrun@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