Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package libservicelog for openSUSE:Factory checked in at 2026-11-27 19:44:46 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/libservicelog (Old) and /work/SRC/openSUSE:Factory/.libservicelog.new.1340718 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "libservicelog" Fri Nov 27 19:44:46 2026 rev:34 rq:1401134 version:1.1.20 Changes: -------- --- /work/SRC/openSUSE:Factory/libservicelog/libservicelog.changes 2026-01-23 17:34:31.589543251 +0100 +++ /work/SRC/openSUSE:Factory/.libservicelog.new.1340718/libservicelog.changes 2026-11-27 19:48:57.896878868 +0100 @@ -1,0 +2,16 @@ +Fri Nov 27 13:22:26 UTC 2026 - Andrea Manzini <[email protected]> + +- Update to version 1.1.20: + * Drop libservicelog-Fix-timezone-handling-in-servicelog-ev.patch + (merged upstream). + * Fix buffer size underflow leading to stack overflow in + sl_printf(). + * Do not wrap a line already terminated by newline in + sl_printf(). + * Handle zero-sized buffers in strNcpy(). +- Modernize spec file: + * Remove obsolete Group tags. + * Use pkgconfig(sqlite3) BuildRequires. + * Use %make_build macro. + +------------------------------------------------------------------- Old: ---- libservicelog-1.1.19.tar.gz libservicelog-Fix-timezone-handling-in-servicelog-ev.patch New: ---- libservicelog-1.1.20.tar.gz ----------(Old B)---------- Old:- Update to version 1.1.20: * Drop libservicelog-Fix-timezone-handling-in-servicelog-ev.patch (merged upstream). ----------(Old E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ libservicelog.spec ++++++ --- /var/tmp/diff_new_pack.IcFS6A/_old 2026-11-27 19:48:58.884920623 +0100 +++ /var/tmp/diff_new_pack.IcFS6A/_new 2026-11-27 19:48:58.888920792 +0100 @@ -23,11 +23,10 @@ %global system_user_pkg 1 %endif Name: libservicelog -Version: 1.1.19 +Version: 1.1.20 Release: 0 Summary: Servicelog Database and Library License: LGPL-2.0-or-later -Group: Development/Libraries/C and C++ URL: https://github.com/power-ras/libservicelog/ #Git-Clone: https://github.com/power-ras/libservicelog.git #Git-Web: https://github.com/power-ras/libservicelog/ @@ -35,13 +34,12 @@ Source1: baselibs.conf Source2: libservicelog-rpmlintrc Source3: system-group-service.conf -Patch1: libservicelog-Fix-timezone-handling-in-servicelog-ev.patch BuildRequires: autoconf BuildRequires: automake BuildRequires: librtas-devel BuildRequires: libtool BuildRequires: pkgconfig -BuildRequires: sqlite3-devel +BuildRequires: pkgconfig(sqlite3) ExclusiveArch: ppc ppc64 ppc64le %if %{system_user_pkg} Requires(pre): sysuser-tools @@ -58,7 +56,6 @@ %package -n %{lname} Summary: Servicelog Database and Library -Group: System/Libraries Requires: %{name} %description -n %{lname} @@ -70,10 +67,9 @@ %package devel Summary: Development files for libservicelog -Group: Development/Libraries/C and C++ Requires: %{lname} = %{version} Requires: glibc-devel -Requires: sqlite3-devel +Requires: pkgconfig(sqlite3) %description devel Header files for building with libservicelog. @@ -84,7 +80,7 @@ %build autoreconf -fiv %configure --disable-static -make %{?_smp_mflags} +%make_build %if %{system_user_pkg} %sysusers_generate_pre %{SOURCE3} libservicelog system-group-service.conf %else @@ -101,7 +97,6 @@ %endif %pre -f libservicelog.pre - %post -n %{lname} -p /sbin/ldconfig %postun -n %{lname} -p /sbin/ldconfig ++++++ libservicelog-1.1.19.tar.gz -> libservicelog-1.1.20.tar.gz ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libservicelog-1.1.19/configure.ac new/libservicelog-1.1.20/configure.ac --- old/libservicelog-1.1.19/configure.ac 2021-05-26 09:56:33.000000000 +0200 +++ new/libservicelog-1.1.20/configure.ac 2026-10-29 16:03:53.000000000 +0100 @@ -1,7 +1,7 @@ # -*- Autoconf -*- # Process this file with autoconf to produce a configure script. -m4_define([ppu_version], 1.1.19) +m4_define([ppu_version], 1.1.20) AC_PREREQ(2.69) AC_INIT([libservicelog], ppu_version, [[email protected]]) @@ -16,7 +16,7 @@ GENERIC_PACKAGE_NAME=servicelog GENERIC_MAJOR_VERSION=1 GENERIC_MINOR_VERSION=1 -GENERIC_MICRO_VERSION=19 +GENERIC_MICRO_VERSION=20 GENERIC_API_VERSION=$GENERIC_MAJOR_VERSION AC_SUBST(GENERIC_API_VERSION) diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libservicelog-1.1.19/libservicelog.spec.in new/libservicelog-1.1.20/libservicelog.spec.in --- old/libservicelog-1.1.19/libservicelog.spec.in 2021-05-26 09:56:33.000000000 +0200 +++ new/libservicelog-1.1.20/libservicelog.spec.in 2026-10-29 16:03:53.000000000 +0100 @@ -13,6 +13,7 @@ ExclusiveArch: ppc ppc64 ppc64le BuildRequires: sqlite-devel bison flex librtas-devel libtool automake Requires(pre): /usr/sbin/groupadd +Provides: group(service) %description The libservicelog package contains a library to create and maintain a @@ -45,6 +46,7 @@ %install %{__rm} -rf $RPM_BUILD_ROOT %{__make} install DESTDIR=$RPM_BUILD_ROOT +%{__rm} -f $RPM_BUILD_ROOT%{_libdir}/*.la %clean %{__rm} -rf $RPM_BUILD_ROOT @@ -59,8 +61,6 @@ %files %defattr(-,root,root,-) %doc COPYING AUTHORS README -%exclude %{_libdir}/*.la -%{_libdir}/libservicelog-@[email protected].* %{_libdir}/libservicelog-*.so.* %attr( 754, root, service ) %dir /var/lib/servicelog %config(noreplace) %verify(not md5 size mtime) %attr(644,root,service) /var/lib/servicelog/servicelog.db @@ -69,10 +69,17 @@ %defattr(-,root,root,-) %{_libdir}/*.so %{_includedir}/servicelog-1 -%{_libdir}/*.la %{_libdir}/pkgconfig/servicelog-1.pc %changelog +* Thu Oct 29 2026 Sourabh Jain <[email protected]> - 1.1.20 +- v29_compat: handle zero-sized buffers in strNcpy +- libservicelog: provide group(service) capability +- spec: stop packaging .la files +- sl_printf: don't wrap a line already terminated by newline +- sl_printf: fix buffer size underflow leading to stack overflow +- libservicelog: fix timezone handling in servicelog event parsing + * Wed May 26 2021 Vasant Hegde <hegdevasant at linux.vnet.ibm.com> - 1.1.19 - Add Travis configuration - Fix output alignment issue diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libservicelog-1.1.19/src/event.c new/libservicelog-1.1.20/src/event.c --- old/libservicelog-1.1.19/src/event.c 2021-05-26 09:56:33.000000000 +0200 +++ new/libservicelog-1.1.20/src/event.c 2026-10-29 16:03:53.000000000 +0100 @@ -620,17 +620,17 @@ else if (!strcmp(name, "time_logged")) { strptime((char*)sqlite3_column_text(stmt, i), "%Y-%m-%d %T", &t); - e->time_logged = mktime(&t); + e->time_logged = timegm(&t); } else if (!strcmp(name, "time_event")) { strptime((char*)sqlite3_column_text(stmt, i), "%Y-%m-%d %T", &t); - e->time_event = mktime(&t); + e->time_event = timegm(&t); } else if (!strcmp(name, "time_last_update")) { strptime((char*)sqlite3_column_text(stmt, i), "%Y-%m-%d %T", &t); - e->time_last_update = mktime(&t); + e->time_last_update = timegm(&t); } else if (!strcmp(name, "type")) e->type = sqlite3_column_int(stmt, i); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libservicelog-1.1.19/src/servicelog.c new/libservicelog-1.1.20/src/servicelog.c --- old/libservicelog-1.1.19/src/servicelog.c 2021-05-26 09:56:33.000000000 +0200 +++ new/libservicelog-1.1.20/src/servicelog.c 2026-10-29 16:03:53.000000000 +0100 @@ -279,7 +279,6 @@ if (newline != NULL) { prnt_len = newline - &tmpbuf[offset] + 1; - size -= buf_offset; snprintf(buf + buf_offset, prnt_len, "%s", &tmpbuf[offset]); buf_offset = strlen(buf); @@ -290,7 +289,7 @@ } } - if (width >= sl_print_width) { + if (newline == NULL && width >= sl_print_width) { if (brkpt == NULL) { /* won't fit on one line, break across lines */ prnt_len = width - line_offset + 1; @@ -299,7 +298,6 @@ } /* print up to the last brkpt */ - size -= buf_offset; snprintf(buf + buf_offset, prnt_len, "%s", &tmpbuf[offset]); buf_offset = strlen(buf); buf[buf_offset++] = '\n'; @@ -314,7 +312,7 @@ } } - size -= buf_offset; + size = sizeof(buf) - buf_offset; prnt_len = snprintf(buf + buf_offset, size, "%s", &tmpbuf[offset]); line_offset += prnt_len; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/libservicelog-1.1.19/src/v29_compat.c new/libservicelog-1.1.20/src/v29_compat.c --- old/libservicelog-1.1.19/src/v29_compat.c 2021-05-26 09:56:33.000000000 +0200 +++ new/libservicelog-1.1.20/src/v29_compat.c 2026-10-29 16:03:53.000000000 +0100 @@ -44,8 +44,11 @@ static void strNcpy(char *dest, const char *src, size_t n) { - strncpy(dest, src, n); - dest[n-1] = '\0'; + if (n == 0) + return; + + strncpy(dest, src, n - 1); + dest[n - 1] = '\0'; } static void
