commit:     22a6dfd5fdc6bee2addb14f79e3490946ddfa8a8
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Fri Feb 20 12:51:10 2026 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 23 01:23:31 2026 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=22a6dfd5

x11-plugins/gkrellshoot: mark as C17-only

Problem is both on gkrellm side and gkrellshoot side, true signature
of problem function pointer is
"void (*cb_button_click)(GkrellmDecalbutton *b, gpointer data)"
but it's passed everywhere inside gkrellm as "void (*func)()", and
gkrellshoot assigns to this fp a function with signature
"void (*)(GkrellmDecalbutton *)"

Can't be done in C23 without changing both packages, so settign
standard to C17 allows package to be built and used.

Closes: https://bugs.gentoo.org/944389
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Part-of: https://codeberg.org/gentoo/gentoo/pulls/103
Merges: https://codeberg.org/gentoo/gentoo/pulls/103
Signed-off-by: Sam James <sam <AT> gentoo.org>

 x11-plugins/gkrellshoot/gkrellshoot-0.4.4-r5.ebuild | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/x11-plugins/gkrellshoot/gkrellshoot-0.4.4-r5.ebuild 
b/x11-plugins/gkrellshoot/gkrellshoot-0.4.4-r5.ebuild
index 1c66ad5be749..b2940307f324 100644
--- a/x11-plugins/gkrellshoot/gkrellshoot-0.4.4-r5.ebuild
+++ b/x11-plugins/gkrellshoot/gkrellshoot-0.4.4-r5.ebuild
@@ -1,9 +1,9 @@
-# Copyright 1999-2025 Gentoo Authors
+# Copyright 1999-2026 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit gkrellm-plugin toolchain-funcs
+inherit gkrellm-plugin toolchain-funcs flag-o-matic
 
 DESCRIPTION="GKrellm2 plugin to take screen shots and lock screen"
 HOMEPAGE="http://gkrellshoot.sourceforge.net/";
@@ -27,6 +27,8 @@ PATCHES=(
 )
 
 src_compile() {
+       append-cflags -std=gnu17 #944389
+
        tc-export PKG_CONFIG
        default
 }

Reply via email to