aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHarald Welte <laforge@osmocom.org>2021-02-03 14:52:13 +0100
committerHarald Welte <laforge@osmocom.org>2021-02-03 14:56:17 +0100
commit700822b305850686528b0e83cb652b5a52b8600a (patch)
treeb9828677ba710d8758a55275ab16cfc28b2176fa
parent433005c87c88912358bfd02d4b0d997b52b04013 (diff)
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
-rw-r--r--contrib/libosmocore.spec.in3
-rw-r--r--debian/control1
-rwxr-xr-xdebian/rules2
3 files changed, 4 insertions, 2 deletions
diff --git a/contrib/libosmocore.spec.in b/contrib/libosmocore.spec.in
index 728a0fb0..93e5e168 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 24e729ae..05069c5c 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 afff17fa..f5b71ebb 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