Hello community, here is the log from the commit of package liblogging for openSUSE:Factory checked in at 2014-03-05 15:37:44 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/liblogging (Old) and /work/SRC/openSUSE:Factory/.liblogging.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "liblogging" Changes: -------- --- /work/SRC/openSUSE:Factory/liblogging/liblogging.changes 2014-02-11 11:39:46.000000000 +0100 +++ /work/SRC/openSUSE:Factory/.liblogging.new/liblogging.changes 2014-03-05 15:37:47.000000000 +0100 @@ -1,0 +2,11 @@ +Mon Mar 3 22:41:28 UTC 2014 - [email protected] + +- update to liblogging 1.0.2: + * API of liblogging-stdlog is now feature-complete with multiple + channels, signal-safeness, and logging drivers for syslog, the + systemd journal, unix sockets and files. +- add libsystemd-journal dependency for journal driver +- add python-docutils dependencies for rst2man +- add liblogging-1.0.2-fix-SLE-va_list.patch to fix build on SLE + +------------------------------------------------------------------- Old: ---- liblogging-1.0.1.tar.gz New: ---- liblogging-1.0.2-fix-SLE-va_list.patch liblogging-1.0.2.tar.gz ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ liblogging.spec ++++++ --- /var/tmp/diff_new_pack.tb9InE/_old 2014-03-05 15:37:48.000000000 +0100 +++ /var/tmp/diff_new_pack.tb9InE/_new 2014-03-05 15:37:48.000000000 +0100 @@ -16,20 +16,32 @@ # +%define with_systemd_journal 0%{?suse_version} >= 1310 +%define with_rst2man 0%{?suse_version} >= 1230 %define sover 0 - Name: liblogging -Version: 1.0.1 +Version: 1.0.2 Release: 0 Summary: An easy to use logging library License: BSD-2-Clause Group: System Environment/Libraries Url: http://www.liblogging.org/ Source0: http://download.rsyslog.com/liblogging/%{name}-%{version}.tar.gz -BuildRoot: %{_tmppath}/%{name}-%{version}-build +Patch1: liblogging-1.0.2-fix-SLE-va_list.patch BuildRequires: chrpath BuildRequires: dos2unix -BuildRequires: pkg-config +BuildRoot: %{_tmppath}/%{name}-%{version}-build +%if %{?sles_version} && %{?sles_version} <= 11 +BuildRequires: pkg-config >= 0.9.0 +%else +BuildRequires: pkgconfig(pkg-config) >= 0.9.0 +%endif +%if %{with_rst2man} +BuildRequires: python-docutils +%endif +%if %{with_systemd_journal} +BuildRequires: pkgconfig(libsystemd-journal) >= 197 +%endif %description Liblogging is an easy to use logging library. @@ -37,13 +49,13 @@ It contains the Libstdlog component is used for standard logging (syslog replacement) purposes via multiple channels. -%package -n %name%sover +%package -n %{name}%{sover} Summary: An easy to use logging library Group: System Environment/Libraries Requires(post): /sbin/ldconfig Requires(postun): /sbin/ldconfig -%description -n %name%sover +%description -n %{name}%{sover} Liblogging is an easy to use logging library. It contains the Libstdlog component is used for standard logging @@ -60,30 +72,44 @@ %prep %setup -q +%patch1 -p1 %build %configure \ --disable-static \ - --enable-rfc3195 -make %{?_smp_mflags:%{_smp_mflags}} V=1 + --enable-rfc3195 \ +%if %{with_systemd_journal} + --enable-journal \ +%else + --disable-journal \ +%endif +%if %{with_rst2man} + --disable-cached-man-pages \ +%else + --enable-cached-man-pages \ +%endif + +make %{?_smp_mflags:%{?_smp_mflags}} V=1 dos2unix AUTHORS ChangeLog COPYING README %install -%makeinstall -%{__rm} -v %{buildroot}/%{_libdir}/liblogging-rfc3195.la -%{__rm} -v %{buildroot}/%{_libdir}/liblogging-stdlog.la +make DESTDIR=%{buildroot} install %{?_smp_mflags} +rm -v %{buildroot}/%{_libdir}/liblogging-rfc3195.la +rm -v %{buildroot}/%{_libdir}/liblogging-stdlog.la chrpath -d %{buildroot}/%{_libdir}/liblogging-stdlog.so.0.0.0 -%{__rm} -v rfc3195/doc/html/Makefile* +rm -v rfc3195/doc/html/Makefile* -%post -n %name%sover -p /sbin/ldconfig +%post -n %{name}%{sover} -p /sbin/ldconfig -%postun -n %name%sover -p /sbin/ldconfig +%postun -n %{name}%{sover} -p /sbin/ldconfig -%files -n %name%sover +%files -n %{name}%{sover} %defattr(-,root,root) %doc COPYING %{_libdir}/liblogging-rfc3195.so.* %{_libdir}/liblogging-stdlog.so.* +%{_bindir}/stdlogctl +%{_mandir}/man1/stdlogctl* %files devel %defattr(-,root,root) @@ -95,5 +121,6 @@ %{_includedir}/liblogging/*.h %{_libdir}/pkgconfig/liblogging-rfc3195.pc %{_libdir}/pkgconfig/liblogging-stdlog.pc +%{_mandir}/man3/stdlog* %changelog ++++++ liblogging-1.0.2-fix-SLE-va_list.patch ++++++ From: Andreas Stieger <[email protected]> Date: Mon, 03 Mar 2014 22:39:46 +0000 Subject: [PATCH] fix va_list usage on some gcc version References: https://github.com/rsyslog/liblogging/issues/11 Upstream: committed fix va_list errors on SLE: [ 81s] stdlog.h:81: error: expected declaration specifiers or '...' before 'va_list' [ 81s] In file included from tester.c:3: [ 81s] stdlog.h:80: error: expected declaration specifiers or '...' before 'va_list' [ 81s] make[2]: *** [stdlogctl-stdlogctl.o] Error 1 [ 81s] make[2]: *** Waiting for unfinished jobs.... [ 81s] stdlog.h:81: error: expected declaration specifiers or '...' before 'va_list' [ 81s] make[2]: *** [tester.o] Error 1 --- stdlog/jrnldrvr.c | 1 + stdlog/stdlog.h | 2 ++ 2 files changed, 3 insertions(+) Index: liblogging-1.0.2/stdlog/jrnldrvr.c =================================================================== --- liblogging-1.0.2.orig/stdlog/jrnldrvr.c 2014-02-25 13:22:08.000000000 +0000 +++ liblogging-1.0.2/stdlog/jrnldrvr.c 2014-03-03 22:53:28.000000000 +0000 @@ -27,6 +27,7 @@ #include "config.h" #include <stdio.h> #include <stdlib.h> +#include <stdarg.h> #include <stdint.h> #include <errno.h> #include <systemd/sd-journal.h> Index: liblogging-1.0.2/stdlog/stdlog.h =================================================================== --- liblogging-1.0.2.orig/stdlog/stdlog.h 2014-02-25 15:19:12.000000000 +0000 +++ liblogging-1.0.2/stdlog/stdlog.h 2014-03-03 22:53:47.000000000 +0000 @@ -28,6 +28,8 @@ #ifndef LIBLOGGING_STDLOG_H_INCLUDED #define LIBLOGGING_STDLOG_H_INCLUDED #include <stdint.h> +#include <stdlib.h> +#include <stdarg.h> /* options for stdlog_open() call */ #define STDLOG_SIGSAFE 1 /* enforce signal-safe implementation */ ++++++ liblogging-1.0.1.tar.gz -> liblogging-1.0.2.tar.gz ++++++ ++++ 27458 lines of diff (skipped) -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
