[packages/gdm2.20] - added missing type casts, release 14

qboosh qboosh at pld-linux.org
Sat Aug 30 16:20:32 CEST 2025


commit 87dd8b6e89369e629d767ed5764edfacd86f3c75
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sat Aug 30 16:23:16 2025 +0200

    - added missing type casts, release 14

 gdm-types.patch | 33 +++++++++++++++++++++++++++++++++
 gdm2.20.spec    |  9 +++++----
 2 files changed, 38 insertions(+), 4 deletions(-)
---
diff --git a/gdm2.20.spec b/gdm2.20.spec
index 13a1703..b85203a 100644
--- a/gdm2.20.spec
+++ b/gdm2.20.spec
@@ -15,7 +15,7 @@ Summary(ru.UTF-8):	Дисплейный менеджер GNOME
 Summary(uk.UTF-8):	Дисплейний менеджер GNOME
 Name:		gdm2.20
 Version:	2.20.11
-Release:	13
+Release:	14
 License:	GPL v2+
 Group:		X11/Applications
 Source0:	http://ftp.gnome.org/pub/GNOME/sources/gdm/2.20/gdm-%{version}.tar.bz2
@@ -36,6 +36,7 @@ Patch5:		xinit-sh.patch
 Patch6:		missing-prototypes.patch
 Patch7:		gdm-format.patch
 Patch8:		gdm-includes.patch
+Patch9:		gdm-types.patch
 URL:		http://www.gnome.org/projects/gdm/
 BuildRequires:	ConsoleKit-devel
 BuildRequires:	attr-devel
@@ -186,9 +187,7 @@ Skrypt init dla GDM-a.
 %patch -P6 -p1
 %patch -P7 -p1
 %patch -P8 -p1
-
-%{__sed} -i -e 's#sr at Latn#sr at latin#' po/LINGUAS
-%{__mv} po/sr@{Latn,latin}.po
+%patch -P9 -p1
 
 %build
 %{__libtoolize}
@@ -242,6 +241,8 @@ cp -p storky/*.* $RPM_BUILD_ROOT%{_datadir}/gdm/themes/storky/
 
 touch $RPM_BUILD_ROOT/etc/security/blacklist.gdm
 
+%{__mv} $RPM_BUILD_ROOT%{_localedir}/{sr at Latn,sr at latin}
+
 %find_lang gdm --with-gnome --with-omf --all-name
 
 # Remove useless files
diff --git a/gdm-types.patch b/gdm-types.patch
new file mode 100644
index 0000000..a1fad34
--- /dev/null
+++ b/gdm-types.patch
@@ -0,0 +1,33 @@
+--- gdm-2.20.11/common/gdm-config.c.orig	2010-06-03 03:06:25.000000000 +0200
++++ gdm-2.20.11/common/gdm-config.c	2025-08-30 15:29:05.511117491 +0200
+@@ -611,7 +611,7 @@ gdm_config_free (GdmConfig *config)
+ 	 * to NULL, so if this function is called again, we
+ 	 * do not try to free the same data structures again.
+ 	 */
+-	e    = config->entries;
++	e    = (GdmConfigEntry*) config->entries;
+ 	mkf  = config->mandatory_key_file;
+ 	dkf  = config->default_key_file;
+ 	ckf  = config->custom_key_file;
+@@ -630,8 +630,8 @@ gdm_config_free (GdmConfig *config)
+ 	g_slice_free (GdmConfig, config);
+ 
+ 	if (e != NULL) {
+-		g_ptr_array_foreach (e, (GFunc)gdm_config_entry_free, NULL);
+-		g_ptr_array_free (e, TRUE);
++		g_ptr_array_foreach ((GPtrArray*)e, (GFunc)gdm_config_entry_free, NULL);
++		g_ptr_array_free ((GPtrArray*)e, TRUE);
+ 	}
+ 	if (mkf != NULL)
+ 		g_key_file_free (mkf);
+--- gdm-2.20.11/gui/gdmchooser.c.orig	2010-06-03 03:06:25.000000000 +0200
++++ gdm-2.20.11/gui/gdmchooser.c	2025-08-30 15:31:04.191850121 +0200
+@@ -261,7 +261,7 @@ gdm_chooser_host_alloc (const char *host
+ 			host->picture = gdk_pixbuf_scale_simple (img, w, h,
+ 								 GDK_INTERP_BILINEAR);
+ 		else
+-			host->picture = g_object_ref (G_OBJECT (img));
++			host->picture = (GdkPixbuf *)g_object_ref (G_OBJECT (img));
+ 	
+ 		g_object_unref (G_OBJECT (img));
+ 	} else if (defhostimg != NULL) {
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gdm2.20.git/commitdiff/87dd8b6e89369e629d767ed5764edfacd86f3c75



More information about the pld-cvs-commit mailing list