mirror of
https://git.yoctoproject.org/poky
synced 2026-06-27 20:13:41 +02:00
If qemu-usermode is not available then p11-kit fails to configure: meson.build:313:24: ERROR: Can not run test applications in this cross environment. This has already been fixed upstream, so backport the patches. (From OE-Core rev: 3de715feaaaab9ac1e882a6913e2202203178170) Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
31 lines
937 B
Diff
31 lines
937 B
Diff
From 7aa6251bf4ce36d027d53c9c96bb05f90ef7eb5b Mon Sep 17 00:00:00 2001
|
|
From: Adam Sampson <ats@offog.org>
|
|
Date: Sun, 2 Jul 2023 15:44:06 +0100
|
|
Subject: [PATCH] Define _GNU_SOURCE when testing for strerror_r
|
|
|
|
The Meson check for GNU/XSI strerror_r didn't inherit the project
|
|
options that include _GNU_SOURCE (unlike the autoconf version), so the
|
|
result didn't match how the code that uses it will be compiled. Add
|
|
_GNU_SOURCE explicitly as with the following checks.
|
|
|
|
Signed-off-by: Adam Sampson <ats@offog.org>
|
|
|
|
Upstream-Status: Backport
|
|
Signed-off-by: Ross Burton <ross.burton@arm.com>
|
|
---
|
|
meson.build | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/meson.build b/meson.build
|
|
index 4cc3f89a..9a72e148 100644
|
|
--- a/meson.build
|
|
+++ b/meson.build
|
|
@@ -301,6 +301,7 @@ endforeach
|
|
|
|
if cc.has_function('strerror_r', prefix: '#include <string.h>')
|
|
strerror_r_code = '''
|
|
+#define _GNU_SOURCE
|
|
#include <errno.h>
|
|
#include <string.h>
|
|
|