Merge pull request #1989 from mischief/docker-journald

link docker against journald compat libs for 'docker logs' read support for journal driver
This commit is contained in:
Nick Owens 2016-06-15 10:24:24 -07:00 committed by GitHub
commit 828a268169
4 changed files with 15 additions and 1 deletions

View File

@ -0,0 +1 @@
docker-9999.ebuild

View File

@ -23,7 +23,8 @@ DESCRIPTION="Docker complements kernel namespacing with a high-level API which o
HOMEPAGE="https://dockerproject.org" HOMEPAGE="https://dockerproject.org"
LICENSE="Apache-2.0" LICENSE="Apache-2.0"
SLOT="0" SLOT="0"
IUSE="apparmor aufs +btrfs contrib +device-mapper experimental +overlay seccomp +selinux vim-syntax zsh-completion" IUSE="apparmor aufs +btrfs contrib +device-mapper experimental +overlay seccomp
+selinux vim-syntax zsh-completion +journald"
# https://github.com/docker/docker/blob/master/hack/PACKAGERS.md#build-dependencies # https://github.com/docker/docker/blob/master/hack/PACKAGERS.md#build-dependencies
CDEPEND=" CDEPEND="
@ -34,6 +35,9 @@ CDEPEND="
seccomp? ( seccomp? (
>=sys-libs/libseccomp-2.2.1[static-libs] >=sys-libs/libseccomp-2.2.1[static-libs]
) )
journald? (
>=sys-apps/systemd-225
)
" "
#dev-go/go-md2man #dev-go/go-md2man
@ -228,6 +232,9 @@ src_compile() {
if use apparmor; then if use apparmor; then
DOCKER_BUILDTAGS+=' apparmor' DOCKER_BUILDTAGS+=' apparmor'
fi fi
if use journald; then
DOCKER_BUILDTAGS+=' journald'
fi
if has_version '<sys-fs/lvm2-2.02.110' ; then if has_version '<sys-fs/lvm2-2.02.110' ; then
# Docker uses the host files when testing features, so force # Docker uses the host files when testing features, so force

View File

@ -323,6 +323,12 @@ multilib_src_install() {
emake "${mymakeopts[@]}" emake "${mymakeopts[@]}"
fi fi
# install compat pkg-config files
# Change dbus to >=sys-apps/dbus-1.8.8 if/when this is dropped.
local pcfiles=( src/compat-libs/libsystemd-{daemon,id128,journal,login}.pc )
emake "${mymakeopts[@]}" install-pkgconfiglibDATA \
pkgconfiglib_DATA="${pcfiles[*]}"
} }
multilib_src_install_all() { multilib_src_install_all() {