[packages/telepathy-logger] - work around bad and deficient glib "types", rel 6
baggins
baggins at pld-linux.org
Sun Sep 7 13:47:37 CEST 2025
commit 4de5bfca7f132bc74088f447c1c9b8ac463346d0
Author: Jan Rękorajski <baggins at pld-linux.org>
Date: Sun Sep 7 15:47:02 2025 +0200
- work around bad and deficient glib "types", rel 6
telepathy-logger.spec | 4 +++-
time_t.patch | 12 ++++++++++++
2 files changed, 15 insertions(+), 1 deletion(-)
---
diff --git a/telepathy-logger.spec b/telepathy-logger.spec
index ac643e3..7fc1118 100644
--- a/telepathy-logger.spec
+++ b/telepathy-logger.spec
@@ -6,12 +6,13 @@ Summary: Logging service for Telepathy
Summary(pl.UTF-8): Usługa logowania dla Telepathy
Name: telepathy-logger
Version: 0.8.2
-Release: 5
+Release: 6
License: LGPL v2.1+
Group: Applications
Source0: https://telepathy.freedesktop.org/releases/telepathy-logger/%{name}-%{version}.tar.bz2
# Source0-md5: c2f6a31c76cbdf8790500cf4f872ba71
Patch0: build.patch
+Patch1: time_t.patch
URL: https://telepathy.freedesktop.org/components/telepathy-logger/
BuildRequires: autoconf >= 2.66
BuildRequires: automake >= 1:1.9
@@ -106,6 +107,7 @@ Dokumentacja API biblioteki telepathy-logger.
%prep
%setup -q
%patch -P0 -p1
+%patch -P1 -p1
%build
%{__libtoolize}
diff --git a/time_t.patch b/time_t.patch
new file mode 100644
index 0000000..2562217
--- /dev/null
+++ b/time_t.patch
@@ -0,0 +1,12 @@
+--- /home/users/baggins/rpm/BUILD/telepathy-logger-0.8.2-build/telepathy-logger-0.8.2/src/telepathy-logger.c.orig 2015-04-17 17:04:17.000000000 +0200
++++ /home/users/baggins/rpm/BUILD/telepathy-logger-0.8.2-build/telepathy-logger-0.8.2/src/telepathy-logger.c 2025-09-07 15:45:50.849995802 +0200
+@@ -67,7 +67,8 @@
+ struct tm tm;
+
+ g_get_current_time (&now);
+- localtime_r (&(now.tv_sec), &tm);
++ time_t sec = now.tv_sec;
++ localtime_r (&sec, &tm);
+ strftime (now_str, 32, "%Y-%m-%d %H:%M:%S", &tm);
+ tmp = g_strdup_printf ("%s.%06ld: %s",
+ now_str, now.tv_usec, message);
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/telepathy-logger.git/commitdiff/4de5bfca7f132bc74088f447c1c9b8ac463346d0
More information about the pld-cvs-commit
mailing list