diff options
author | V3n3RiX <venerix@koprulu.sector> | 2024-03-31 02:13:53 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2024-03-31 02:13:53 +0100 |
commit | 95f4ecedd41206e678e2ddec24f8382ba2287dd1 (patch) | |
tree | cda4312d875acc2990aeb49d104c9451aae1666d /app-containers/buildah/buildah-1.34.3.ebuild | |
parent | a40f8cd35ca0e91929e52f40825a390bd16a626c (diff) |
gentoo auto-resync : 31:03:2024 - 02:13:53
Diffstat (limited to 'app-containers/buildah/buildah-1.34.3.ebuild')
-rw-r--r-- | app-containers/buildah/buildah-1.34.3.ebuild | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/app-containers/buildah/buildah-1.34.3.ebuild b/app-containers/buildah/buildah-1.34.3.ebuild index 6a223369f6ba..4b82e782d4f3 100644 --- a/app-containers/buildah/buildah-1.34.3.ebuild +++ b/app-containers/buildah/buildah-1.34.3.ebuild @@ -44,6 +44,10 @@ RDEPEND=" DEPEND="${RDEPEND}" BDEPEND="dev-go/go-md2man" +PATCHES=( + "${T}"/dont-call-as-directly-upstream-pr-5436.patch +) + pkg_pretend() { local CONFIG_CHECK="" use btrfs && CONFIG_CHECK+=" ~BTRFS_FS" @@ -53,6 +57,27 @@ pkg_pretend() { } src_prepare() { + cat <<'EOF' > "${T}/dont-call-as-directly-upstream-pr-5436.patch" +--- a/Makefile ++++ b/Makefile +@@ -10,6 +10,7 @@ + BASHINSTALLDIR = $(PREFIX)/share/bash-completion/completions + BUILDFLAGS := -tags "$(BUILDTAGS)" + BUILDAH := buildah ++AS ?= as + + GO := go + GO_LDFLAGS := $(shell if $(GO) version|grep -q gccgo; then echo "-gccgoflags"; else echo "-ldflags"; fi) +@@ -77,7 +77,7 @@ + bin/buildah: $(SOURCES) cmd/buildah/*.go internal/mkcw/embed/entrypoint_amd64.gz + $(GO_BUILD) $(BUILDAH_LDFLAGS) $(GO_GCFLAGS) "$(GOGCFLAGS)" -o $@ $(BUILDFLAGS) ./cmd/buildah + +-ifneq ($(shell as --version | grep x86_64),) ++ifneq ($(shell $(AS) --version | grep x86_64),) + internal/mkcw/embed/entrypoint_amd64.gz: internal/mkcw/embed/entrypoint_amd64 + gzip -k9nf $^ +EOF + default # ensure all necessary files are there |