diff options
author | Manuel Rüger <mrueg@gentoo.org> | 2016-11-09 17:59:39 +0100 |
---|---|---|
committer | Manuel Rüger <mrueg@gentoo.org> | 2016-11-09 17:59:39 +0100 |
commit | 093745daf4f6471b253570d176f8f8e9131c4e26 (patch) | |
tree | 07c6f0bcf87d493e1554fd4619cd14579e667876 /app-emulation | |
parent | 33f31b7b8b94f1b2d42aada4257621e412b08254 (diff) | |
download | gentoo-093745daf4f6471b253570d176f8f8e9131c4e26.tar.gz gentoo-093745daf4f6471b253570d176f8f8e9131c4e26.tar.xz |
app-emulation/containerd: Sync live ebuild
Package-Manager: portage-2.3.0
Diffstat (limited to 'app-emulation')
-rw-r--r-- | app-emulation/containerd/containerd-9999.ebuild | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/app-emulation/containerd/containerd-9999.ebuild b/app-emulation/containerd/containerd-9999.ebuild index 6ffef1d7a07..4b81e8a432a 100644 --- a/app-emulation/containerd/containerd-9999.ebuild +++ b/app-emulation/containerd/containerd-9999.ebuild @@ -5,6 +5,8 @@ EAPI=6 EGO_PN="github.com/docker/${PN}" +inherit toolchain-funcs + if [[ ${PV} == *9999 ]]; then inherit golang-vcs else @@ -23,19 +25,18 @@ SLOT="0" IUSE="+seccomp" DEPEND="" -RDEPEND="app-emulation/runc +RDEPEND=">=app-emulation/runc-1.0.0_rc2 seccomp? ( sys-libs/libseccomp )" S=${WORKDIR}/${P}/src/${EGO_PN} -src_prepare() { - eapply_user -} - src_compile() { - local options=( $(usex seccomp "seccomp") ) + local options=( $(usex seccomp "seccomp") ) myldflags export GOPATH="${WORKDIR}/${P}" # ${PWD}/vendor - LDFLAGS= emake GIT_COMMIT="$EGIT_COMMIT" BUILDTAGS="${options[@]}" + if gcc-specs-pie; then + myldflags="-extldflags -fno-PIC" + fi + LDFLAGS=${myldflags} emake GIT_COMMIT="$EGIT_COMMIT" BUILDTAGS="${options[@]}" } src_install() { |