diff options
author | William Hubbs <williamh@gentoo.org> | 2016-04-20 11:58:46 -0500 |
---|---|---|
committer | William Hubbs <williamh@gentoo.org> | 2016-04-20 12:00:13 -0500 |
commit | 80ea9c4b5a6854e392fca65c558ac9f39041fe23 (patch) | |
tree | 0301917d88687f76751e5670b15138fdfb511df6 /app-emulation | |
parent | app-emulation/docker: version bump to 1.11.0 for #580564 (diff) | |
download | gentoo-80ea9c4b5a6854e392fca65c558ac9f39041fe23.tar.gz gentoo-80ea9c4b5a6854e392fca65c558ac9f39041fe23.tar.bz2 gentoo-80ea9c4b5a6854e392fca65c558ac9f39041fe23.zip |
app-emulation/docker: sync live ebuild
Package-Manager: portage-2.2.26
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/docker/docker-9999.ebuild | 43 |
1 files changed, 25 insertions, 18 deletions
diff --git a/app-emulation/docker/docker-9999.ebuild b/app-emulation/docker/docker-9999.ebuild index 02a19fec8092..eabd8d83dbbc 100644 --- a/app-emulation/docker/docker-9999.ebuild +++ b/app-emulation/docker/docker-9999.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2015 Gentoo Foundation +# Copyright 1999-2016 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Id$ @@ -10,23 +10,23 @@ if [[ ${PV} = *9999* ]]; then # Docker cannot be fetched via "go get", thanks to autogenerated code EGIT_REPO_URI="https://${EGO_PN}.git" EGIT_CHECKOUT_DIR="${WORKDIR}/${P}/src/${EGO_PN}" - inherit git-r3 + inherit golang-base git-r3 else MY_PV="${PV/_/-}" - DOCKER_GITCOMMIT="d12ea79" + DOCKER_GITCOMMIT="4dc5990" EGIT_COMMIT="v${MY_PV}" SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" KEYWORDS="~amd64" [ "$DOCKER_GITCOMMIT" ] || die "DOCKER_GITCOMMIT must be added manually for each bump!" inherit golang-vcs-snapshot fi -inherit bash-completion-r1 eutils linux-info multilib systemd udev user +inherit bash-completion-r1 linux-info multilib systemd udev user DESCRIPTION="Docker complements kernel namespacing with a high-level API which operates at the process level" HOMEPAGE="https://dockerproject.org" LICENSE="Apache-2.0" SLOT="0" -IUSE="apparmor aufs btrfs +device-mapper experimental lxc overlay" +IUSE="apparmor aufs btrfs +device-mapper experimental overlay seccomp" # https://github.com/docker/docker/blob/master/hack/PACKAGERS.md#build-dependencies CDEPEND=" @@ -34,6 +34,9 @@ CDEPEND=" device-mapper? ( >=sys-fs/lvm2-2.02.89[thin] ) + seccomp? ( + >=sys-libs/libseccomp-2.2.1[static-libs] + ) " DEPEND=" @@ -57,9 +60,8 @@ RDEPEND=" >=dev-vcs/git-1.7 >=app-arch/xz-utils-4.9 - lxc? ( - >=app-emulation/lxc-1.0.7 - ) + >=app-emulation/containerd-0.2.0 + >=app-emulation/runc-0.1.0 apparmor? ( sys-libs/libapparmor[static-libs] @@ -170,13 +172,14 @@ pkg_setup() { src_prepare() { cd "src/${EGO_PN}" || die + epatch "${FILESDIR}/docker-containerd.patch" # allow user patches (use sparingly - upstream won't support them) epatch_user } src_compile() { cd "src/${EGO_PN}" || die - export GOPATH="${WORKDIR}/${P}:${PWD}/vendor:$(get_golibdir_gopath)" + export GOPATH="${WORKDIR}/${P}:${PWD}/vendor" # setup CFLAGS and LDFLAGS for separate build target # see https://github.com/tianon/docker-overlay/pull/10 @@ -187,10 +190,11 @@ src_compile() { [ "$DOCKER_GITCOMMIT" ] && export DOCKER_GITCOMMIT if gcc-specs-pie; then - sed -i "s/EXTLDFLAGS_STATIC='/EXTLDFLAGS_STATIC='-fno-PIC /" hack/make.sh || die + sed -i "s/EXTLDFLAGS_STATIC='/&-fno-PIC /" hack/make.sh || die grep -q -- '-fno-PIC' hack/make.sh || die 'hardened sed failed' - sed -i "s/LDFLAGS_STATIC_DOCKER='/LDFLAGS_STATIC_DOCKER='-extldflags -fno-PIC /" hack/make/dynbinary || die + sed "s/LDFLAGS_STATIC_DOCKER='/&-extldflags -fno-PIC /" \ + -i hack/make/dynbinary || die grep -q -- '-fno-PIC' hack/make/dynbinary || die 'hardened sed failed' fi @@ -202,9 +206,11 @@ src_compile() { fi done - if use apparmor; then - DOCKER_BUILDTAGS+=' apparmor' - fi + for tag in apparmor seccomp; do + if use $tag; then + DOCKER_BUILDTAGS+=" $tag" + fi + done # https://github.com/docker/docker/pull/13338 if use experimental; then @@ -224,8 +230,8 @@ src_install() { cd "src/${EGO_PN}" || die VERSION="$(cat VERSION)" newbin "bundles/$VERSION/dynbinary/docker-$VERSION" docker - exeinto /usr/libexec/docker - newexe "bundles/$VERSION/dynbinary/dockerinit-$VERSION" dockerinit + #exeinto /usr/libexec/docker + #newexe "bundles/$VERSION/dynbinary/dockerinit-$VERSION" dockerinit newinitd contrib/init/openrc/docker.initd docker newconfd contrib/init/openrc/docker.confd docker @@ -247,8 +253,9 @@ src_install() { doins -r contrib/syntax/vim/ftdetect doins -r contrib/syntax/vim/syntax - insinto "/usr/share/${PN}/contrib" - doins -r contrib/* + # note: intentionally not using "doins" so that we preserve +x bits + mkdir -p "${D}/usr/share/${PN}/contrib" + cp -R contrib/* "${D}/usr/share/${PN}/contrib" } pkg_postinst() { |