mirror of
https://github.com/containers/podman.git
synced 2025-05-19 16:18:51 +08:00

Finding systemd devel packages using libsystemd does not work as in RHEL based distro the package name is systemd-devel and for deb/ubunutu it is libsystemd. It is also giving false result when podman rpm is built with systemd but hack/systemd_tag.sh does not return anything. Install systemd-devel package in build_rpm.sh script Moving to systemd/sd-daemon.h header files which comes from devel packages fixes the issue. Signed-off-by: Chandan Kumar (raukadah) <raukadah@gmail.com>
8 lines
136 B
Bash
Executable File
8 lines
136 B
Bash
Executable File
#!/usr/bin/env bash
|
|
cc -E - > /dev/null 2> /dev/null << EOF
|
|
#include <systemd/sd-daemon.h>
|
|
EOF
|
|
if test $? -eq 0 ; then
|
|
echo systemd
|
|
fi
|