* [gentoo-commits] repo/gentoo:master commit in: app-containers/cosign/files/, app-containers/cosign/
@ 2022-01-27 20:29 William Hubbs
0 siblings, 0 replies; 2+ messages in thread
From: William Hubbs @ 2022-01-27 20:29 UTC (permalink / raw
To: gentoo-commits
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
^ permalink raw reply related [flat|nested] 2+ messages in thread
* [gentoo-commits] repo/gentoo:master commit in: app-containers/cosign/files/, app-containers/cosign/
@ 2022-07-28 0:15 William Hubbs
0 siblings, 0 replies; 2+ messages in thread
From: William Hubbs @ 2022-07-28 0:15 UTC (permalink / raw
To: gentoo-commits
commit: 70907ff4c71a8f9f737d3255fc399fd76e599092
Author: William Hubbs <williamh <AT> gentoo <DOT> org>
AuthorDate: Thu Jul 28 00:10:56 2022 +0000
Commit: William Hubbs <williamh <AT> gentoo <DOT> org>
CommitDate: Thu Jul 28 00:14:48 2022 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=70907ff4
app-containers/cosign: remove the goimports calls
Add a patch from upstream for this bug.
Closes: https://bugs.gentoo.org/859208
Signed-off-by: William Hubbs <williamh <AT> gentoo.org>
app-containers/cosign/cosign-1.10.0.ebuild | 4 +++
.../cosign/files/cosign-1.10.0-fix-makefile.patch | 40 ++++++++++++++++++++++
2 files changed, 44 insertions(+)
diff --git a/app-containers/cosign/cosign-1.10.0.ebuild b/app-containers/cosign/cosign-1.10.0.ebuild
index 194effdf1cd3..7adb2e5ed8d1 100644
--- a/app-containers/cosign/cosign-1.10.0.ebuild
+++ b/app-containers/cosign/cosign-1.10.0.ebuild
@@ -16,6 +16,10 @@ KEYWORDS="~amd64"
RESTRICT="test"
+PATCHES=(
+ "${FILESDIR}"/${P}-fix-makefile.patch
+)
+
src_compile() {
emake \
GIT_HASH=${GIT_HASH} \
diff --git a/app-containers/cosign/files/cosign-1.10.0-fix-makefile.patch b/app-containers/cosign/files/cosign-1.10.0-fix-makefile.patch
new file mode 100644
index 000000000000..5699bca5732c
--- /dev/null
+++ b/app-containers/cosign/files/cosign-1.10.0-fix-makefile.patch
@@ -0,0 +1,40 @@
+diff --git a/Makefile b/Makefile
+index 3b6dcb5..8981549 100644
+--- a/Makefile
++++ b/Makefile
+@@ -20,8 +20,6 @@ else
+ GOBIN=$(shell go env GOBIN)
+ endif
+
+-GOFILES ?= $(shell find . -type f -name '*.go' -not -path "./vendor/*")
+-
+ # Set version variables for LDFLAGS
+ PROJECT_ID ?= projectsigstore
+ RUNTIME_IMAGE ?= gcr.io/distroless/static
+@@ -72,18 +70,6 @@ log-%:
+ printf "\033[36m==> %s\033[0m\n", $$2 \
+ }'
+
+-.PHONY: checkfmt
+-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)")
+-
+-.PHONY: fmt
+-fmt: ## Format all go files
+- @ $(MAKE) --no-print-directory log-$@
+- goimports -w $(GOFILES)
+-
+ cosign: $(SRCS)
+ CGO_ENABLED=0 go build -trimpath -ldflags "$(LDFLAGS)" -o $@ ./cmd/cosign
+
+@@ -121,7 +107,6 @@ clean:
+ rm -rf sget
+ rm -rf dist/
+
+-
+ KOCACHE_PATH=/tmp/ko
+ ARTIFACT_HUB_LABELS=--image-label io.artifacthub.package.readme-url="https://raw.githubusercontent.com/sigstore/cosign/main/README.md" \
+ --image-label io.artifacthub.package.logo-url=https://raw.githubusercontent.com/sigstore/cosign/main/images/logo.svg \
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2022-07-28 0:15 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2022-01-27 20:29 [gentoo-commits] repo/gentoo:master commit in: app-containers/cosign/files/, app-containers/cosign/ William Hubbs
-- strict thread matches above, loose matches on Subject: below --
2022-07-28 0:15 William Hubbs
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox