commit:     dd52479ecc8be78fcd2990441641fe05d9499c40
Author:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
AuthorDate: Wed Feb 18 08:20:14 2026 +0000
Commit:     Joonas Niilola <juippis <AT> gentoo <DOT> org>
CommitDate: Wed Feb 18 08:20:14 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=dd52479e

app-containers/lxc: fix 6.0.5 with glibc-2.43

Closes: https://bugs.gentoo.org/970021
Signed-off-by: Joonas Niilola <juippis <AT> gentoo.org>

 .../files/lxc-6.0.5-fix-openat2-include-typo.patch | 25 ++++++++++++++++++++++
 app-containers/lxc/lxc-6.0.5.ebuild                |  4 +++-
 2 files changed, 28 insertions(+), 1 deletion(-)

diff --git a/app-containers/lxc/files/lxc-6.0.5-fix-openat2-include-typo.patch 
b/app-containers/lxc/files/lxc-6.0.5-fix-openat2-include-typo.patch
new file mode 100644
index 000000000000..2903cc5de57f
--- /dev/null
+++ b/app-containers/lxc/files/lxc-6.0.5-fix-openat2-include-typo.patch
@@ -0,0 +1,25 @@
+From 511e4db8f2a5b47cdd41eef482647492ce5b0f77 Mon Sep 17 00:00:00 2001
+From: Joonas Niilola <[email protected]>
+Date: Sun, 15 Feb 2026 17:42:39 +0200
+Subject: [PATCH] meson.build: fix openat2 include typo, fix with glibc-2.43
+ +FORTIFY
+
+Closes: https://github.com/lxc/lxc/issues/4641
+Signed-off-by: Joonas Niilola <[email protected]>
+---
+ meson.build | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/meson.build b/meson.build
+index eef4e6900c..df40d7516a 100644
+--- a/meson.build
++++ b/meson.build
+@@ -571,7 +571,7 @@ foreach ident: [
+     ['move_mount',        '''#include <sys/mount.h>'''],
+     ['openat2',           '''#include <sys/types.h>
+                              #include <sys/stat.h>
+-                             #include <fctnl.h>'''],
++                             #include <fcntl.h>'''],
+     ['open_tree',         '''#include <sys/mount.h>'''],
+     ['personality',       '''#include <sys/personality.h>'''],
+     ['pidfd_open',        '''#include <stdlib.h>

diff --git a/app-containers/lxc/lxc-6.0.5.ebuild 
b/app-containers/lxc/lxc-6.0.5.ebuild
index 4f9dce380f01..400acf79c30c 100644
--- a/app-containers/lxc/lxc-6.0.5.ebuild
+++ b/app-containers/lxc/lxc-6.0.5.ebuild
@@ -1,4 +1,4 @@
-# Copyright 2022-2025 Gentoo Authors
+# Copyright 2022-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -72,6 +72,8 @@ 
VERIFY_SIG_OPENPGP_KEY_PATH=/usr/share/openpgp-keys/linuxcontainers.asc
 
 DOCS=( AUTHORS CONTRIBUTING MAINTAINERS README.md doc/FAQ.txt )
 
+PATCHES=( "${FILESDIR}"/lxc-6.0.5-fix-openat2-include-typo.patch )
+
 pkg_setup() {
        linux-info_pkg_setup
 }

Reply via email to