Skip to content

Commit

Permalink
hack: explicitly control enabling the journald logging driver
Browse files Browse the repository at this point in the history
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

closes moby#47770
  • Loading branch information
williamh committed May 2, 2024
1 parent 9d07820 commit fc6c657
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hack/make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if [ ! "$GOPATH" ]; then
exit 1
fi

if ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then
if ${PKG_CONFIG} 'libsystemd' 2> /dev/null && [[ -n $SYSTEMD ]] && [[ $SYSTEMD == 1 ]]; then
DOCKER_BUILDTAGS+=" journald"
fi

Expand Down

0 comments on commit fc6c657

Please sign in to comment.