Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package wtmpdb for openSUSE:Factory checked 
in at 2023-08-28 17:10:52
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/wtmpdb (Old)
 and      /work/SRC/openSUSE:Factory/.wtmpdb.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "wtmpdb"

Mon Aug 28 17:10:52 2023 rev:9 rq:1105296 version:0.9.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/wtmpdb/wtmpdb.changes    2023-08-17 
19:42:41.514693585 +0200
+++ /work/SRC/openSUSE:Factory/.wtmpdb.new.1766/wtmpdb.changes  2023-08-28 
17:10:53.295327736 +0200
@@ -1,0 +2,7 @@
+Tue Aug 22 13:47:10 UTC 2023 - Thorsten Kukuk <ku...@suse.com>
+
+- Fix last.1 manual page reference
+- Update to version 0.9.1
+  - Fix printf format specifier on 32bit
+
+-------------------------------------------------------------------

Old:
----
  wtmpdb-0.9.0.tar.xz

New:
----
  wtmpdb-0.9.1.tar.xz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ wtmpdb.spec ++++++
--- /var/tmp/diff_new_pack.ImEb04/_old  2023-08-28 17:10:54.343365373 +0200
+++ /var/tmp/diff_new_pack.ImEb04/_new  2023-08-28 17:10:54.347365517 +0200
@@ -18,7 +18,7 @@
 
 %define lname   libwtmpdb0
 Name:           wtmpdb
-Version:        0.9.0
+Version:        0.9.1
 Release:        0
 Summary:        Database for recording the last logged in users and system 
reboots
 License:        BSD-2-Clause
@@ -67,7 +67,7 @@
 %install
 %meson_install
 mkdir -p %{buildroot}%{_mandir}/man1
-echo ".so wtmpdb.8" > %{buildroot}%{_mandir}/man1/last.1
+echo ".so man8/wtmpdb.8" > %{buildroot}%{_mandir}/man1/last.1
 
 %check
 %meson_test

++++++ wtmpdb-0.9.0.tar.xz -> wtmpdb-0.9.1.tar.xz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wtmpdb-0.9.0/.gitignore new/wtmpdb-0.9.1/.gitignore
--- old/wtmpdb-0.9.0/.gitignore 1970-01-01 01:00:00.000000000 +0100
+++ new/wtmpdb-0.9.1/.gitignore 2023-08-22 15:46:10.000000000 +0200
@@ -0,0 +1,19 @@
+# Object files
+*.o
+*.ko
+*.obj
+*.elf
+
+# Libraries
+*.lib
+*.a
+*.la
+*.lo
+
+# Shared objects
+*.so
+*.so.*
+
+# Misc
+build
+*~
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wtmpdb-0.9.0/meson.build new/wtmpdb-0.9.1/meson.build
--- old/wtmpdb-0.9.0/meson.build        2023-08-14 17:03:04.000000000 +0200
+++ new/wtmpdb-0.9.1/meson.build        2023-08-22 15:46:10.000000000 +0200
@@ -1,7 +1,7 @@
 project(
   'wtmpdb',
   'c',
-  meson_version : '>= 0.53.0',
+  meson_version : '>= 0.61.0',
   default_options : [
                   'prefix=/usr',
                   'sysconfdir=/etc',
@@ -11,7 +11,7 @@
                  'b_pie=true',
                  'warning_level=3',],
   license : ['BSD-2-Clause',],
-  version : '0.9.0',
+  version : '0.9.1',
 )
 
 conf = configuration_data()
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/wtmpdb-0.9.0/src/wtmpdb.c 
new/wtmpdb-0.9.1/src/wtmpdb.c
--- old/wtmpdb-0.9.0/src/wtmpdb.c       2023-08-14 17:03:04.000000000 +0200
+++ new/wtmpdb-0.9.1/src/wtmpdb.c       2023-08-22 15:46:10.000000000 +0200
@@ -36,6 +36,7 @@
 #include <limits.h>
 #include <getopt.h>
 #include <netdb.h>
+#include <inttypes.h>
 #include <arpa/inet.h>
 #include <sys/utsname.h>
 
@@ -186,16 +187,16 @@
 calc_time_length(char *dst, size_t dstlen, uint64_t start, uint64_t stop)
 {
   uint64_t secs = (stop - start)/USEC_PER_SEC;
-  uint64_t mins  = (secs / 60) % 60;
-  uint64_t hours = (secs / 3600) % 24;
+  int mins  = (secs / 60) % 60;
+  int hours = (secs / 3600) % 24;
   uint64_t days  = secs / 86400;
 
   if (days)
-    snprintf (dst, dstlen, "(%ld+%02ld:%02ld)", days, hours, mins);
+    snprintf (dst, dstlen, "(%" PRId64 "+%02d:%02d)", days, hours, mins);
   else if (hours)
-    snprintf (dst, dstlen, " (%02ld:%02ld)", hours, mins);
+    snprintf (dst, dstlen, " (%02d:%02d)", hours, mins);
   else
-    snprintf (dst, dstlen, " (00:%02ld)", mins);
+    snprintf (dst, dstlen, " (00:%02d)", mins);
 }
 
 static void

Reply via email to