summaryrefslogtreecommitdiffstats
path: root/recipes-containers/skopeo/files/0001-makefile-add-GOBUILDFLAGS-to-go-build-call.patch
diff options
context:
space:
mode:
Diffstat (limited to 'recipes-containers/skopeo/files/0001-makefile-add-GOBUILDFLAGS-to-go-build-call.patch')
-rw-r--r--recipes-containers/skopeo/files/0001-makefile-add-GOBUILDFLAGS-to-go-build-call.patch29
1 files changed, 29 insertions, 0 deletions
diff --git a/recipes-containers/skopeo/files/0001-makefile-add-GOBUILDFLAGS-to-go-build-call.patch b/recipes-containers/skopeo/files/0001-makefile-add-GOBUILDFLAGS-to-go-build-call.patch
new file mode 100644
index 00000000..4129e8b6
--- /dev/null
+++ b/recipes-containers/skopeo/files/0001-makefile-add-GOBUILDFLAGS-to-go-build-call.patch
@@ -0,0 +1,29 @@
1From 7037cb27718fe23541885684fdacec9c52ee0e30 Mon Sep 17 00:00:00 2001
2From: Bruce Ashfield <bruce.ashfield@gmail.com>
3Date: Tue, 13 Sep 2022 11:55:45 -0400
4Subject: [PATCH] makefile: add GOBUILDFLAGS to go build call
5
6We may need to specify things like -trimpath, so add $(GOBUILDFLAGS)
7to allow them to be passed from the recipe to the Makefile.
8
9Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
10---
11 src/import/Makefile | 2 +-
12 1 file changed, 1 insertion(+), 1 deletion(-)
13
14diff --git a/src/import/Makefile b/src/import/Makefile
15index 58ed8d3a..990edd1d 100644
16--- a/src/import/Makefile
17+++ b/src/import/Makefile
18@@ -136,7 +136,7 @@ binary: cmd/skopeo
19 # Build w/o using containers
20 .PHONY: bin/skopeo
21 bin/skopeo:
22- $(GO) build $(MOD_VENDOR) ${GO_DYN_FLAGS} ${SKOPEO_LDFLAGS} -gcflags "$(GOGCFLAGS)" -tags "$(BUILDTAGS)" -o $@ ./cmd/skopeo
23+ $(GO) build $(GOBUILDFLAGS) $(MOD_VENDOR) ${GO_DYN_FLAGS} ${SKOPEO_LDFLAGS} -gcflags "$(GOGCFLAGS)" -tags "$(BUILDTAGS)" -o $@ ./cmd/skopeo
24 bin/skopeo.%:
25 GOOS=$(word 2,$(subst ., ,$@)) GOARCH=$(word 3,$(subst ., ,$@)) $(GO) build $(MOD_VENDOR) ${SKOPEO_LDFLAGS} -tags "containers_image_openpgp $(BUILDTAGS)" -o $@ ./cmd/skopeo
26 local-cross: bin/skopeo.darwin.amd64 bin/skopeo.linux.arm bin/skopeo.linux.arm64 bin/skopeo.windows.386.exe bin/skopeo.windows.amd64.exe
27--
282.19.1
29