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 23BB71395E2 for ; Wed, 9 Nov 2016 19:02:23 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A48BFE0AB3; Wed, 9 Nov 2016 19:02:19 +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 8BE36E0AB3 for ; Wed, 9 Nov 2016 19:02:19 +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 9FAB5341142 for ; Wed, 9 Nov 2016 19:02:17 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id EFEA524B9 for ; Wed, 9 Nov 2016 19:02:10 +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: <1478718097.a9cd2557d9c19242704484b20b6b17167a12f2af.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: a9cd2557d9c19242704484b20b6b17167a12f2af X-VCS-Branch: master Date: Wed, 9 Nov 2016 19:02:10 +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: 593f420a-750a-4890-b497-6ccbd17701e0 X-Archives-Hash: a21f2203d651e2fec4ed8d8943b864ca commit: a9cd2557d9c19242704484b20b6b17167a12f2af Author: Manuel Rüger gentoo org> AuthorDate: Wed Nov 9 18:57:59 2016 +0000 Commit: Manuel Rüger gentoo org> CommitDate: Wed Nov 9 19:01:37 2016 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a9cd2557 app-emulation/containerd: use hardened USEflag for -fno-PIC Thanks to WilliamH Package-Manager: portage-2.3.0 app-emulation/containerd/containerd-0.2.4-r1.ebuild | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/app-emulation/containerd/containerd-0.2.4-r1.ebuild b/app-emulation/containerd/containerd-0.2.4-r1.ebuild index 4b81e8a..ab4ce7e 100644 --- a/app-emulation/containerd/containerd-0.2.4-r1.ebuild +++ b/app-emulation/containerd/containerd-0.2.4-r1.ebuild @@ -22,7 +22,7 @@ HOMEPAGE="https://containerd.tools" LICENSE="Apache-2.0" SLOT="0" -IUSE="+seccomp" +IUSE="hardened +seccomp" DEPEND="" RDEPEND=">=app-emulation/runc-1.0.0_rc2 @@ -31,12 +31,9 @@ RDEPEND=">=app-emulation/runc-1.0.0_rc2 S=${WORKDIR}/${P}/src/${EGO_PN} src_compile() { - local options=( $(usex seccomp "seccomp") ) myldflags + local options=( $(usex seccomp "seccomp") ) 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[@]}" + LDFLAGS=$(usex hardened '-extldflags -fno-PIC' '') emake GIT_COMMIT="$EGIT_COMMIT" BUILDTAGS="${options[@]}" } src_install() {