[packages/ConsoleKit] - fix wrong usage of gzFile typedef; release 4

qboosh qboosh at pld-linux.org
Fri May 30 21:56:49 CEST 2025


commit c496aafda4da12a11286acfeb803153e5f59a47e
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri May 30 21:52:45 2025 +0200

    - fix wrong usage of gzFile typedef; release 4

 ConsoleKit-gzip.patch | 20 ++++++++++++++++++++
 ConsoleKit.spec       |  4 +++-
 2 files changed, 23 insertions(+), 1 deletion(-)
---
diff --git a/ConsoleKit.spec b/ConsoleKit.spec
index 409fd2b..8dd2143 100644
--- a/ConsoleKit.spec
+++ b/ConsoleKit.spec
@@ -2,12 +2,13 @@ Summary:	ConsoleKit for PolicyKit
 Summary(pl.UTF-8):	ConsoleKit dla PolicyKit
 Name:		ConsoleKit
 Version:	0.4.6
-Release:	3
+Release:	4
 License:	GPL v2+
 Group:		Libraries
 Source0:	http://www.freedesktop.org/software/ConsoleKit/dist/%{name}-%{version}.tar.xz
 # Source0-md5:	611792b4d616253a5bdec9175f8b7678
 Source1:	%{name}.tmpfiles
+Patch0:		%{name}-gzip.patch
 URL:		http://www.freedesktop.org/wiki/Software/ConsoleKit
 BuildRequires:	dbus-glib-devel >= 0.82
 BuildRequires:	docbook-dtd412-xml
@@ -117,6 +118,7 @@ Narzędzia obsługujące sesje X11 dla pakietu ConsoleKit.
 
 %prep
 %setup -q
+%patch -P0 -p1
 
 %build
 %{__libtoolize}
diff --git a/ConsoleKit-gzip.patch b/ConsoleKit-gzip.patch
new file mode 100644
index 0000000..144c707
--- /dev/null
+++ b/ConsoleKit-gzip.patch
@@ -0,0 +1,20 @@
+--- ConsoleKit-0.4.6/tools/ck-history.c.orig	2013-07-19 06:15:28.000000000 +0200
++++ ConsoleKit-0.4.6/tools/ck-history.c	2025-05-30 21:48:28.595596284 +0200
+@@ -76,7 +76,7 @@ parse_event_line (const char *line)
+ }
+ 
+ static gboolean
+-process_log_gzstream (gzFile   *fstream,
++process_log_gzstream (gzFile   fstream,
+                       GTimeVal *since)
+ {
+         char     line[MAX_LINE_LEN];
+@@ -150,7 +150,7 @@ process_log_file (const char *filename,
+         gboolean ret;
+ 
+         if (g_str_has_suffix (filename, ".gz")) {
+-                gzFile *f;
++                gzFile f;
+                 f = gzopen (filename, "r");
+                 if (f == NULL) {
+                         int         errnum;
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ConsoleKit.git/commitdiff/c496aafda4da12a11286acfeb803153e5f59a47e



More information about the pld-cvs-commit mailing list