[packages/gamin] Rel 8

arekm arekm at pld-linux.org
Thu May 21 16:00:31 CEST 2026


commit 74e52278493deccc374acde23dcdecc58a46d5c8
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Thu May 21 16:00:04 2026 +0200

    Rel 8

 gam_error-prototypes.patch | 26 ++++++++++++++++++++
 gamin-implicit-decl.patch  | 61 ++++++++++++++++++++++++++++++++++++++++++++++
 gamin.spec                 |  9 +++++--
 3 files changed, 94 insertions(+), 2 deletions(-)
---
diff --git a/gamin.spec b/gamin.spec
index 2a7e97c..431ca2e 100644
--- a/gamin.spec
+++ b/gamin.spec
@@ -2,13 +2,15 @@ Summary:	Library providing the gamin File Alteration Monitor API
 Summary(pl.UTF-8):	Biblioteka dostarczająca File Alteration Monitor API gamina
 Name:		gamin
 Version:	0.1.10
-Release:	7
+Release:	8
 License:	LGPL v2.1
 Group:		Libraries
 Source0:	http://www.gnome.org/~veillard/gamin/sources/%{name}-%{version}.tar.gz
 # Source0-md5:	b4ec549e57da470c04edd5ec2876a028
 Patch0:		%{name}-glib.patch
 Patch1:		double-lock.patch
+Patch2:		gam_error-prototypes.patch
+Patch3:		%{name}-implicit-decl.patch
 URL:		http://www.gnome.org/~veillard/gamin/
 BuildRequires:	autoconf >= 2.52
 BuildRequires:	automake
@@ -96,6 +98,8 @@ Moduły języka Python dla gamina.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
 
 %build
 %{__libtoolize}
@@ -104,10 +108,11 @@ Moduły języka Python dla gamina.
 %{__autoheader}
 %{__automake}
 %configure \
+	PYTHON=%{__python} \
 	--%{?debug:en}%{!?debug:dis}able-debug
 
 %{__make} \
-	CFLAGS="%{rpmcflags} -D_GNU_SOURCE"
+	CFLAGS="%{rpmcflags} %{rpmcppflags} -D_GNU_SOURCE"
 
 %install
 rm -rf $RPM_BUILD_ROOT
diff --git a/gam_error-prototypes.patch b/gam_error-prototypes.patch
new file mode 100644
index 0000000..4970eba
--- /dev/null
+++ b/gam_error-prototypes.patch
@@ -0,0 +1,26 @@
+--- gamin-0.1.10/lib/gam_error.h.orig	2026-05-21 01:35:37.559910388 +0200
++++ gamin-0.1.10/lib/gam_error.h	2026-05-21 01:35:47.192885690 +0200
+@@ -47,6 +47,13 @@
+ 
+ int gam_errno(void);
+ 
++/* These functions are defined unconditionally in gam_error.c, so declare
++ * them outside of GAM_DEBUG_ENABLED to avoid implicit-function-declaration
++ * errors with -Werror=implicit-function-declaration.
++ */
++void	gam_error_init(void);
++void	gam_error_check(void);
++
+ #ifdef GAM_DEBUG_ENABLED
+ 
+ #ifdef GAMIN_DEBUG_API
+@@ -70,9 +77,6 @@
+                   const char* format, ...);
+ #define GAM_DEBUG if (gam_debug_active) gam_debug
+ 
+-void	gam_error_init(void);
+-void	gam_error_check(void);
+-
+ #else
+ /*
+  * no debug, redefine the macro empty content
diff --git a/gamin-implicit-decl.patch b/gamin-implicit-decl.patch
new file mode 100644
index 0000000..a76e9ed
--- /dev/null
+++ b/gamin-implicit-decl.patch
@@ -0,0 +1,61 @@
+--- gamin-0.1.10/server/gam_eq.c.orig	2026-05-21 01:36:49.197071338 +0200
++++ gamin-0.1.10/server/gam_eq.c	2026-05-21 01:38:17.486219023 +0200
+@@ -124,7 +124,7 @@
+ {
+ 	gboolean done_work = FALSE;
+ 	if (!eq)
+-		return;
++		return done_work;
+ 
+ #ifdef GAM_EQ_VERBOSE
+ 	GAM_DEBUG(DEBUG_INFO, "gam_eq: Flushing event queue for %s\n", gam_connection_get_pidname (conn));
+--- gamin-0.1.10/server/gam_listener.c.orig	2026-05-21 01:36:49.199499883 +0200
++++ gamin-0.1.10/server/gam_listener.c	2026-05-21 01:38:21.216219023 +0200
+@@ -27,6 +27,7 @@
+ #include "gam_pidname.h"
+ #ifdef ENABLE_INOTIFY
+ #include "gam_inotify.h"
++#include "gam_excludes.h"
+ #endif
+ 
+ //#define GAM_LISTENER_VERBOSE
+--- gamin-0.1.10/server/gam_inotify.c.orig	2026-05-21 01:36:49.201606678 +0200
++++ gamin-0.1.10/server/gam_inotify.c	2026-05-21 01:37:10.939552356 +0200
+@@ -30,6 +30,7 @@
+ #include "gam_server.h"
+ #include "gam_subscription.h"
+ #include "gam_inotify.h"
++#include "gam_poll_basic.h"
+ 
+ /* Transforms a inotify event to a gamin event. */
+ static GaminEventType
+--- gamin-0.1.10/server/gam_connection.c.orig	2026-05-21 01:36:49.203632952 +0200
++++ gamin-0.1.10/server/gam_connection.c	2026-05-21 01:37:23.469552356 +0200
+@@ -19,6 +19,7 @@
+ #include "gam_inotify.h"
+ #endif
+ #include "fam.h"
++#include "gam_excludes.h"
+ 
+ /************************************************************************
+  *									*
+--- gamin-0.1.10/server/gam_node.c.orig	2026-05-21 01:36:49.205999057 +0200
++++ gamin-0.1.10/server/gam_node.c	2026-05-21 01:37:31.749552356 +0200
+@@ -23,6 +23,7 @@
+ #include "gam_event.h"
+ #include "gam_node.h"
+ #include "gam_error.h"
++#include "gam_server.h"
+ 
+ /**
+  * Create a new node
+--- gamin-0.1.10/server/gam_server.c.orig	2026-05-21 01:36:49.208087672 +0200
++++ gamin-0.1.10/server/gam_server.c	2026-05-21 01:37:39.686219023 +0200
+@@ -33,6 +33,7 @@
+ #include "gam_channel.h"
+ #include "gam_subscription.h"
+ #include "gam_poll_generic.h"
++#include "gam_poll_basic.h"
+ #ifdef ENABLE_INOTIFY
+ #include "gam_inotify.h"
+ #endif
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/gamin.git/commitdiff/74e52278493deccc374acde23dcdecc58a46d5c8



More information about the pld-cvs-commit mailing list