From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) by finch.gentoo.org (Postfix) with ESMTP id BC43E59CB4 for ; Wed, 20 Apr 2016 17:06:39 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 6306F21C0D6; Wed, 20 Apr 2016 17:06:37 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id CA06721C0D6 for ; Wed, 20 Apr 2016 17:06:36 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id BE377340BBE for ; Wed, 20 Apr 2016 17:06:35 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CD71015F5 for ; Wed, 20 Apr 2016 17:06:32 +0000 (UTC) From: "William Hubbs" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "William Hubbs" Message-ID: <1461171613.80ea9c4b5a6854e392fca65c558ac9f39041fe23.williamh@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/docker/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/docker/docker-9999.ebuild X-VCS-Directories: app-emulation/docker/ X-VCS-Committer: williamh X-VCS-Committer-Name: William Hubbs X-VCS-Revision: 80ea9c4b5a6854e392fca65c558ac9f39041fe23 X-VCS-Branch: master Date: Wed, 20 Apr 2016 17:06:32 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Archives-Salt: bdae262b-9576-4ce1-bfdc-a33740b1369c X-Archives-Hash: fcd33459b553ead25572759f05594e77 commit: 80ea9c4b5a6854e392fca65c558ac9f39041fe23 Author: William Hubbs gentoo org> AuthorDate: Wed Apr 20 16:58:46 2016 +0000 Commit: William Hubbs gentoo org> CommitDate: Wed Apr 20 17:00:13 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=80ea9c4b app-emulation/docker: sync live ebuild Package-Manager: portage-2.2.26 app-emulation/docker/docker-9999.ebuild | 43 +++++++++++++++++++-------------- 1 file changed, 25 insertions(+), 18 deletions(-) diff --git a/app-emulation/docker/docker-9999.ebuild b/app-emulation/docker/docker-9999.ebuild index 02a19fe..eabd8d8 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() {