logo

etc_portage

Unnamed repository; edit this file 'description' to name the repository. git clone https://anongit.hacktivis.me/git/etc_portage.git/
commit: 7746950c3f01273f6aba91f1c61af836dbe0f5b5
parent 3fd09cc53f57d28951e10d3a5a33bdc3392d3d00
Author: Haelwenn (lanodan) Monnier <contact@hacktivis.me>
Date:   Fri,  8 Aug 2025 13:52:53 +0200

gui-libs/gtk: Check for non-standard execinfo.h instead of assuming it

Diffstat:

Apatches/gui-libs/gtk/0001-Check-for-non-standard-execinfo.h-instead-of-assumin.patch50++++++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 50 insertions(+), 0 deletions(-)

diff --git a/patches/gui-libs/gtk/0001-Check-for-non-standard-execinfo.h-instead-of-assumin.patch b/patches/gui-libs/gtk/0001-Check-for-non-standard-execinfo.h-instead-of-assumin.patch @@ -0,0 +1,50 @@ +From 96ff31553fb227f60e680cfe4c5df32c25bfe46a Mon Sep 17 00:00:00 2001 +From: "Haelwenn (lanodan) Monnier" <contact@hacktivis.me> +Date: Fri, 8 Aug 2025 13:51:17 +0200 +Subject: [PATCH] Check for non-standard execinfo.h instead of assuming it + +Fixes building & testing GTK4 on musl +--- + meson.build | 1 + + testsuite/reftests/gtk-reftest.c | 4 ++-- + 2 files changed, 3 insertions(+), 2 deletions(-) + +diff --git a/meson.build b/meson.build +index 679a222..0734df6 100644 +--- a/meson.build ++++ b/meson.build +@@ -214,6 +214,7 @@ check_headers = [ + 'sys/sysmacros.h', + 'sys/time.h', + 'unistd.h', ++ 'execinfo.h', + ] + + foreach h : check_headers +diff --git a/testsuite/reftests/gtk-reftest.c b/testsuite/reftests/gtk-reftest.c +index 154a2a6..59865d4 100644 +--- a/testsuite/reftests/gtk-reftest.c ++++ b/testsuite/reftests/gtk-reftest.c +@@ -24,7 +24,7 @@ + #include "reftest-module.h" + #include "reftest-snapshot.h" + +-#ifndef G_OS_WIN32 ++#ifdef HAVE_EXECINFO_H + #include <execinfo.h> + #endif + #include <string.h> +@@ -469,7 +469,7 @@ log_writer (GLogLevelFlags log_level, + gsize n_fields, + gpointer user_data) + { +-#if !defined (G_OS_WIN32) && !defined (__ANDROID__) ++#ifdef HAVE_EXECINFO_H + if (log_level & G_LOG_LEVEL_CRITICAL) + { + void *buffer[1024]; + +base-commit: 9636aa03910165c130cd3e8ef4e9681728d6dd5a +-- +2.49.1 +