diff --git a/app-containers/containers-image/containers-image-5.29.2.ebuild b/app-containers/containers-image/containers-image-5.29.2-r1.ebuild similarity index 94% rename from app-containers/containers-image/containers-image-5.29.2.ebuild rename to app-containers/containers-image/containers-image-5.29.2-r1.ebuild index 0a3bb536ab4f0..ddd9efcc26d5b 100644 --- a/app-containers/containers-image/containers-image-5.29.2.ebuild +++ b/app-containers/containers-image/containers-image-5.29.2-r1.ebuild @@ -23,6 +23,7 @@ RESTRICT='test' BDEPEND=">=dev-go/go-md2man-2.0.3" PATCHES=( "${FILESDIR}"/moving-policy-json-default-yaml.patch + "${FILESDIR}"/prevent-downloading-mods-5.29.2.patch ) src_compile() { diff --git a/app-containers/containers-image/containers-image-9999.ebuild b/app-containers/containers-image/containers-image-9999.ebuild index 4fb96c1222c30..2df39141c68d9 100644 --- a/app-containers/containers-image/containers-image-9999.ebuild +++ b/app-containers/containers-image/containers-image-9999.ebuild @@ -21,6 +21,9 @@ SLOT="0" # https://github.com/gentoo/gentoo/pull/35012#discussion_r1473740969 RESTRICT='test' BDEPEND=">=dev-go/go-md2man-2.0.3" +PATCHES=( + "${FILESDIR}"/prevent-downloading-mods-5.29.2.patch +) src_compile() { emake docs diff --git a/app-containers/containers-image/files/prevent-downloading-mods-5.29.2.patch b/app-containers/containers-image/files/prevent-downloading-mods-5.29.2.patch new file mode 100644 index 0000000000000..8d70156bfb6ff --- /dev/null +++ b/app-containers/containers-image/files/prevent-downloading-mods-5.29.2.patch @@ -0,0 +1,10 @@ +--- a/Makefile ++++ b/Makefile +@@ -15,7 +15,6 @@ + BUILDTAGS = btrfs_noversion libdm_no_deferred_remove + BUILDFLAGS := -tags "$(BUILDTAGS)" + +-PACKAGES := $(shell GO111MODULE=on go list $(BUILDFLAGS) ./...) + SOURCE_DIRS = $(shell echo $(PACKAGES) | awk 'BEGIN{FS="/"; RS=" "}{print $$4}' | uniq) + + PREFIX ?= ${DESTDIR}/usr