public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Zac Medico" <zmedico@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/containers-storage/
Date: Sun, 26 Aug 2018 00:06:52 +0000 (UTC)	[thread overview]
Message-ID: <1535242002.c541f97435478b52bc632eeddd8c8911811cc838.zmedico@gentoo> (raw)

commit:     c541f97435478b52bc632eeddd8c8911811cc838
Author:     Zac Medico <zmedico <AT> gentoo <DOT> org>
AuthorDate: Sat Aug 25 23:42:07 2018 +0000
Commit:     Zac Medico <zmedico <AT> gentoo <DOT> 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 <toralf <AT> 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 @@
 		<name>Zac Medico</name>
 	</maintainer>
 	<use>
+		<flag name="btrfs">
+			Enables dependencies for the "btrfs" graph driver, including
+			necessary kernel flags.
+		</flag>
+		<flag name="device-mapper">
+			Enables dependencies for the "devicemapper" graph driver, including
+			necessary kernel flags.
+		</flag>
 		<flag name="ostree">
 			Enables dependencies for handling of OSTree images.
 		</flag>


             reply	other threads:[~2018-08-26  0:06 UTC|newest]

Thread overview: 35+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-26  0:06 Zac Medico [this message]
  -- strict thread matches above, loose matches on Subject: below --
2021-04-26 21:38 [gentoo-commits] repo/gentoo:master commit in: app-emulation/containers-storage/ Zac Medico
2021-04-26 21:38 Zac Medico
2020-08-29 23:13 Zac Medico
2020-06-05 19:20 Zac Medico
2020-06-05 18:34 Zac Medico
2020-04-02  2:36 Zac Medico
2020-01-18 18:00 Zac Medico
2019-12-05 18:32 Zac Medico
2019-12-05 18:27 Zac Medico
2019-11-29  5:50 Zac Medico
2019-11-29  5:37 Zac Medico
2019-11-26 16:33 Zac Medico
2019-11-26  3:15 Zac Medico
2019-11-21  6:10 Zac Medico
2019-11-15 20:33 Zac Medico
2019-10-18  6:17 Zac Medico
2019-09-19  3:24 Zac Medico
2019-09-19  3:02 Zac Medico
2019-09-19  3:02 Zac Medico
2019-08-07 23:42 Zac Medico
2019-08-07 23:34 Zac Medico
2019-08-07 23:33 Zac Medico
2019-08-02 19:55 Zac Medico
2019-07-25 18:09 Zac Medico
2019-06-09 22:55 Zac Medico
2019-06-09 22:41 Zac Medico
2019-06-06 19:35 Zac Medico
2019-06-06 19:28 Zac Medico
2019-06-02  6:37 Zac Medico
2019-06-02  6:23 Zac Medico
2019-05-29  0:28 Zac Medico
2019-03-16 23:08 Zac Medico
2018-08-25  4:34 Zac Medico
2018-08-25  4:29 Zac Medico

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1535242002.c541f97435478b52bc632eeddd8c8911811cc838.zmedico@gentoo \
    --to=zmedico@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox