Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] package/lldpd: fix compilation issue with kernel 7.3 on aarch64
@ 2026-09-28 15:22 Thibaut Collet
  2026-09-28 17:41 ` Vincent Jardin via buildroot
  2026-09-28 21:27 ` Thomas Petazzoni via buildroot
  0 siblings, 2 replies; 5+ messages in thread
From: Thibaut Collet @ 2026-09-28 15:22 UTC (permalink / raw)
  To: buildroot; +Cc: Thibaut Collet

lldpd bundles some uapi linux files for old distributions, especially
the types.h one.

Since kernel commit d4bf9e08d412 ("arm64: uapi: Use __u128 instead of
__uint128_t in UAPI headers"), the type __u128 is used by sigcontext.h.
This type is defined in types.h, but the old version bundled by lldpd
does not provide it. This lack leads to the following compilation error:

  In file included from ../../../../host/aarch64-buildroot-linux-gnu/sysroot/usr/include/bits/sigcontext.h:30,
                   from ../../../../host/aarch64-buildroot-linux-gnu/sysroot/usr/include/signal.h:301,
                   from ../../../../host/aarch64-buildroot-linux-gnu/sysroot/usr/include/sys/param.h:28,
                   from privsep_io.c:5:
  ../../../../host/aarch64-buildroot-linux-gnu/sysroot/usr/include/asm/sigcontext.h:81:9: error: unknown type name '__u128'; did you mean '__u32'?
     81 |         __u128 vregs[32];
        |         ^~~~~~
        |         __u32

As Buildroot is not an old distribution and always provides the uapi
linux files, the lldpd ones are removed at the post patch step to have
a consistent set of uapi include files.

Signed-off-by: Thibaut Collet <thbt.cllt@gmail.com>
---
 package/lldpd/lldpd.mk | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/package/lldpd/lldpd.mk b/package/lldpd/lldpd.mk
index f0cbc7e436..b6811ce3a8 100644
--- a/package/lldpd/lldpd.mk
+++ b/package/lldpd/lldpd.mk
@@ -61,6 +61,11 @@ else
 LLDPD_CONF_OPTS += --without-readline
 endif
 
+define LLDPD_DROP_UAPI_FILES
+	rm -rf $(@D)/include/linux
+endef
+LLDPD_POST_PATCH_HOOKS += LLDPD_DROP_UAPI_FILES
+
 define LLDPD_INSTALL_INIT_SYSV
 	$(INSTALL) -D -m 0755 package/lldpd/S60lldpd \
 		$(TARGET_DIR)/etc/init.d/S60lldpd
-- 
2.43.0

_______________________________________________
buildroot mailing list
buildroot@buildroot.org
https://lists.buildroot.org/mailman/listinfo/buildroot

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2026-09-29 17:05 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-28 15:22 [Buildroot] [PATCH] package/lldpd: fix compilation issue with kernel 7.3 on aarch64 Thibaut Collet
2026-09-28 17:41 ` Vincent Jardin via buildroot
2026-09-28 21:27 ` Thomas Petazzoni via buildroot
2026-09-29  8:02   ` Thibaut Collet
2026-09-29 17:05     ` Vincent Jardin via buildroot

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox