[packages/dotnet-gtk-sharp2] Rel 3

arekm arekm at pld-linux.org
Thu May 21 15:18:44 CEST 2026


commit 101fe173ad7325f8e3ae856a33c4909e37bd5753
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 15:18:28 2026 +0200

    Rel 3

 dotnet-gtk-sharp2-int-conversion.patch | 17 +++++++++++++++++
 dotnet-gtk-sharp2-mint.patch           | 13 ++++++-------
 dotnet-gtk-sharp2.spec                 |  4 +++-
 3 files changed, 26 insertions(+), 8 deletions(-)
---
diff --git a/dotnet-gtk-sharp2.spec b/dotnet-gtk-sharp2.spec
index 78d2225..5bb5c1a 100644
--- a/dotnet-gtk-sharp2.spec
+++ b/dotnet-gtk-sharp2.spec
@@ -2,7 +2,7 @@ Summary:	.NET language bindings for GTK+
 Summary(pl.UTF-8):	Wiązania GTK+ dla .NET
 Name:		dotnet-gtk-sharp2
 Version:	2.12.45
-Release:	2
+Release:	3
 License:	LGPL v2
 Group:		Libraries
 # latest downloads summary at http://download.mono-project.com/sources-stable/
@@ -10,6 +10,7 @@ Source0:	http://download.mono-project.com/sources/gtk-sharp212/gtk-sharp-%{versi
 # Source0-md5:	48cdd0292229eba58b403930032fb766
 Patch0:		%{name}-destdir.patch
 Patch1:		%{name}-mint.patch
+Patch2:		%{name}-int-conversion.patch
 URL:		http://www.mono-project.com/GtkSharp
 BuildRequires:	atk-devel
 BuildRequires:	autoconf
@@ -73,6 +74,7 @@ Biblioteki statyczne Gtk# 2.
 %setup -q -n gtk-sharp-%{version}
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 %{__libtoolize}
diff --git a/dotnet-gtk-sharp2-int-conversion.patch b/dotnet-gtk-sharp2-int-conversion.patch
new file mode 100644
index 0000000..7061cf0
--- /dev/null
+++ b/dotnet-gtk-sharp2-int-conversion.patch
@@ -0,0 +1,17 @@
+GCC 14+ rejects implicit int->pointer conversion (-Wint-conversion is an error).
+windowmanager.c stores X window IDs (longs returned by gdk_property_get) into a
+gpointer array; add the explicit cast and use %p in the matching g_message.
+
+--- gtk-sharp-2.12.45/gdk/glue/windowmanager.c.orig	2026-05-21 01:30:00.000000000 +0200
++++ gtk-sharp-2.12.45/gdk/glue/windowmanager.c	2026-05-21 01:30:00.000000000 +0200
+@@ -110,8 +110,8 @@
+ 	list = g_malloc (*count * sizeof (gpointer));
+ 	/* Put all of the windows into a GList to return */
+ 	for (i = 0; i < *count; i ++) {
+-		list [i] = data [i];
+-		g_message ("WinID: %d", list [i]);
++		list [i] = (gpointer) (intptr_t) data [i];
++		g_message ("WinID: %p", list [i]);
+ 	}
+
+ 	g_free (data);
diff --git a/dotnet-gtk-sharp2-mint.patch b/dotnet-gtk-sharp2-mint.patch
index 9717a05..ee150db 100644
--- a/dotnet-gtk-sharp2-mint.patch
+++ b/dotnet-gtk-sharp2-mint.patch
@@ -1,15 +1,14 @@
-diff -urN gtk-sharp-2.12.10/configure.in gtk-sharp-2.12.10.new//configure.in
---- gtk-sharp-2.12.10/configure.in	2010-03-08 22:32:31.000000000 +0100
-+++ gtk-sharp-2.12.10.new//configure.in	2010-03-16 19:30:35.090746038 +0100
-@@ -112,6 +112,7 @@
- 
+--- gtk-sharp-2.12.45/configure.in.orig	2026-05-21 01:18:42.521388608 +0200
++++ gtk-sharp-2.12.45/configure.in	2026-05-21 01:18:42.633351580 +0200
+@@ -108,6 +108,7 @@
  MONO_REQUIRED_VERSION=1.0
+ FIRST_MONO_VERSION_WITH_NET_4_6_SUPPORT=4.4
  PKG_CHECK_MODULES(MONO_DEPENDENCY, mono >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
 +PKG_CHECK_MODULES(MINT_DEPENDENCY, mint >= $MONO_REQUIRED_VERSION, has_mint=true, has_mint=false)
  if test "x$has_mono" = "xfalse" ; then
  	PKG_CHECK_MODULES(MONO_DEPENDENCY, mono-2 >= $MONO_REQUIRED_VERSION, has_mono=true, has_mono=false)
- fi
-@@ -150,6 +151,20 @@
+ 	if test "x$has_mono" = "xtrue" ; then
+@@ -155,6 +156,20 @@
  else
  	enable_dotnet=no
  fi
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dotnet-gtk-sharp2.git/commitdiff/101fe173ad7325f8e3ae856a33c4909e37bd5753



More information about the pld-cvs-commit mailing list