public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-commits] repo/gentoo:master commit in: app-containers/skopeo/files/, app-containers/skopeo/
@ 2023-11-23 12:39 Sam James
  0 siblings, 0 replies; 2+ messages in thread
From: Sam James @ 2023-11-23 12:39 UTC (permalink / raw
  To: gentoo-commits

commit:     aee6415ac2f7cbaea64f5014f2d1596e281c72ce
Author:     Rahil Bhimjiani <rahil3108 <AT> gmail <DOT> com>
AuthorDate: Fri Sep 29 15:50:20 2023 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Thu Nov 23 12:38:24 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=aee6415a

app-containers/skopeo: add live & 1.14.0

Adds myself as proxied-maintainer
Complete rewrite of ebuild
1. builds more in line with upsteam's instructions
2. two new use flags: device-mapper rootless
3. removed libgpg-error as a dependenc

[sam: Maintainer timeout after pings on IRC and in the bug.]

Bug: https://bugs.gentoo.org/694906
Closes: https://bugs.gentoo.org/911537
Closes: https://bugs.gentoo.org/915504
Signed-off-by: Rahil Bhimjiani <rahil3108 <AT> gmail.com>
Closes: https://github.com/gentoo/gentoo/pull/33124
Signed-off-by: Sam James <sam <AT> gentoo.org>

 app-containers/skopeo/Manifest                    |  1 +
 app-containers/skopeo/files/makefile-1.14.0.patch | 38 +++++++++++
 app-containers/skopeo/metadata.xml                | 12 ++++
 app-containers/skopeo/skopeo-1.14.0.ebuild        | 80 +++++++++++++++++++++++
 app-containers/skopeo/skopeo-9999.ebuild          | 80 +++++++++++++++++++++++
 5 files changed, 211 insertions(+)

diff --git a/app-containers/skopeo/Manifest b/app-containers/skopeo/Manifest
index fe73fbdd706e..1af3899b804d 100644
--- a/app-containers/skopeo/Manifest
+++ b/app-containers/skopeo/Manifest
@@ -1,3 +1,4 @@
 DIST skopeo-1.10.0.tar.gz 6460856 BLAKE2B b904a161334ef0a3eaaab8c58f0c7e4c507fa68a09f8fa8235e8a9222d48c98874c9ce878a509e2816f210ffb37dbf707ff2653212e1efbd9ad6686efb97e147 SHA512 0d64e7f12a0d10c81074a04b6c74ed6e7213f598013f1ba672c4c696e9dad5827f41f41bb817263bf8606cd051b8e24e7eab65b95d73d8a1c8bbb3eaeb9defdb
 DIST skopeo-1.11.1.tar.gz 8071084 BLAKE2B 2411db318e377cfcfa9a80523c0bd4900201b1c17a4fe0f875dd78033bd4241e6c806816746ef77304e2edbc3737a3b22cfa83b83d65eb3c462cd5437de4e0b8 SHA512 521a2c8ddf629e361340a51d95200ec67bc4fef814e0449b6d679725536ec9448827229d4f993276f084269c2ec73c1b4edf97c0ce29122d950d350ed623a4b9
+DIST skopeo-1.14.0.tar.gz 10548883 BLAKE2B 6ecf54d236405ce59bedf77acc124fa8b3bb12acefa24a679a1d2d85957ddf585b5a6ba163806b8b7b510485d936adbe1afd6eee8c92b267b948f7d78ac83d05 SHA512 59d329036a97cbeca4de20b15d9dd8adacd5201834b26ae5e5c88b05594b2a7101c22da91f22c35c07a98e41afa28f2c7103e660b3847c7f8c9691f27f4c4146
 DIST skopeo-1.5.1.tar.gz 5636533 BLAKE2B 7f0e86cdee5c3250ec1280d7e71554ac2f8ad96ababe0e81dfabc00e8c128a13fc0c9c561b7a9be389d7386e9f664b95118bd2122612b9c2e8844db49769c03c SHA512 3f8c730eaa739bf2a29b82d3b04aa4eee1c09f957b61964fc8c48e59d1537bcb87b5bdf9c18fa48f9d36cf2b7ede3a1448918a20b5a3167f6ce09881a6cd3dde

diff --git a/app-containers/skopeo/files/makefile-1.14.0.patch b/app-containers/skopeo/files/makefile-1.14.0.patch
new file mode 100644
index 000000000000..ee3383925a2b
--- /dev/null
+++ b/app-containers/skopeo/files/makefile-1.14.0.patch
@@ -0,0 +1,38 @@
+# Patch by Rahil Bhimjiani (IRC: rahilarious) (rahil3108@gmail.com)
+#
+# Rationale behind this patch:
+# 1. We don't install these files (policy.json default.yaml) as part of skopeo because podman, buildah, et. al need them as well, and there's no need for those to depend on skopeo just for configuration. Rely on app-containers/containers-common which has them split out instead. See https://bugs.gentoo.org/849863
+# 2. Remove install-*: because it tries to (re)compile stuff (which we already built in src_compile) on install commands. src_install should only install, not compile
+#
+#
+--- a/Makefile
++++ b/Makefile
+@@ -158,23 +158,20 @@
+ 	rm -rf bin docs/*.1 completions/
+ 
+ install: install-binary install-docs install-completions
+-	install -d -m 755 ${DESTDIR}${LOOKASIDEDIR}
+ 	install -d -m 755 ${DESTDIR}${CONTAINERSCONFDIR}
+-	install -m 644 default-policy.json ${DESTDIR}${CONTAINERSCONFDIR}/policy.json
+ 	install -d -m 755 ${DESTDIR}${REGISTRIESDDIR}
+-	install -m 644 default.yaml ${DESTDIR}${REGISTRIESDDIR}/default.yaml
+ 
+-install-binary: bin/skopeo
++install-binary:
+ 	install -d -m 755 ${DESTDIR}${BINDIR}
+ 	install -m 755 bin/skopeo ${DESTDIR}${BINDIR}/skopeo
+ 
+-install-docs: docs
++install-docs:
+ ifneq ($(DISABLE_DOCS), 1)
+ 	install -d -m 755 ${DESTDIR}${MANDIR}/man1
+ 	install -m 644 docs/*.1 ${DESTDIR}${MANDIR}/man1
+ endif
+ 
+-install-completions: completions
++install-completions:
+ 	install -d -m 755 ${DESTDIR}${BASHINSTALLDIR}
+ 	install -m 644 completions/bash/skopeo ${DESTDIR}${BASHINSTALLDIR}
+ 	install -d -m 755 ${DESTDIR}${ZSHINSTALLDIR}
+ 	install -m 644 completions/zsh/_skopeo ${DESTDIR}${ZSHINSTALLDIR}
+ 	install -d -m 755 ${DESTDIR}${FISHINSTALLDIR}

diff --git a/app-containers/skopeo/metadata.xml b/app-containers/skopeo/metadata.xml
index 21cb782a75cf..2aaf8daf38f7 100644
--- a/app-containers/skopeo/metadata.xml
+++ b/app-containers/skopeo/metadata.xml
@@ -5,10 +5,22 @@
 		<email>williamh@gentoo.org</email>
 		<name>William Hubbs</name>
 	</maintainer>
+	<maintainer type="person" proxied="yes">
+		<email>me@rahil.website</email>
+		<name>Rahil Bhimjiani</name>
+	</maintainer>
+	<maintainer type="project" proxied="proxy">
+		<email>proxy-maint@gentoo.org</email>
+		<name>Proxy Maintainers</name>
+	</maintainer>
 	<use>
 		<flag name="btrfs">Enables dependencies for the "btrfs" graph driver.</flag>
+		<flag name="device-mapper">Compiles with libdevmapper</flag>
+		<flag name="rootless">Compiles with libsubid</flag>
 	</use>
 	<upstream>
 		<remote-id type="github">containers/skopeo</remote-id>
+		<bugs-to>https://github.com/containers/skopeo/issues</bugs-to>
+		<doc>https://github.com/containers/skopeo/blob/main/README.md</doc>
 	</upstream>
 </pkgmetadata>

diff --git a/app-containers/skopeo/skopeo-1.14.0.ebuild b/app-containers/skopeo/skopeo-1.14.0.ebuild
new file mode 100644
index 000000000000..63503fe4b2cf
--- /dev/null
+++ b/app-containers/skopeo/skopeo-1.14.0.ebuild
@@ -0,0 +1,80 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module linux-info
+
+DESCRIPTION="Work with remote container images registries"
+HOMEPAGE="https://github.com/containers/skopeo"
+
+if [[ ${PV} == 9999* ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/containers/skopeo.git"
+else
+	SRC_URI="https://github.com/containers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~arm64"
+fi
+
+# main
+LICENSE="Apache-2.0"
+# deps
+LICENSE+=" BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
+SLOT="0"
+IUSE="btrfs device-mapper rootless"
+
+RDEPEND="
+	app-containers/containers-common
+	>=app-crypt/gpgme-1.5.5:=
+	>=dev-libs/libassuan-2.4.3:=
+	btrfs? ( >=sys-fs/btrfs-progs-4.0.1 )
+	device-mapper? ( >=sys-fs/lvm2-2.02.145:= )
+	rootless? ( sys-apps/shadow:= )
+"
+
+# TODO: Is this really needed? cause upstream doesnt mention it https://github.com/containers/skopeo/blob/main/install.md#building-from-source
+# 	dev-libs/libgpg-error:=
+DEPEND="${RDEPEND}"
+BDEPEND="dev-go/go-md2man"
+
+RESTRICT="test"
+PATCHES=(
+ "${FILESDIR}"/makefile-1.14.0.patch
+)
+
+pkg_setup() {
+	use btrfs && CONFIG_CHECK+=" ~BTRFS_FS"
+	use device-mapper && CONFIG_CHECK+=" ~MD"
+	linux-info_pkg_setup
+}
+
+src_prepare() {
+	default
+	local file
+	for file in btrfs_installed_tag btrfs_tag libdm_tag libsubid_tag; do
+		[[ -f hack/"${file}".sh ]] || die
+	done
+
+	echo -e "#!/usr/bin/env bash\n echo" > hack/btrfs_installed_tag.sh || die
+	cat <<-EOF > hack/btrfs_tag.sh || die
+	#!/usr/bin/env bash
+	$(usex btrfs echo 'echo exclude_graphdriver_btrfs btrfs_noversion')
+	EOF
+
+	cat <<-EOF > hack/libdm_tag.sh || die
+	#!/usr/bin/env bash
+	$(usex device-mapper echo "echo libdm_no_deferred_remove")
+	EOF
+
+	cat <<-EOF > hack/libsubid_tag.sh || die
+	#!/usr/bin/env bash
+	$(usex rootless "echo libsubid" echo)
+	EOF
+}
+
+src_compile() {
+	# export variables which 'make install' is also going to use
+	export PREFIX="${EPREFIX}/usr" \
+		   CONTAINERSCONFDIR="${EPREFIX}/etc/containers"
+	# compile binary, docs, completions
+	emake all completions
+}

diff --git a/app-containers/skopeo/skopeo-9999.ebuild b/app-containers/skopeo/skopeo-9999.ebuild
new file mode 100644
index 000000000000..63503fe4b2cf
--- /dev/null
+++ b/app-containers/skopeo/skopeo-9999.ebuild
@@ -0,0 +1,80 @@
+# Copyright 2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+inherit go-module linux-info
+
+DESCRIPTION="Work with remote container images registries"
+HOMEPAGE="https://github.com/containers/skopeo"
+
+if [[ ${PV} == 9999* ]]; then
+	inherit git-r3
+	EGIT_REPO_URI="https://github.com/containers/skopeo.git"
+else
+	SRC_URI="https://github.com/containers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+	KEYWORDS="~amd64 ~arm64"
+fi
+
+# main
+LICENSE="Apache-2.0"
+# deps
+LICENSE+=" BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
+SLOT="0"
+IUSE="btrfs device-mapper rootless"
+
+RDEPEND="
+	app-containers/containers-common
+	>=app-crypt/gpgme-1.5.5:=
+	>=dev-libs/libassuan-2.4.3:=
+	btrfs? ( >=sys-fs/btrfs-progs-4.0.1 )
+	device-mapper? ( >=sys-fs/lvm2-2.02.145:= )
+	rootless? ( sys-apps/shadow:= )
+"
+
+# TODO: Is this really needed? cause upstream doesnt mention it https://github.com/containers/skopeo/blob/main/install.md#building-from-source
+# 	dev-libs/libgpg-error:=
+DEPEND="${RDEPEND}"
+BDEPEND="dev-go/go-md2man"
+
+RESTRICT="test"
+PATCHES=(
+ "${FILESDIR}"/makefile-1.14.0.patch
+)
+
+pkg_setup() {
+	use btrfs && CONFIG_CHECK+=" ~BTRFS_FS"
+	use device-mapper && CONFIG_CHECK+=" ~MD"
+	linux-info_pkg_setup
+}
+
+src_prepare() {
+	default
+	local file
+	for file in btrfs_installed_tag btrfs_tag libdm_tag libsubid_tag; do
+		[[ -f hack/"${file}".sh ]] || die
+	done
+
+	echo -e "#!/usr/bin/env bash\n echo" > hack/btrfs_installed_tag.sh || die
+	cat <<-EOF > hack/btrfs_tag.sh || die
+	#!/usr/bin/env bash
+	$(usex btrfs echo 'echo exclude_graphdriver_btrfs btrfs_noversion')
+	EOF
+
+	cat <<-EOF > hack/libdm_tag.sh || die
+	#!/usr/bin/env bash
+	$(usex device-mapper echo "echo libdm_no_deferred_remove")
+	EOF
+
+	cat <<-EOF > hack/libsubid_tag.sh || die
+	#!/usr/bin/env bash
+	$(usex rootless "echo libsubid" echo)
+	EOF
+}
+
+src_compile() {
+	# export variables which 'make install' is also going to use
+	export PREFIX="${EPREFIX}/usr" \
+		   CONTAINERSCONFDIR="${EPREFIX}/etc/containers"
+	# compile binary, docs, completions
+	emake all completions
+}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [gentoo-commits] repo/gentoo:master commit in: app-containers/skopeo/files/, app-containers/skopeo/
@ 2023-12-04 15:53 William Hubbs
  0 siblings, 0 replies; 2+ messages in thread
From: William Hubbs @ 2023-12-04 15:53 UTC (permalink / raw
  To: gentoo-commits

commit:     4ef82b584f403fe13034a4aae1ca410383c980ef
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Mon Dec  4 15:52:52 2023 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Mon Dec  4 15:52:52 2023 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4ef82b58

app-containers/skopeo: drop 1.14.0-r1

Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 app-containers/skopeo/files/makefile-1.14.0.patch | 38 -----------
 app-containers/skopeo/skopeo-1.14.0-r1.ebuild     | 81 -----------------------
 2 files changed, 119 deletions(-)

diff --git a/app-containers/skopeo/files/makefile-1.14.0.patch b/app-containers/skopeo/files/makefile-1.14.0.patch
deleted file mode 100644
index ee3383925a2b..000000000000
--- a/app-containers/skopeo/files/makefile-1.14.0.patch
+++ /dev/null
@@ -1,38 +0,0 @@
-# Patch by Rahil Bhimjiani (IRC: rahilarious) (rahil3108@gmail.com)
-#
-# Rationale behind this patch:
-# 1. We don't install these files (policy.json default.yaml) as part of skopeo because podman, buildah, et. al need them as well, and there's no need for those to depend on skopeo just for configuration. Rely on app-containers/containers-common which has them split out instead. See https://bugs.gentoo.org/849863
-# 2. Remove install-*: because it tries to (re)compile stuff (which we already built in src_compile) on install commands. src_install should only install, not compile
-#
-#
---- a/Makefile
-+++ b/Makefile
-@@ -158,23 +158,20 @@
- 	rm -rf bin docs/*.1 completions/
- 
- install: install-binary install-docs install-completions
--	install -d -m 755 ${DESTDIR}${LOOKASIDEDIR}
- 	install -d -m 755 ${DESTDIR}${CONTAINERSCONFDIR}
--	install -m 644 default-policy.json ${DESTDIR}${CONTAINERSCONFDIR}/policy.json
- 	install -d -m 755 ${DESTDIR}${REGISTRIESDDIR}
--	install -m 644 default.yaml ${DESTDIR}${REGISTRIESDDIR}/default.yaml
- 
--install-binary: bin/skopeo
-+install-binary:
- 	install -d -m 755 ${DESTDIR}${BINDIR}
- 	install -m 755 bin/skopeo ${DESTDIR}${BINDIR}/skopeo
- 
--install-docs: docs
-+install-docs:
- ifneq ($(DISABLE_DOCS), 1)
- 	install -d -m 755 ${DESTDIR}${MANDIR}/man1
- 	install -m 644 docs/*.1 ${DESTDIR}${MANDIR}/man1
- endif
- 
--install-completions: completions
-+install-completions:
- 	install -d -m 755 ${DESTDIR}${BASHINSTALLDIR}
- 	install -m 644 completions/bash/skopeo ${DESTDIR}${BASHINSTALLDIR}
- 	install -d -m 755 ${DESTDIR}${ZSHINSTALLDIR}
- 	install -m 644 completions/zsh/_skopeo ${DESTDIR}${ZSHINSTALLDIR}
- 	install -d -m 755 ${DESTDIR}${FISHINSTALLDIR}

diff --git a/app-containers/skopeo/skopeo-1.14.0-r1.ebuild b/app-containers/skopeo/skopeo-1.14.0-r1.ebuild
deleted file mode 100644
index b7a859d817d5..000000000000
--- a/app-containers/skopeo/skopeo-1.14.0-r1.ebuild
+++ /dev/null
@@ -1,81 +0,0 @@
-# Copyright 2023 Gentoo Authors
-# Distributed under the terms of the GNU General Public License v2
-
-EAPI=8
-inherit go-module linux-info
-
-DESCRIPTION="Work with remote container images registries"
-HOMEPAGE="https://github.com/containers/skopeo"
-
-if [[ ${PV} == 9999* ]]; then
-	inherit git-r3
-	EGIT_REPO_URI="https://github.com/containers/skopeo.git"
-else
-	SRC_URI="https://github.com/containers/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
-	KEYWORDS="~amd64 ~arm64"
-fi
-
-# main
-LICENSE="Apache-2.0 BSD BSD-2 CC-BY-SA-4.0 ISC MIT"
-SLOT="0"
-IUSE="btrfs device-mapper rootless"
-
-COMMON_DEPEND="
-	>=app-crypt/gpgme-1.5.5:=
-	>=dev-libs/libassuan-2.4.3:=
-	btrfs? ( >=sys-fs/btrfs-progs-4.0.1 )
-	device-mapper? ( >=sys-fs/lvm2-2.02.145:= )
-	rootless? ( sys-apps/shadow:= )
-"
-
-# TODO: Is this really needed? cause upstream doesnt mention it https://github.com/containers/skopeo/blob/main/install.md#building-from-source
-# 	dev-libs/libgpg-error:=
-DEPEND="${COMMON_DEPEND}"
-RDEPEND="
-	${COMMON_DEPEND}
-	app-containers/containers-common
-"
-BDEPEND="dev-go/go-md2man"
-
-RESTRICT="test"
-PATCHES=(
- "${FILESDIR}"/makefile-1.14.0.patch
-)
-
-pkg_setup() {
-	use btrfs && CONFIG_CHECK+=" ~BTRFS_FS"
-	use device-mapper && CONFIG_CHECK+=" ~MD"
-	linux-info_pkg_setup
-}
-
-src_prepare() {
-	default
-	local file
-	for file in btrfs_installed_tag btrfs_tag libdm_tag libsubid_tag; do
-		[[ -f hack/"${file}".sh ]] || die
-	done
-
-	echo -e "#!/usr/bin/env bash\n echo" > hack/btrfs_installed_tag.sh || die
-	cat <<-EOF > hack/btrfs_tag.sh || die
-	#!/usr/bin/env bash
-	$(usex btrfs echo 'echo exclude_graphdriver_btrfs btrfs_noversion')
-	EOF
-
-	cat <<-EOF > hack/libdm_tag.sh || die
-	#!/usr/bin/env bash
-	$(usex device-mapper echo "echo libdm_no_deferred_remove exclude_graphdriver_devicemapper")
-	EOF
-
-	cat <<-EOF > hack/libsubid_tag.sh || die
-	#!/usr/bin/env bash
-	$(usex rootless "echo libsubid" echo)
-	EOF
-}
-
-src_compile() {
-	# export variables which 'make install' is also going to use
-	export PREFIX="${EPREFIX}/usr" \
-		   CONTAINERSCONFDIR="${EPREFIX}/etc/containers"
-	# compile binary, docs, completions
-	emake all completions
-}


^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2023-12-04 15:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-12-04 15:53 [gentoo-commits] repo/gentoo:master commit in: app-containers/skopeo/files/, app-containers/skopeo/ William Hubbs
  -- strict thread matches above, loose matches on Subject: below --
2023-11-23 12:39 Sam James

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox