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 F281113835A for ; Tue, 22 Sep 2020 23:18:55 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id F26FDE0826; Tue, 22 Sep 2020 23:18:54 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id D40E1E0826 for ; Tue, 22 Sep 2020 23:18:54 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 48A93340DBA for ; Tue, 22 Sep 2020 23:18:53 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id B00C633A for ; Tue, 22 Sep 2020 23:18:51 +0000 (UTC) From: "Georgy Yakovlev" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Georgy Yakovlev" Message-ID: <1600815057.55032cfd3d2099292ba07701f59feef7b3605e85.gyakovlev@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/runc/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/runc/Manifest app-emulation/runc/runc-1.0.0_rc92.ebuild X-VCS-Directories: app-emulation/runc/ X-VCS-Committer: gyakovlev X-VCS-Committer-Name: Georgy Yakovlev X-VCS-Revision: 55032cfd3d2099292ba07701f59feef7b3605e85 X-VCS-Branch: master Date: Tue, 22 Sep 2020 23:18:51 +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-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 5662baca-e2e9-41e8-8087-7a359461ce48 X-Archives-Hash: 0dbfa017b0631efc288d8a40252a3422 commit: 55032cfd3d2099292ba07701f59feef7b3605e85 Author: Georgy Yakovlev gentoo org> AuthorDate: Tue Sep 22 07:37:40 2020 +0000 Commit: Georgy Yakovlev gentoo org> CommitDate: Tue Sep 22 22:50:57 2020 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=55032cfd app-emulation/runc: bump to 1.0.0_rc92 added selinux useflag (no extra deps) removed ambient useflag (dropped upstream) added manpage installation bumped EAPI to 7 migrated to go-module.eclass, upstream vendors rework installation a bit, install more docs install bash completions Package-Manager: Portage-3.0.8, Repoman-3.0.1 Signed-off-by: Georgy Yakovlev gentoo.org> app-emulation/runc/Manifest | 1 + app-emulation/runc/runc-1.0.0_rc92.ebuild | 80 +++++++++++++++++++++++++++++++ 2 files changed, 81 insertions(+) diff --git a/app-emulation/runc/Manifest b/app-emulation/runc/Manifest index 0c5009ddfbe..53f31a4e493 100644 --- a/app-emulation/runc/Manifest +++ b/app-emulation/runc/Manifest @@ -1 +1,2 @@ DIST runc-1.0.0_rc10.tar.gz 1929802 BLAKE2B 8399c3d62726bbb6256efef7e15b7496a7172bf25170b12beb60be498967dec4fde2aebd073de4265e132ff864bafc4d2499ab677390a4f7c0a1605d83ae55e5 SHA512 598221071ef07d18bf34bf5d5c68b8ad78ee71716177fc3ce5b6909cd841d5aed93f17ebf1f3d134707d29eef1f54a4ddc21e79621a9bd957df28a8d2e028ab7 +DIST runc-1.0.0_rc92.tar.gz 2061469 BLAKE2B 06444eaf7602fe9ddaf7728c7f55bd718d1fe8f5f0ce6b21abc49a1d84eaa2fc3550d0d275ba5548ee9ebb6948a8ed415de8562a990d6085d1da8fb37e46afb9 SHA512 770a31736f5ab4ba359d91bd236750511f90b29af0af2bad5c238b611f465d7302e78b57ce8a702068440fda2d74588b92fd4d24c6d34e6fc1bd649ea3d8ee40 diff --git a/app-emulation/runc/runc-1.0.0_rc92.ebuild b/app-emulation/runc/runc-1.0.0_rc92.ebuild new file mode 100644 index 00000000000..4489684142b --- /dev/null +++ b/app-emulation/runc/runc-1.0.0_rc92.ebuild @@ -0,0 +1,80 @@ +# Copyright 1999-2020 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +# Change this when you update the ebuild +RUNC_COMMIT=dc9208a3303feef5b3839f4323d9beb36df0a9dd + +inherit go-module linux-info + +CONFIG_CHECK="~USER_NS" + +MY_PV="${PV/_/-}" +SRC_URI="https://github.com/opencontainers/${PN}/archive/v${MY_PV}.tar.gz -> ${P}.tar.gz" +KEYWORDS="~amd64 ~arm ~arm64 ~ppc64 ~x86" + +DESCRIPTION="runc container cli tools" +HOMEPAGE="http://runc.io" + +LICENSE="Apache-2.0 BSD-2 BSD MIT" +SLOT="0" +IUSE="apparmor hardened +kmem +seccomp selinux test" + +DEPEND="seccomp? ( sys-libs/libseccomp )" + +RDEPEND=" + ${DEPEND} + !app-emulation/docker-runc + apparmor? ( sys-libs/libapparmor ) +" + +BDEPEND=" + dev-go/go-md2man + test? ( "${RDEPEND}" ) +" + +S="${WORKDIR}/${PN}-${MY_PV}" + +# tests need busybox binary, and portage namespace +# sandboxing disabled: mount-sandbox pid-sandbox ipc-sandbox +# majority of tests pass +RESTRICT="test" + +src_compile() { + # Taken from app-emulation/docker-1.7.0-r1 + export CGO_CFLAGS="-I${ROOT}/usr/include" + export CGO_LDFLAGS="$(usex hardened '-fno-PIC ' '') + -L${ROOT}/usr/$(get_libdir)" + + # build up optional flags + local options=( + $(usev apparmor) + $(usev seccomp) + $(usev selinux) + $(usex kmem '' 'nokmem') + ) + + myemakeargs=( + BUILDTAGS="${options[*]}" + COMMIT=${RUNC_COMMIT} + DESTDIR="${ED}" + PREFIX="${ED}/usr" + ) + + # prevent double manpage generation + sed -i 's/^install-man: man/install-man:/' Makefile || die + + emake "${myemakeargs[@]}" runc man +} + +src_install() { + emake "${myemakeargs[@]}" install install-man install-bash + + local DOCS=( README.md PRINCIPLES.md docs/. ) + einstalldocs +} + +src_test() { + emake "${myemakeargs[@]}" localunittest +}