commit:     7c9b09b9a09d9036c68a806457fb9badc5a182da
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Thu Jan 23 18:12:46 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Mon Feb 10 08:58:56 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c9b09b9

net-p2p/gtk-gnutella: pin C version to gnu17

This package freely casts between pointers to gbooleans and internally
defined bools (in this case, ints). Defining off internal definition of
bool for C23 and then casting everywhere may cause serious problems in
interoperability over the network. I feel the best would be to pin
language version.

Closes: https://bugs.gentoo.org/944982
Bug: https://bugs.gentoo.org/879745
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40277
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-p2p/gtk-gnutella/gtk-gnutella-1.2.2-r1.ebuild | 8 ++++++--
 net-p2p/gtk-gnutella/gtk-gnutella-1.2.3.ebuild    | 8 ++++++--
 2 files changed, 12 insertions(+), 4 deletions(-)

diff --git a/net-p2p/gtk-gnutella/gtk-gnutella-1.2.2-r1.ebuild 
b/net-p2p/gtk-gnutella/gtk-gnutella-1.2.2-r1.ebuild
index a5d6dc676a6f..bb326c940958 100644
--- a/net-p2p/gtk-gnutella/gtk-gnutella-1.2.2-r1.ebuild
+++ b/net-p2p/gtk-gnutella/gtk-gnutella-1.2.2-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2023 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -9,8 +9,8 @@ DESCRIPTION="GTK+ Gnutella client"
 HOMEPAGE="https://gtk-gnutella.sourceforge.net/";
 SRC_URI="https://github.com/gtk-gnutella/gtk-gnutella/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 
-SLOT="0"
 LICENSE="CC-BY-SA-4.0 GPL-2"
+SLOT="0"
 KEYWORDS="amd64 ppc ppc64 x86"
 
 IUSE="nls dbus ssl +gtk"
@@ -28,6 +28,10 @@ BDEPEND="virtual/pkgconfig"
 
 src_prepare() {
        filter-lto
+       # bug https://bugs.gentoo.org/944982
+       # we have custom bool we interoperate with gboolean
+       append-cflags -std=gnu17
+
        strip-linguas -i po
 
        echo "# Gentoo-selected LINGUAS" > po/LINGUAS

diff --git a/net-p2p/gtk-gnutella/gtk-gnutella-1.2.3.ebuild 
b/net-p2p/gtk-gnutella/gtk-gnutella-1.2.3.ebuild
index 5b8114f35cac..d7644e1c7a42 100644
--- a/net-p2p/gtk-gnutella/gtk-gnutella-1.2.3.ebuild
+++ b/net-p2p/gtk-gnutella/gtk-gnutella-1.2.3.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
@@ -9,8 +9,8 @@ DESCRIPTION="GTK+ Gnutella client"
 HOMEPAGE="https://gtk-gnutella.sourceforge.io/";
 SRC_URI="https://github.com/gtk-gnutella/gtk-gnutella/archive/v${PV}.tar.gz -> 
${P}.tar.gz"
 
-SLOT="0"
 LICENSE="CC-BY-SA-4.0 GPL-2"
+SLOT="0"
 KEYWORDS="~amd64 ~ppc ~ppc64 ~x86"
 
 IUSE="nls dbus ssl +gtk"
@@ -28,6 +28,10 @@ BDEPEND="virtual/pkgconfig"
 
 src_prepare() {
        filter-lto
+       # bug https://bugs.gentoo.org/944982
+       # we have custom bool we interoperate with gboolean
+       append-cflags -std=gnu17
+
        strip-linguas -i po
 
        echo "# Gentoo-selected LINGUAS" > po/LINGUAS

Reply via email to