mirror of https://github.com/docker/docs.git
Merge pull request #20617 from nalind/journald-pkgconfig
Try to handle changing names for journal packages
This commit is contained in:
commit
36401f20ce
|
@ -2,7 +2,6 @@
|
||||||
|
|
||||||
package journald
|
package journald
|
||||||
|
|
||||||
// #cgo pkg-config: libsystemd-journal
|
|
||||||
// #include <sys/types.h>
|
// #include <sys/types.h>
|
||||||
// #include <sys/poll.h>
|
// #include <sys/poll.h>
|
||||||
// #include <systemd/sd-journal.h>
|
// #include <systemd/sd-journal.h>
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
// +build linux,cgo,!static_build,journald,!journald_compat
|
||||||
|
|
||||||
|
package journald
|
||||||
|
|
||||||
|
// #cgo pkg-config: libsystemd
|
||||||
|
import "C"
|
|
@ -0,0 +1,6 @@
|
||||||
|
// +build linux,cgo,!static_build,journald,journald_compat
|
||||||
|
|
||||||
|
package journald
|
||||||
|
|
||||||
|
// #cgo pkg-config: libsystemd-journal
|
||||||
|
import "C"
|
|
@ -118,8 +118,10 @@ fi
|
||||||
|
|
||||||
if [ -z "$DOCKER_CLIENTONLY" ]; then
|
if [ -z "$DOCKER_CLIENTONLY" ]; then
|
||||||
DOCKER_BUILDTAGS+=" daemon"
|
DOCKER_BUILDTAGS+=" daemon"
|
||||||
if pkg-config libsystemd-journal 2> /dev/null ; then
|
if pkg-config 'libsystemd >= 209' 2> /dev/null ; then
|
||||||
DOCKER_BUILDTAGS+=" journald"
|
DOCKER_BUILDTAGS+=" journald"
|
||||||
|
elif pkg-config 'libsystemd-journal' 2> /dev/null ; then
|
||||||
|
DOCKER_BUILDTAGS+=" journald journald_compat"
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue