From 7a95b90bb4ec634f6837937884bd31d64d682f34 Mon Sep 17 00:00:00 2001 From: John Date: Mon, 10 Apr 2023 02:12:07 +0200 Subject: [PATCH] guitarix2: fix build with current glib --- srcpkgs/guitarix2/template | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/srcpkgs/guitarix2/template b/srcpkgs/guitarix2/template index 2862d70e7840..1aa3c491db87 100644 --- a/srcpkgs/guitarix2/template +++ b/srcpkgs/guitarix2/template @@ -36,3 +36,11 @@ if [ -n "$CROSS_BUILD" ]; then vsed -i "/features='test_loadable',/d" src/ladspa/wscript } fi + +post_patch() { + # we want to replace all occurrences of always_inline that are not in + # brackets or prefixed by _. + # defining always_inline as done by default breaks the [[gnu::always_inline]] attribute + vsed -e 's/\([^(_]\|^\)always_inline/\1guitarix_always_inline/g' \ + -i $(grep -rl '[^(_]always_inline' ./) +}