summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/glib-2.0/glib-2.0/0001-meson.build-do-not-enable-pidfd-features-on-native-g.patch
blob: 14dcb278e057b6af1d057d62fa480e921011c88c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
From 294f3e6e9a0a9f4733e85ed6810d1b743055370b Mon Sep 17 00:00:00 2001
From: Alexander Kanavin <alex@linutronix.de>
Date: Sat, 16 Sep 2023 22:28:27 +0200
Subject: [PATCH] meson.build: do not enable pidfd features on native glib
 builds

We still use host distros like alma 8 with kernels older than 5.4,
where these features are not implemented.

Upstream-Status: Inappropriate [oe-core specific]
Signed-off-by: Alexander Kanavin <alex@linutronix.de>
---
 meson.build | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/meson.build b/meson.build
index 8bc5fa7..df1fa60 100644
--- a/meson.build
+++ b/meson.build
@@ -981,7 +981,8 @@ if cc.links('''#include <sys/syscall.h>
                  waitid (P_PIDFD, 0, &child_info, WEXITED | WNOHANG);
                  return 0;
                }''', name : 'pidfd_open(2) system call')
-  glib_conf.set('HAVE_PIDFD', 1)
+  #requires kernel 5.4+
+  #glib_conf.set('HAVE_PIDFD', 1)
 endif
 
 # Check for __uint128_t (gcc) by checking for 128-bit division