From 700822b305850686528b0e83cb652b5a52b8600a Mon Sep 17 00:00:00 2001 From: Harald Welte Date: Wed, 3 Feb 2021 14:52:13 +0100 Subject: [PATCH] Enable systemd-journald log target in debian + rpm packaging Given that all the distributions we support are shipping systemd anyway, this will not really introduce any additional runtime package dependencies. Change-Id: Ib3af918cd4cc8d0ca6d228a0f2c8338534374d46 --- contrib/libosmocore.spec.in | 3 ++- debian/control | 1 + debian/rules | 2 +- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/contrib/libosmocore.spec.in b/contrib/libosmocore.spec.in index 728a0fb07..93e5e1685 100644 --- a/contrib/libosmocore.spec.in +++ b/contrib/libosmocore.spec.in @@ -31,6 +31,7 @@ BuildRequires: pkgconfig(libpcsclite) BuildRequires: pkgconfig(libusb-1.0) BuildRequires: pkgconfig(talloc) >= 2.0.1 BuildRequires: pkgconfig(libmnl) +BuildRequires: pkgconfig(libsystemd) %description libosmocore is a package with various utility functions that were @@ -305,7 +306,7 @@ applications that want to make use of libosmousb. %build echo "%version" >.tarball-version autoreconf -fiv -%configure --enable-shared --disable-static \ +%configure --enable-shared --disable-static --enable-systemd-logging \ --includedir="%_includedir/%name" make %{?_smp_mflags} V=1 diff --git a/debian/control b/debian/control index 24e729ae5..05069c5cb 100644 --- a/debian/control +++ b/debian/control @@ -18,6 +18,7 @@ Build-Depends: debhelper (>= 9), libsctp-dev, libusb-1.0-0-dev, libmnl-dev, + libsystemd-dev, python3:native Standards-Version: 3.9.8 Vcs-Git: git://git.osmocom.org/libosmocore.git diff --git a/debian/rules b/debian/rules index afff17fa4..f5b71ebb6 100755 --- a/debian/rules +++ b/debian/rules @@ -26,7 +26,7 @@ override_dh_auto_test: dh_auto_test || (find . -name testsuite.log -exec cat {} \; ; false) override_dh_auto_configure: - dh_auto_configure -- --enable-static --disable-sctp-tests + dh_auto_configure -- --enable-static --disable-sctp-tests --enable-systemd-logging override_dh_clean: dh_clean