]> git.ipfire.org Git - thirdparty/suricata.git/commitdiff
workflow: add systemd integration and check
authorRichard McConnell <Richard_McConnell@rapid7.com>
Tue, 4 Oct 2022 16:18:05 +0000 (17:18 +0100)
committerVictor Julien <vjulien@oisf.net>
Thu, 27 Oct 2022 07:54:18 +0000 (09:54 +0200)
Intergration of systemd is a feature that enables notification of
a running service to the service manager. The workflow now ensures
compilation with systemd and checks the binary has been built against
libsystemd.

.github/workflows/builds.yml

index 7c754957ca2bf28420317caddc607eff42a0e0b8..eb27b4759cadc67b3b6ae5a206fb21118171b4ff 100644 (file)
@@ -531,7 +531,7 @@ jobs:
           flags: suricata-verify
 
   fedora-36:
-    name: Fedora 36 (debug, clang, asan, wshadow, rust-strict)
+    name: Fedora 36 (debug, clang, asan, wshadow, rust-strict, systemd)
     runs-on: ubuntu-latest
     container: fedora:36
     needs: [prepare-deps, prepare-cbindgen]
@@ -578,6 +578,7 @@ jobs:
                 pkgconfig \
                 python3-yaml \
                 sudo \
+                systemd-devel \
                 which \
                 zlib-devel
       - uses: actions/checkout@v3.1.0
@@ -620,6 +621,8 @@ jobs:
       - run: make install
       - run: suricata-update -V
       - run: suricatasc -h
+      # Check compilation against systemd
+      - run: ldd src/suricata | grep libsystemd &> /dev/null
 
   fedora-35:
     name: Fedora 35 (debug, clang, asan, wshadow, rust-strict)