From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id B696D1395E2 for ; Wed, 9 Nov 2016 16:58:51 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 00E25E08AF; Wed, 9 Nov 2016 16:58:51 +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 DE45AE08AF for ; Wed, 9 Nov 2016 16:58:50 +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 F34E2341491 for ; Wed, 9 Nov 2016 16:58:49 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 1B3D6308 for ; Wed, 9 Nov 2016 16:58:48 +0000 (UTC) From: "Manuel Rüger" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Manuel Rüger" Message-ID: <1478710713.33f31b7b8b94f1b2d42aada4257621e412b08254.mrueg@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/containerd/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/containerd/containerd-0.2.4-r1.ebuild X-VCS-Directories: app-emulation/containerd/ X-VCS-Committer: mrueg X-VCS-Committer-Name: Manuel Rüger X-VCS-Revision: 33f31b7b8b94f1b2d42aada4257621e412b08254 X-VCS-Branch: master Date: Wed, 9 Nov 2016 16:58:48 +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: 184fe9ff-43f8-4fed-ab08-93876c1de7df X-Archives-Hash: 290642124a0f5d7e7d3e87360e67d41e commit: 33f31b7b8b94f1b2d42aada4257621e412b08254 Author: Manuel Rüger gentoo org> AuthorDate: Wed Nov 9 16:58:33 2016 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Wed Nov 9 16:58:33 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=33f31b7b app-emulation/containerd: Apply -fno-PIC Thanks to K3A Gentoo-Bug: 591872 Package-Manager: portage-2.3.0 .../containerd/containerd-0.2.4-r1.ebuild | 44 ++++++++++++++++++++++ 1 file changed, 44 insertions(+) diff --git a/app-emulation/containerd/containerd-0.2.4-r1.ebuild b/app-emulation/containerd/containerd-0.2.4-r1.ebuild new file mode 100644 index 00000000..4b81e8a --- /dev/null +++ b/app-emulation/containerd/containerd-0.2.4-r1.ebuild @@ -0,0 +1,44 @@ +# Copyright 1999-2016 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Id$ + +EAPI=6 +EGO_PN="github.com/docker/${PN}" + +inherit toolchain-funcs + +if [[ ${PV} == *9999 ]]; then + inherit golang-vcs +else + MY_PV="${PV/_/-}" + EGIT_COMMIT="v${MY_PV}" + SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz" + KEYWORDS="~amd64 ~ppc64" + inherit golang-vcs-snapshot +fi + +DESCRIPTION="A daemon to control runC" +HOMEPAGE="https://containerd.tools" + +LICENSE="Apache-2.0" +SLOT="0" +IUSE="+seccomp" + +DEPEND="" +RDEPEND=">=app-emulation/runc-1.0.0_rc2 + seccomp? ( sys-libs/libseccomp )" + +S=${WORKDIR}/${P}/src/${EGO_PN} + +src_compile() { + local options=( $(usex seccomp "seccomp") ) myldflags + export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor + if gcc-specs-pie; then + myldflags="-extldflags -fno-PIC" + fi + LDFLAGS=${myldflags} emake GIT_COMMIT="$EGIT_COMMIT" BUILDTAGS="${options[@]}" +} + +src_install() { + dobin bin/containerd* bin/ctr +}