mirror of
https://github.com/openembedded/meta-openembedded.git
synced 2025-12-14 06:16:04 +01:00
satyr: Fix build on musl/clang
Fixes | py_base_stacktrace.c:301:5: error: call to undeclared function 'g_free'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration] | g_free(text); | ^ Signed-off-by: Khem Raj <raj.khem@gmail.com>
This commit is contained in:
parent
0d8fbade0b
commit
b2c878e306
|
|
@ -0,0 +1,29 @@
|
|||
From 3b84fe4375292d00ebb605a5917e66129fe5f0cb Mon Sep 17 00:00:00 2001
|
||||
From: Khem Raj <raj.khem@gmail.com>
|
||||
Date: Wed, 24 Aug 2022 23:26:46 -0700
|
||||
Subject: [PATCH] py_base_stacktrace.c: include glib.h
|
||||
|
||||
This file has references to g_free from glib-2.0 which needs this header
|
||||
|
||||
Upstream-Status: Submitted [https://github.com/abrt/satyr/pull/333]
|
||||
Signed-off-by: Khem Raj <raj.khem@gmail.com>
|
||||
---
|
||||
python/py_base_stacktrace.c | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/python/py_base_stacktrace.c b/python/py_base_stacktrace.c
|
||||
index b9bd16c..301db84 100644
|
||||
--- a/python/py_base_stacktrace.c
|
||||
+++ b/python/py_base_stacktrace.c
|
||||
@@ -17,7 +17,7 @@
|
||||
with this program; if not, write to the Free Software Foundation, Inc.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
-
|
||||
+#include <glib.h>
|
||||
#include "py_common.h"
|
||||
#include "py_base_thread.h"
|
||||
#include "py_base_stacktrace.h"
|
||||
--
|
||||
2.37.2
|
||||
|
||||
|
|
@ -9,6 +9,7 @@ inherit autotools-brokensep python3native pkgconfig
|
|||
|
||||
SRC_URI = "git://github.com/abrt/satyr.git;branch=master;protocol=https \
|
||||
file://0002-fix-compile-failure-against-musl-C-library.patch \
|
||||
file://0001-py_base_stacktrace.c-include-glib.h.patch \
|
||||
"
|
||||
SRCREV = "f8a0dbfe7fcc6e44f03d66ca5c81363aea318380"
|
||||
S = "${WORKDIR}/git"
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user