app-containers/container-libs: update to 0.70.0

Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
Part-of: https://github.com/gentoo/gentoo/pull/46937
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
This commit is contained in:
Rahil Bhimjiani
2026-10-22 22:20:29 +03:00
committed by Arthur Zamarin
parent 4b1afabf30
commit 23c92c8405
3 changed files with 120 additions and 0 deletions
+1
View File
@@ -1,2 +1,3 @@
DIST container-libs-0.68.0.tar.gz 13304245 BLAKE2B 73a578c45cd2fcf5d1481a17406c2b15472d2ae51d34154e847750fc32a5a8b6631404ef2bd261dec1d35a65fbe8b38d0d0053c6d1b0ecf31197025955d16173 SHA512 2725689c41904886c22de3d70a0fdcc93f36e588f2a49970d5ad94dfbcc2029581c3ef824ca7f9f01a52935a9703e41fa184132c61e1daac3f221966326bea40
DIST container-libs-0.69.0.tar.gz 13694913 BLAKE2B 85c79693473d67f1d6fddb2f9aa1c4b8e10863f28e4cf83d9d467cf69c306fcac3b444d4aaabb312ce694dd71581ff2ce17c4d2ff9c9c133932826f69eb00a39 SHA512 db2a199a702291b035826c0a27eacdfe2aa6d8a75de52d1c4c76718b1843b5960980ad9735d5d9e18f7f5ca0a5159a54316e8c74f0f17395ef94fd59f43dcaa6
DIST container-libs-0.70.0.tar.gz 14154969 BLAKE2B b3630a60de9a5bc06c4797a20883b0c61f106c9d31a0e54b34edb84f0061e65242b578d2420303cb6e1c4bb7e3e7c559521227f109d799324b2baa1fa5feab58 SHA512 9f42e25bdce8ffd4d377da4d4e028eda24f939f2dd56319375fee01e3c971b9a778da852579d0e216bd0f7773588ed5be8ad537218e42e624865a767185f0ec8
@@ -0,0 +1,80 @@
# Copyright 1999-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=9
inherit readme.gentoo-r1
DESCRIPTION="Several utilities from the containers project"
HOMEPAGE="https://github.com/podman-container-tools/container-libs"
SRC_URI="https://github.com/podman-container-tools/container-libs/archive/common/v${PV}.tar.gz -> ${P}.tar.gz"
S=${WORKDIR}/${PN}-common-v${PV}
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~loong ~riscv"
IUSE="+extra"
RESTRICT="test"
RDEPEND="
app-containers/containers-shortnames
>=sys-fs/fuse-overlayfs-1.16
extra? (
>=app-containers/crun-1.25.1
>=app-containers/netavark-2.0.0
>=net-misc/passt-2026.05.26
)
!app-containers/containers-image
!app-containers/containers-common
!app-containers/containers-storage
!<app-containers/buildah-1.44.0
!<app-containers/podman-6.0.0
!<app-containers/skopeo-1.23
"
DEPEND="${RDEPEND}"
BDEPEND=">=dev-go/go-md2man-2.0.7"
PATCHES=(
"${FILESDIR}"/c-libs-0.70.0-remove-go-cc.patch
)
DOC_CONTENTS="
For rootless operations, one needs to configure subuid(5) and subgid(5).
See /etc/sub{uid,gid} to check whether rootless user is already configured.
If not, quickly configure it with:\n
usermod --add-subuids 1065536-1131071 <rootless user>\n
usermod --add-subgids 1065536-1131071 <rootless user>
"
src_compile() {
emake -C common PREFIX="${EPREFIX}/usr" docs
emake -C image docs
emake -C storage docs
touch {images,layers}.lock || die
}
src_install() {
emake -C common DESTDIR="${D}" PREFIX="${EPREFIX}/usr" install
emake -C image DESTDIR="${ED}" install
emake -C storage DESTDIR="${ED}" install
readme.gentoo_create_doc
insinto /usr/share/containers
doins common/pkg/{seccomp/seccomp.json,subscriptions/mounts.conf} storage/storage.conf image/registries.conf
keepdir /etc/containers/{certs.d,oci/hooks.d,networks,systemd,registries.conf.d,registries.d} \
/var/lib/containers/sigstore /usr/share/containers/systemd
diropts -m0700
dodir /usr/lib/containers/storage/overlay-{images,layers}
local i
for i in images layers; do
insinto /usr/lib/containers/storage/overlay-"${i}"
doins "${i}".lock
done
insinto /usr/share/containers/registries.conf.d
newins "${FILESDIR}/c-libs-0.68.0-registries.conf" 00-gentoo.conf
}
pkg_postinst() {
readme.gentoo_print_elog
}
@@ -0,0 +1,39 @@
these lines add dev-lang/go and cc as BDEPEND unnecessarily so remove them
diff --git a/image/Makefile b/image/Makefile
index 9205e83..8b22f3e 100644
--- a/image/Makefile
+++ b/image/Makefile
@@ -1,11 +1,6 @@
export GOPROXY=https://proxy.golang.org
-GOBIN := $(shell go env GOBIN)
-ifeq ($(GOBIN),)
-GOBIN := $(shell go env GOPATH)/bin
-endif
-
# when cross compiling _for_ a Darwin or windows host, then we must use openpgp
BUILD_TAGS_WINDOWS_CROSS = containers_image_openpgp
BUILD_TAGS_DARWIN_CROSS = containers_image_openpgp
@@ -18,7 +13,6 @@ BUILDFLAGS := -tags "$(BUILDTAGS)" -ldflags '-X go.podman.io/image/v5/signature/
TESTFLAGS :=
TEST_PACKAGES := ./...
-PACKAGES := $(shell go list $(BUILDFLAGS) ./...)
SOURCE_DIRS = $(shell echo $(PACKAGES) | awk 'BEGIN{FS="/"; RS=" "}{print $$4}' | uniq)
PREFIX ?= ${DESTDIR}/usr
diff --git a/storage/Makefile b/storage/Makefile
index 064ed6b..0b95b92 100644
--- a/storage/Makefile
+++ b/storage/Makefile
@@ -21,9 +21,7 @@
test-unit
NATIVETAGS :=
-AUTOTAGS := $(shell ./hack/btrfs_tag.sh) $(shell ./hack/libsubid_tag.sh)
BUILDFLAGS := -tags "$(AUTOTAGS) $(TAGS)" $(FLAGS)
-GO ?= go
TESTFLAGS ?=
default all: local-binary docs local-cross ## build and cross-build\nbinaries and docs