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 index 8051dfba..c362b6a2 100644 --- 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 @@ -13,19 +13,16 @@ Signed-off-by: Bruce Ashfield src/import/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -diff --git a/src/import/Makefile b/src/import/Makefile -index 58ed8d3a..990edd1d 100644 ---- a/src/import/Makefile -+++ b/src/import/Makefile -@@ -136,7 +136,7 @@ binary: cmd/skopeo +Index: git/src/import/Makefile +=================================================================== +--- git.orig/src/import/Makefile ++++ git/src/import/Makefile +@@ -126,7 +126,7 @@ # Build w/o using containers .PHONY: bin/skopeo bin/skopeo: -- $(GO) build $(MOD_VENDOR) ${GO_DYN_FLAGS} ${SKOPEO_LDFLAGS} -gcflags "$(GOGCFLAGS)" -tags "$(BUILDTAGS)" -o $@ ./cmd/skopeo -+ $(GO) build $(GOBUILDFLAGS) $(MOD_VENDOR) ${GO_DYN_FLAGS} ${SKOPEO_LDFLAGS} -gcflags "$(GOGCFLAGS)" -tags "$(BUILDTAGS)" -o $@ ./cmd/skopeo +- $(GO) build ${GO_DYN_FLAGS} ${SKOPEO_LDFLAGS} -gcflags "$(GOGCFLAGS)" -tags "$(BUILDTAGS)" -o $@ ./cmd/skopeo ++ $(GO) build $(GOBUILDFLAGS) ${GO_DYN_FLAGS} ${SKOPEO_LDFLAGS} -gcflags "$(GOGCFLAGS)" -tags "$(BUILDTAGS)" -o $@ ./cmd/skopeo bin/skopeo.%: - GOOS=$(word 2,$(subst ., ,$@)) GOARCH=$(word 3,$(subst ., ,$@)) $(GO) build $(MOD_VENDOR) ${SKOPEO_LDFLAGS} -tags "containers_image_openpgp $(BUILDTAGS)" -o $@ ./cmd/skopeo + GOOS=$(word 2,$(subst ., ,$@)) GOARCH=$(word 3,$(subst ., ,$@)) $(GO) build ${SKOPEO_LDFLAGS} -tags "containers_image_openpgp $(BUILDTAGS)" -o $@ ./cmd/skopeo local-cross: bin/skopeo.darwin.amd64 bin/skopeo.linux.arm bin/skopeo.linux.arm64 bin/skopeo.windows.386.exe bin/skopeo.windows.amd64.exe --- -2.19.1 - diff --git a/recipes-containers/skopeo/skopeo_git.bb b/recipes-containers/skopeo/skopeo_git.bb index 8146fe1b..b52158d2 100644 --- a/recipes-containers/skopeo/skopeo_git.bb +++ b/recipes-containers/skopeo/skopeo_git.bb @@ -20,12 +20,12 @@ RDEPENDS:${PN} = " \ " SRC_URI = " \ - git://github.com/containers/skopeo;branch=release-1.11;protocol=https \ + git://github.com/containers/skopeo;branch=main;protocol=https \ file://0001-makefile-add-GOBUILDFLAGS-to-go-build-call.patch \ " -SRCREV = "d79588e6c1d2ff2053206a650adc1d30af591908" -PV = "v1.11.2+git${SRCPV}" +SRCREV = "cf5027809ac32847df8570bccb4e425a10ba1591" +PV = "v1.12.0+git${SRCPV}" GO_IMPORT = "import" S = "${WORKDIR}/git" @@ -56,9 +56,16 @@ do_compile() { # We also need to link in the ipallocator directory as that is not under # a src directory. ln -sfn . "${S}/src/import/vendor/src" + + # not used in v1.12+, but kept for temporary compatibiity mkdir -p "${S}/src/import/vendor/src/github.com/projectatomic/skopeo" ln -sfn "${S}/src/import/skopeo" "${S}/src/import/vendor/src/github.com/projectatomic/skopeo" ln -sfn "${S}/src/import/version" "${S}/src/import/vendor/src/github.com/projectatomic/skopeo/version" + + mkdir -p "${S}/src/import/vendor/src/github.com/containers/skopeo" + mkdir -p "${S}/src/import/vendor/src/github.com/containers/skopeo/cmd/skopeo" + ln -sfn "${S}/src/import/version" "${S}/src/import/vendor/src/github.com/containers/skopeo/version" + ln -sfn "${S}/src/import/cmd/skopeo/inspect" "${S}/src/import/vendor/src/github.com/containers/skopeo/cmd/skopeo/inspect" export GOPATH="${S}/src/import/vendor" # Pass the needed cflags/ldflags so that cgo