Change in libosmocore[master]: Enable systemd-journald log target in debian + rpm packaging

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

laforge gerrit-no-reply at lists.osmocom.org
Wed Feb 3 17:53:18 UTC 2021


laforge has submitted this change. ( https://gerrit.osmocom.org/c/libosmocore/+/22651 )

Change subject: Enable systemd-journald log target in debian + rpm packaging
......................................................................

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
---
M contrib/libosmocore.spec.in
M debian/control
M debian/rules
3 files changed, 4 insertions(+), 2 deletions(-)

Approvals:
  Jenkins Builder: Verified
  pespin: Looks good to me, but someone else must approve
  fixeria: Looks good to me, approved



diff --git a/contrib/libosmocore.spec.in b/contrib/libosmocore.spec.in
index 728a0fb..93e5e16 100644
--- a/contrib/libosmocore.spec.in
+++ b/contrib/libosmocore.spec.in
@@ -31,6 +31,7 @@
 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 @@
 %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 24e729a..05069c5 100644
--- a/debian/control
+++ b/debian/control
@@ -18,6 +18,7 @@
                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 afff17f..f5b71eb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -26,7 +26,7 @@
 	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

-- 
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/22651
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: Ib3af918cd4cc8d0ca6d228a0f2c8338534374d46
Gerrit-Change-Number: 22651
Gerrit-PatchSet: 1
Gerrit-Owner: laforge <laforge at osmocom.org>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: fixeria <vyanitskiy at sysmocom.de>
Gerrit-Reviewer: laforge <laforge at osmocom.org>
Gerrit-Reviewer: pespin <pespin at sysmocom.de>
Gerrit-MessageType: merged
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20210203/51d3958f/attachment.htm>


More information about the gerrit-log mailing list