hack: explicitly control enabling the journald logging driver

Without this, the dependency on systemd is said to be "automagic", which
can lead to breakage, for example, if a binary package of docker is
built on a system that has systemd installed then installed on a system
that does not have systemd installed.

for example: https://bugs.gentoo.org/914076

Signed-off-by: William Hubbs <w.d.hubbs@gmail.com>
This commit is contained in:
William Hubbs
2024-07-16 11:00:29 -05:00
parent aae044039c
commit 499c842c52

View File

@@ -83,7 +83,7 @@ if [ ! "$GOPATH" ]; then
exit 1
fi
if ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then
if [ -z "${EXCLUDE_AUTO_BUILDTAG_JOURNALD:-}" ] && ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then
DOCKER_BUILDTAGS+=" journald"
fi