app-emulation/skopeo: add upstream VFS user xattrs patch
authorZac Medico <zmedico@gentoo.org>
Tue, 26 Nov 2019 04:31:17 +0000 (20:31 -0800)
committerZac Medico <zmedico@gentoo.org>
Tue, 26 Nov 2019 04:31:17 +0000 (20:31 -0800)
Package-Manager: Portage-2.3.79, Repoman-2.3.18
Signed-off-by: Zac Medico <zmedico@gentoo.org>
app-emulation/skopeo/Manifest
app-emulation/skopeo/skopeo-0.1.40-r1.ebuild [moved from app-emulation/skopeo/skopeo-0.1.40.ebuild with 75% similarity]

index a2d4b48ca796479d76523664a337b73697becd4b..01fc9d0acf5fc608418cfa6b69603317144c7ab2 100644 (file)
@@ -1,2 +1,3 @@
+DIST containers-storage-1.14.0-vfs-user-xattrs.patch 14835 BLAKE2B 99c35933dcb25385ee83b80cf282c11c738d0e4d91216cc08a50522f6caa9bca5938299412908f16df404f99e80616a10b4c02c0ebc38240a987830ddaf15008 SHA512 62c7ed49728bd12b5706f59b0d4af3b18d90e8cfc2b06e681f84fe3f5d3e0cd5c0317147109c4e3ec4fec26f82c269af3c9813e47339ce102e4e97400b74627d
 DIST skopeo-0.1.39.tar.gz 3850036 BLAKE2B e635be475f22cc25ab98e446424f4a6b0babe34f827a73f9c9c1533db782490e9af94e759ac78fbeeec1c0e1fa42eef9d09fb4e7ff1f4df654f65fe4c1a9f7b0 SHA512 c4aadc40f9d637c628cd96c204b3e9bc3a928c145521bed2e5046508fc936ff99442dda8b4a4cdd85c4d04e64a9ccee5ea8d563c6ebf4e6020d50d96b921716c
 DIST skopeo-0.1.40.tar.gz 3907911 BLAKE2B 0a9ebcc9662036b1595149f0d19a46c0565b115d37b22c6410041eef3e6755b20561439596f1033dd6ce2c78a4948e358b2518003729873d5ab8ce9a7bec082c SHA512 161edb8afa961e48e314cf70a4fcebd971a45a50fc11eab6ec751ba4eb05a8be011d16b83c4ed1fa9d6336846da5f518da006d4476ee4e29a160c629820773d3
similarity index 75%
rename from app-emulation/skopeo/skopeo-0.1.40.ebuild
rename to app-emulation/skopeo/skopeo-0.1.40-r1.ebuild
index 3ee26d3ab1ad74fabda4c1490e24a81313cfba9e..c42103170fb001a60bf0487e87a09406860284ae 100644 (file)
@@ -7,7 +7,9 @@ inherit go-module bash-completion-r1
 
 DESCRIPTION="Command line utility foroperations on container images and image repositories"
 HOMEPAGE="https://github.com/containers/skopeo"
-SRC_URI="https://github.com/containers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+CONTAINERS_STORAGE_PATCH="containers-storage-1.14.0-vfs-user-xattrs.patch"
+SRC_URI="https://github.com/containers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
+       https://github.com/containers/storage/pull/466.patch -> ${CONTAINERS_STORAGE_PATCH}"
 
 LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
 SLOT="0"
@@ -25,6 +27,14 @@ RDEPEND="${COMMON_DEPEND}"
 
 RESTRICT="test"
 
+src_prepare() {
+       default
+       sed -e 's| \([ab]\)/| \1/vendor/github.com/containers/storage/|' < \
+               "${DISTDIR}/${CONTAINERS_STORAGE_PATCH}" > \
+               "${WORKDIR}/${CONTAINERS_STORAGE_PATCH}" || die
+       eapply "${WORKDIR}/${CONTAINERS_STORAGE_PATCH}"
+}
+
 src_compile() {
        local BUILDTAGS="containers_image_ostree_stub"
        set -- env -u GOCACHE -u XDG_CACHE_HOME \