mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Merge pull request #43838 from thaJeztah/remove_journald_compat
logger/journald: remove journald_compat (for systemd < 209)
This commit is contained in:
commit
98d8343aa2
4 changed files with 4 additions and 15 deletions
|
@ -1,5 +1,5 @@
|
|||
//go:build linux && cgo && !static_build && journald && !journald_compat
|
||||
// +build linux,cgo,!static_build,journald,!journald_compat
|
||||
//go:build linux && cgo && !static_build && journald
|
||||
// +build linux,cgo,!static_build,journald
|
||||
|
||||
package journald // import "github.com/docker/docker/daemon/logger/journald"
|
||||
|
||||
|
|
|
@ -1,7 +0,0 @@
|
|||
//go:build linux && cgo && !static_build && journald && journald_compat
|
||||
// +build linux,cgo,!static_build,journald,journald_compat
|
||||
|
||||
package journald // import "github.com/docker/docker/daemon/logger/journald"
|
||||
|
||||
// #cgo pkg-config: libsystemd-journal
|
||||
import "C"
|
|
@ -83,10 +83,8 @@ add_buildtag() {
|
|||
[[ " $DOCKER_BUILDTAGS" == *" $1_"* ]] || DOCKER_BUILDTAGS+=" $1_$2"
|
||||
}
|
||||
|
||||
if ${PKG_CONFIG} 'libsystemd >= 209' 2> /dev/null; then
|
||||
if ${PKG_CONFIG} 'libsystemd' 2> /dev/null; then
|
||||
DOCKER_BUILDTAGS+=" journald"
|
||||
elif ${PKG_CONFIG} 'libsystemd-journal' 2> /dev/null; then
|
||||
DOCKER_BUILDTAGS+=" journald journald_compat"
|
||||
fi
|
||||
|
||||
# test whether "libdevmapper.h" is new enough to support deferred remove
|
||||
|
|
|
@ -11,10 +11,8 @@ SCRIPTDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
|||
[ -n "${TESTDEBUG}" ] && set -x
|
||||
|
||||
# TODO find a way to share this code with hack/make.sh
|
||||
if ${PKG_CONFIG} 'libsystemd >= 209' 2> /dev/null; then
|
||||
if pkg-config 'libsystemd' 2> /dev/null; then
|
||||
DOCKER_BUILDTAGS+=" journald"
|
||||
elif ${PKG_CONFIG} 'libsystemd-journal' 2> /dev/null; then
|
||||
DOCKER_BUILDTAGS+=" journald journald_compat"
|
||||
fi
|
||||
|
||||
echo -e "\n\033[0;36mINFO\033[0m Start validation with golang-ci-lint"
|
||||
|
|
Loading…
Reference in a new issue