lxc: Fix build with musl
PATCH 1/1 lxc: Fix build with musl
From: Jaeyoon Jung <[email protected]>
Signed-off-by Jaeyoon Jung <[email protected]>
--- ...1-process_utils-Remove-P_PIDFD-macro.patch | 38 +++++++++++++++++++ recipes-containers/lxc/lxc_git.bb | 1 + 2 files changed, 39 insertions(+) create mode 100644 recipes-containers/lxc/files/0001-process_utils-Remove-P_PIDFD-macro.patch
recipes-containers/lxc/files/0001-process_utils-Remove-P_PIDFD-macro.patch new file +38 -0
@@ -0,0 +1,38 @@ +From 5bab17c0551db59fcaab85716e46ad84f8bd77ee Mon Sep 17 00:00:00 2001 +From: Jaeyoon Jung <[email protected]> +Date: Wed, 26 Nov 2025 18:24:47 +0900 +Subject: [PATCH] process_utils: Remove P_PIDFD macro + +It is already defined as enum in sys/wait.h. Redefining it as a macro +would end up a build error if !HAVE_SYS_PIDFD_H, eg. +../git/src/lxc/process_utils.h:144:17: error: expected identifier before numeric constant + 144 | #define P_PIDFD 3 + | ^ + +Signed-off-by: Jaeyoon Jung <[email protected]> +Upstream-Status: Submitted [https://github.com/lxc/lxc/pull/4611] +--- + src/lxc/process_utils.h | 7 ------- + 1 file changed, 7 deletions(-) + +diff --git a/src/lxc/process_utils.h b/src/lxc/process_utils.h +index effff9bd..5b39b8bb 100644 +--- a/src/lxc/process_utils.h ++++ b/src/lxc/process_utils.h +@@ -138,13 +138,6 @@ + #define CLONE_NEWTIME 0x00000080 /* New time namespace */ + #endif + +-/* waitid */ +-#if !HAVE_SYS_PIDFD_H +-#ifndef P_PIDFD +-#define P_PIDFD 3 +-#endif +-#endif +- + #ifndef CLONE_ARGS_SIZE_VER0 + #define CLONE_ARGS_SIZE_VER0 64 /* sizeof first published struct */ + #endif +-- +2.47.2 +
recipes-containers/lxc/lxc_git.bb +1 -0
@@ -45,6 +45,7 @@ SRC_URI = "git://github.com/lxc/lxc.git;branch=stable-6.0;protocol=https \ file://0001-download-don-t-try-compatbility-index.patch \ file://tests-our-init-is-not-busybox.patch \ file://0001-template-if-busybox-contains-init-use-it-in-containe.patch \ + file://0001-process_utils-Remove-P_PIDFD-macro.patch \ file://dnsmasq.conf \ file://lxc-net \ "
Signature · 1 line
2.47.2