commit:     95c061b0ea87119901a1c81c1eb9dae3d2e2b297
Author:     William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Jan 27 20:27:56 2022 +0000
Commit:     William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Jan 27 20:29:03 2022 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95c061b0

app-containers/cosign: fix makefile

Thanks to ionen for this fix.

Package-Manager: Portage-3.0.30, Repoman-3.0.3
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>

 app-containers/cosign/cosign-1.5.0.ebuild                   |  4 ++++
 app-containers/cosign/files/cosign-1.5.0-fix-makefile.patch | 13 +++++++++++++
 2 files changed, 17 insertions(+)

diff --git a/app-containers/cosign/cosign-1.5.0.ebuild 
b/app-containers/cosign/cosign-1.5.0.ebuild
index f1320114bcd2..801eb64a2691 100644
--- a/app-containers/cosign/cosign-1.5.0.ebuild
+++ b/app-containers/cosign/cosign-1.5.0.ebuild
@@ -13,6 +13,10 @@ LICENSE="Apache-2.0"
 SLOT="0"
 KEYWORDS="~amd64"
 
+PATCHES=(
+       "${FILESDIR}"/${P}-fix-makefile.patch
+)
+
 src_prepare() {
        default
        mv ../vendor . || die

diff --git a/app-containers/cosign/files/cosign-1.5.0-fix-makefile.patch 
b/app-containers/cosign/files/cosign-1.5.0-fix-makefile.patch
new file mode 100644
index 000000000000..15cdc7511136
--- /dev/null
+++ b/app-containers/cosign/files/cosign-1.5.0-fix-makefile.patch
@@ -0,0 +1,13 @@
+--- a/Makefile 2022-01-22 16:06:02.000000000 -0500
++++ b/Makefile 2022-01-27 15:06:43.986094208 -0500
+@@ -71,8 +71,8 @@
+ checkfmt: SHELL := /usr/bin/env bash
+ checkfmt: ## Check formatting of all go files
+       @ $(MAKE) --no-print-directory log-$@
+-      $(shell test -z "$(shell gofmt -l $(GOFILES) | tee /dev/stderr)")
+-      $(shell test -z "$(shell goimports -l $(GOFILES) | tee /dev/stderr)")
++      $(shell test -z "$(shell gofmt -l $(GOFILES) | tee /dev/stderr)")
++      $(shell test -z "$(shell goimports -l $(GOFILES) | tee /dev/stderr)")
+ 
+ .PHONY: fmt
+ fmt: ## Format all go files

Reply via email to