[packages/vinagre] - fix missing types to conform to c99

baggins baggins at pld-linux.org
Sun Aug 10 14:32:37 CEST 2025


commit a79fe4b264900f293f1498fe219893c026f08b81
Author: Jan Rękorajski <baggins at pld-linux.org>
Date:   Sun Aug 10 16:32:13 2025 +0200

    - fix missing types to conform to c99

 c99.patch    | 54 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 vinagre.spec |  2 ++
 2 files changed, 56 insertions(+)
---
diff --git a/vinagre.spec b/vinagre.spec
index 0378589..60c5ac0 100644
--- a/vinagre.spec
+++ b/vinagre.spec
@@ -14,6 +14,7 @@ Group:		X11/Applications
 Source0:	https://download.gnome.org/sources/vinagre/3.22/%{name}-%{version}.tar.xz
 # Source0-md5:	451554ddf46636105cd5f0330e98d254
 Patch0:		%{name}-freerdp.patch
+Patch1:		c99.patch
 URL:		https://wiki.gnome.org/Apps/Vinagre
 BuildRequires:	appstream-glib-devel
 BuildRequires:	autoconf >= 2.64
@@ -67,6 +68,7 @@ Vinagre to klient VNC dla środowiska graficznego GNOME.
 %prep
 %setup -q
 %patch -P0 -p1
+%patch -P1 -p1
 
 %build
 %{__intltoolize}
diff --git a/c99.patch b/c99.patch
new file mode 100644
index 0000000..63598fc
--- /dev/null
+++ b/c99.patch
@@ -0,0 +1,54 @@
+Add missing GType types, to avoid defaulting to int.  For C99 compatibility.
+
+diff --git a/plugins/rdp/vinagre-rdp-plugin.c b/plugins/rdp/vinagre-rdp-plugin.c
+index 475110242a3c9b8b..30531098ea5451c2 100644
+--- a/plugins/rdp/vinagre-rdp-plugin.c
++++ b/plugins/rdp/vinagre-rdp-plugin.c
+@@ -234,7 +234,7 @@ __attribute__((constructor)) void
+ rdp_register_types (void)
+ {
+   g_type_init ();
+-  volatile dontoptimiseaway = vinagre_rdp_plugin_get_type ();
++  volatile GType dontoptimiseaway = vinagre_rdp_plugin_get_type ();
+ }
+ 
+ /* vim: set ts=8: */
+diff --git a/plugins/spice/vinagre-spice-plugin.c b/plugins/spice/vinagre-spice-plugin.c
+index 87377eff75c6c625..6c2c951beb28e65f 100644
+--- a/plugins/spice/vinagre-spice-plugin.c
++++ b/plugins/spice/vinagre-spice-plugin.c
+@@ -368,7 +368,7 @@ __attribute__((constructor)) void
+ spice_register_types (void)
+ {
+   g_type_init ();
+-  volatile dontoptimiseaway = vinagre_spice_plugin_get_type ();
++  volatile GType dontoptimiseaway = vinagre_spice_plugin_get_type ();
+ }
+ 
+ /* vim: set ts=8: */
+diff --git a/plugins/ssh/vinagre-ssh-plugin.c b/plugins/ssh/vinagre-ssh-plugin.c
+index 38306d51815c8fb1..1563720ff88b129a 100644
+--- a/plugins/ssh/vinagre-ssh-plugin.c
++++ b/plugins/ssh/vinagre-ssh-plugin.c
+@@ -199,7 +199,7 @@ __attribute__((constructor)) void
+ ssh_register_types (void)
+ {
+   g_type_init ();
+-  volatile dontoptimiseaway = vinagre_ssh_plugin_get_type ();
++  volatile GType dontoptimiseaway = vinagre_ssh_plugin_get_type ();
+ }
+ 
+ /* vim: set ts=8: */
+diff --git a/plugins/vnc/vinagre-vnc-plugin.c b/plugins/vnc/vinagre-vnc-plugin.c
+index d77140f806407ef6..b0100d77aca3b121 100644
+--- a/plugins/vnc/vinagre-vnc-plugin.c
++++ b/plugins/vnc/vinagre-vnc-plugin.c
+@@ -431,7 +431,7 @@ __attribute__((constructor)) void
+ vnc_register_types (void)
+ {
+   g_type_init ();
+-  volatile dontoptimiseaway = vinagre_vnc_plugin_get_type ();
++  volatile GType dontoptimiseaway = vinagre_vnc_plugin_get_type ();
+ }
+ 
+ /* vim: set ts=8: */
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/vinagre.git/commitdiff/a79fe4b264900f293f1498fe219893c026f08b81



More information about the pld-cvs-commit mailing list