mirror of
https://github.com/containers/podman.git
synced 2025-06-29 15:08:09 +08:00
Merge pull request #4710 from raukadah/systemdfix
Use systemd/sd-daemon.h headers for systemd presence
This commit is contained in:
2
Makefile
2
Makefile
@ -45,7 +45,7 @@ endif
|
|||||||
ifeq (,$(findstring systemd,$(BUILDTAGS)))
|
ifeq (,$(findstring systemd,$(BUILDTAGS)))
|
||||||
$(warning \
|
$(warning \
|
||||||
Podman is being compiled without the systemd build tag.\
|
Podman is being compiled without the systemd build tag.\
|
||||||
Install libsystemd for journald support)
|
Install libsystemd on Ubuntu or systemd-devel on rpm based distro for journald support)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
BUILDTAGS_CROSS ?= containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_overlay
|
BUILDTAGS_CROSS ?= containers_image_openpgp exclude_graphdriver_btrfs exclude_graphdriver_devicemapper exclude_graphdriver_overlay
|
||||||
|
@ -26,6 +26,7 @@ declare -a PKGS=(device-mapper-devel \
|
|||||||
make \
|
make \
|
||||||
rpm-build \
|
rpm-build \
|
||||||
go-compilers-golang-compiler \
|
go-compilers-golang-compiler \
|
||||||
|
systemd-devel \
|
||||||
)
|
)
|
||||||
|
|
||||||
if [[ $pkg_manager == *dnf ]]; then
|
if [[ $pkg_manager == *dnf ]]; then
|
||||||
|
@ -1,4 +1,7 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
if pkg-config --exists libsystemd; then
|
cc -E - > /dev/null 2> /dev/null << EOF
|
||||||
echo systemd
|
#include <systemd/sd-daemon.h>
|
||||||
|
EOF
|
||||||
|
if test $? -eq 0 ; then
|
||||||
|
echo systemd
|
||||||
fi
|
fi
|
||||||
|
Reference in New Issue
Block a user