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 77DB2138334 for ; Sun, 26 Aug 2018 00:06:59 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 4F4F2E07A9; Sun, 26 Aug 2018 00:06:58 +0000 (UTC) Received: from smtp.gentoo.org (dev.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 03F76E07A9 for ; Sun, 26 Aug 2018 00:06:56 +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 3EF90335D1E for ; Sun, 26 Aug 2018 00:06:55 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id DADD83B2 for ; Sun, 26 Aug 2018 00:06:52 +0000 (UTC) From: "Zac Medico" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Zac Medico" Message-ID: <1535242002.c541f97435478b52bc632eeddd8c8911811cc838.zmedico@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/containers-storage/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-emulation/containers-storage/containers-storage-0_pre20180730.ebuild app-emulation/containers-storage/metadata.xml X-VCS-Directories: app-emulation/containers-storage/ X-VCS-Committer: zmedico X-VCS-Committer-Name: Zac Medico X-VCS-Revision: c541f97435478b52bc632eeddd8c8911811cc838 X-VCS-Branch: master Date: Sun, 26 Aug 2018 00:06:52 +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: febd3e8f-c138-4093-bda2-5030a817b428 X-Archives-Hash: 9b8177089c7d9a52db62e256a5e00f81 commit: c541f97435478b52bc632eeddd8c8911811cc838 Author: Zac Medico gentoo org> AuthorDate: Sat Aug 25 23:42:07 2018 +0000 Commit: Zac Medico gentoo org> CommitDate: Sun Aug 26 00:06:42 2018 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=c541f974 app-emulation/containers-storage: add btrfs dep (bug 664574) Add btrfs USE flag, and also a device-mapper USE flag. Use GOCACHE=off to hopefully avoid the reported /root/cache sandbox violation. Reported-by: Toralf Förster gentoo.org> Closes: https://bugs.gentoo.org/664574 Package-Manager: Portage-2.3.48, Repoman-2.3.10 .../containers-storage-0_pre20180730.ebuild | 28 +++++++++++++++------- app-emulation/containers-storage/metadata.xml | 8 +++++++ 2 files changed, 28 insertions(+), 8 deletions(-) diff --git a/app-emulation/containers-storage/containers-storage-0_pre20180730.ebuild b/app-emulation/containers-storage/containers-storage-0_pre20180730.ebuild index ab4de85d15b..cd2ef64ffa5 100644 --- a/app-emulation/containers-storage/containers-storage-0_pre20180730.ebuild +++ b/app-emulation/containers-storage/containers-storage-0_pre20180730.ebuild @@ -14,19 +14,25 @@ DESCRIPTION="containers/storage library" HOMEPAGE="https://github.com/containers/storage" LICENSE="Apache-2.0" SLOT="0" -IUSE="ostree test" +IUSE="btrfs +device-mapper ostree test" EGO_PN="${HOMEPAGE#*//}" EGIT_COMMIT="17c7d1fee5603ccf6dd97edc14162fc1510e7e23" SRC_URI="https://${EGO_PN}/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz ${EGO_VENDOR_URI}" -RDEPEND="sys-fs/lvm2:= +RDEPEND=" + btrfs? ( sys-fs/btrfs-progs ) + device-mapper? ( sys-fs/lvm2:= ) ostree? ( dev-libs/glib:= dev-util/ostree:= )" DEPEND="${RDEPEND} dev-go/go-md2man - test? ( sys-apps/util-linux )" + test? ( + sys-fs/btrfs-progs + sys-fs/lvm2 + sys-apps/util-linux + )" RESTRICT="test? ( userpriv ) !test? ( test )" src_unpack() { @@ -36,6 +42,14 @@ src_unpack() { src_prepare() { default + [[ -f ${S}/src/${EGO_PN}/hack/btrfs_tag.sh ]] || die + use btrfs || { echo -e "#!/bin/sh\necho btrfs_noversion exclude_graphdriver_btrfs" > \ + "${S}/src/${EGO_PN}/hack/btrfs_tag.sh" || die; } + + [[ -f ${S}/src/${EGO_PN}/hack/libdm_tag.sh ]] || die + use device-mapper || { echo -e "#!/bin/sh\necho btrfs_noversion exclude_graphdriver_devicemapper" > \ + "${S}/src/${EGO_PN}/hack/libdm_tag.sh" || die; } + [[ -f ${S}/src/${EGO_PN}/hack/ostree_tag.sh ]] || die use ostree || { echo -e "#!/bin/sh\ntrue" > \ "${S}/src/${EGO_PN}/hack/ostree_tag.sh" || die; } @@ -65,8 +79,6 @@ src_prepare() { -e 's:TestCopyCaseH(:_\0:' \ -e 's:TestCopyCaseHFSym(:_\0:' \ -e 's:TestCopyCaseJ(:_\0:' \ - -e 's:TestCopyCaseEFSym(:_\0:' \ - -e 's:TestCopyCaseG(:_\0:' \ -e 's:TestCopyCaseJFSym(:_\0:' \ -i "${S}/src/${EGO_PN}/pkg/archive/copy_unix_test.go" || die sed -e 's:TestMount(:_\0:' \ @@ -78,9 +90,9 @@ src_compile() { ln -s "${S}/src/${EGO_PN}/vendor/github.com/pquerna/ffjson" "${WORKDIR}/${P}/src/github.com/pquerna/ffjson" || die mkdir -p "${S}/bin" || die cd "${S}/bin" || die - GOPATH="${S}" GOBIN="${S}/bin" \ + GOPATH="${S}" GOBIN="${S}/bin" GOCACHE=off \ go build -v -work -x ${EGO_BUILD_FLAGS} "${S}/src/github.com/pquerna/ffjson/ffjson.go" || die - GOPATH="${S}" GOBIN="${S}/bin" PATH="${S}/bin:${PATH}" \ + GOPATH="${S}" GOBIN="${S}/bin" PATH="${S}/bin:${PATH}" GOCACHE=off \ emake -C "${S}/src/${EGO_PN}" containers-storage docs } @@ -93,5 +105,5 @@ src_install() { } src_test() { - GOPATH="${S}" unshare -m emake -C "${S}/src/${EGO_PN}" local-test-unit + GOPATH="${S}" GOCACHE=off unshare -m emake -C "${S}/src/${EGO_PN}" local-test-unit } diff --git a/app-emulation/containers-storage/metadata.xml b/app-emulation/containers-storage/metadata.xml index 5bf567e579a..17371971e52 100644 --- a/app-emulation/containers-storage/metadata.xml +++ b/app-emulation/containers-storage/metadata.xml @@ -6,6 +6,14 @@ Zac Medico + + Enables dependencies for the "btrfs" graph driver, including + necessary kernel flags. + + + Enables dependencies for the "devicemapper" graph driver, including + necessary kernel flags. + Enables dependencies for handling of OSTree images.