From 005cda2f6d81247646a84144ebdafda74969a384 Mon Sep 17 00:00:00 2001 From: Renbo Date: Thu, 8 Jun 2023 11:43:39 +0800 Subject: [PATCH 1/2] update to skopeo-1.11.2-0.2.module+el8.8.0+18251+ad5b274c Signed-off-by: Renbo --- 0001-add-loong64-support-for-etcd.patch | 29 ------------ download | 2 +- skopeo.spec | 59 ++++++++++++++++--------- 3 files changed, 40 insertions(+), 50 deletions(-) delete mode 100644 0001-add-loong64-support-for-etcd.patch diff --git a/0001-add-loong64-support-for-etcd.patch b/0001-add-loong64-support-for-etcd.patch deleted file mode 100644 index bb6f9f5..0000000 --- a/0001-add-loong64-support-for-etcd.patch +++ /dev/null @@ -1,29 +0,0 @@ -From e6fea3042b3b9f9986ce9e19c730b2bd3d3eaa05 Mon Sep 17 00:00:00 2001 -From: rpm-build -Date: Fri, 30 Dec 2022 06:22:44 +0000 -Subject: [PATCH] add loong64 support for etcd - ---- - vendor/go.etcd.io/bbolt/bolt_loong64.go | 10 ++++++++++ - 1 file changed, 10 insertions(+) - create mode 100644 vendor/go.etcd.io/bbolt/bolt_loong64.go - -diff --git a/vendor/go.etcd.io/bbolt/bolt_loong64.go b/vendor/go.etcd.io/bbolt/bolt_loong64.go -new file mode 100644 -index 0000000..d02d59e ---- /dev/null -+++ b/vendor/go.etcd.io/bbolt/bolt_loong64.go -@@ -0,0 +1,10 @@ -+// +build loong64 -+ -+package bbolt -+ -+// maxMapSize represents the largest mmap size supported by Bolt. -+const maxMapSize = 0x8000000000 // 512GB -+ -+// maxAllocSize is the size used when creating array pointers. -+const maxAllocSize = 0x7FFFFFFF -+ --- -2.27.0 - diff --git a/download b/download index 96edfd7..ef565df 100644 --- a/download +++ b/download @@ -1 +1 @@ -92fbb68275179666699976f64afc12d1 release-1.9-04d99f7.tar.gz +eb3bec6d86707bffa79fb44c1b098d11 release-1.11-3f98753.tar.gz diff --git a/skopeo.spec b/skopeo.spec index f8dfcaf..b7d05d8 100644 --- a/skopeo.spec +++ b/skopeo.spec @@ -1,27 +1,22 @@ +%global debug_package %{nil} %global with_check 0 -%global anolis_release .0.1 %if 0%{?rhel} > 7 && ! 0%{?fedora} -%ifarch loongarch64 -%define gobuild(o:) \ -go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v %{?**}; -%else %define gobuild(o:) \ go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v %{?**}; -%endif %else %define gobuild(o:) GO111MODULE=off go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v %{?**}; %endif %global import_path github.com/containers/%{name} -%global branch release-1.9 -%global commit0 04d99f7eb2de0abdb04ea6b7b9f3fff77dfe4c9f +%global branch release-1.11 +%global commit0 3f98753bfdaa2c9e0465328b279f48bbdaa2ddaa %global shortcommit0 %(c=%{commit0}; echo ${c:0:7}) Epoch: 2 Name: skopeo -Version: 1.9.4 -Release: 0.1%{anolis_release}%{?dist} +Version: 1.11.2 +Release: 0.2%{?dist} Summary: Inspect container images and repositories on registries License: ASL 2.0 URL: https://%{import_path} @@ -32,8 +27,6 @@ Source0: https://%{import_path}/tarball/%{commit0}/%{branch}-%{shortcommit0}.tar %else Source0: https://%{import_path}/archive/%{commit0}/%{name}-%{version}-%{shortcommit0}.tar.gz %endif - -Patch001: 0001-add-loong64-support-for-etcd.patch BuildRequires: git-core BuildRequires: golang >= 1.17.7 BuildRequires: /usr/bin/go-md2man @@ -129,16 +122,42 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath} %{_datadir}/%{name}/test %changelog -* Thu Mar 02 2023 Wenlong Zhang - 2:1.9.4-0.1.0.1 -- add loong64 support for skopeo +* Wed Feb 22 2023 Jindrich Novy - 2:1.11.2-0.2 +- fix build +- Related: #2123641 + +* Tue Feb 21 2023 Jindrich Novy - 2:1.11.2-0.1 +- update to the latest content of https://github.com/containers/skopeo/tree/release-1.11 + (https://github.com/containers/skopeo/commit/3f98753) +- Related: #2123641 + +* Fri Feb 17 2023 Jindrich Novy - 2:1.11.1-1 +- update to https://github.com/containers/skopeo/releases/tag/v1.11.1 +- Related: #2123641 -* Fri Jan 13 2023 Jindrich Novy - 2:1.9.4-0.1 -- consume skopeo from release-1.9 upstream branch -- Resolves: #2160713 +* Fri Jan 27 2023 Jindrich Novy - 2:1.11.0-1 +- update to https://github.com/containers/skopeo/releases/tag/v1.11.0 + (https://github.com/containers/skopeo/commit/968670116c56023d37e9e98b48346478599c6801) +- Related: #2123641 + +* Tue Jan 24 2023 Jindrich Novy - 2:1.11.0-0.3 +- update to the latest content of https://github.com/containers/skopeo/tree/main + (https://github.com/containers/skopeo/commit/fe15a36) +- Related: #2123641 + +* Tue Jan 17 2023 Jindrich Novy - 2:1.11.0-0.2 +- update to the latest content of https://github.com/containers/skopeo/tree/main + (https://github.com/containers/skopeo/commit/8e09e64) +- Related: #2123641 + +* Fri Jan 13 2023 Jindrich Novy - 2:1.11.0-0.1 +- update to the latest content of https://github.com/containers/skopeo/tree/main + (https://github.com/containers/skopeo/commit/2817510) +- Related: #2123641 -* Thu Oct 20 2022 Jindrich Novy - 2:1.9.3-1 -- update to https://github.com/containers/skopeo/releases/tag/v1.9.3 -- Related: #2135973 +* Thu Oct 06 2022 Jindrich Novy - 2:1.10.0-1 +- update to https://github.com/containers/skopeo/releases/tag/v1.10.0 +- Related: #2123641 * Wed Aug 03 2022 Jindrich Novy - 2:1.9.2-1 - update to https://github.com/containers/skopeo/releases/tag/v1.9.2 -- Gitee From 44fdc02e6553a927de2b957cc2540ac1f242e9ac Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Fri, 30 Dec 2022 15:41:15 +0800 Subject: [PATCH 2/2] add loong64 support for skopeo Signed-off-by: Wenlong Zhang --- 0001-add-loong64-support-for-etcd.patch | 29 +++++++++++++++++++++++++ skopeo.spec | 13 ++++++++++- 2 files changed, 41 insertions(+), 1 deletion(-) create mode 100644 0001-add-loong64-support-for-etcd.patch diff --git a/0001-add-loong64-support-for-etcd.patch b/0001-add-loong64-support-for-etcd.patch new file mode 100644 index 0000000..bb6f9f5 --- /dev/null +++ b/0001-add-loong64-support-for-etcd.patch @@ -0,0 +1,29 @@ +From e6fea3042b3b9f9986ce9e19c730b2bd3d3eaa05 Mon Sep 17 00:00:00 2001 +From: rpm-build +Date: Fri, 30 Dec 2022 06:22:44 +0000 +Subject: [PATCH] add loong64 support for etcd + +--- + vendor/go.etcd.io/bbolt/bolt_loong64.go | 10 ++++++++++ + 1 file changed, 10 insertions(+) + create mode 100644 vendor/go.etcd.io/bbolt/bolt_loong64.go + +diff --git a/vendor/go.etcd.io/bbolt/bolt_loong64.go b/vendor/go.etcd.io/bbolt/bolt_loong64.go +new file mode 100644 +index 0000000..d02d59e +--- /dev/null ++++ b/vendor/go.etcd.io/bbolt/bolt_loong64.go +@@ -0,0 +1,10 @@ ++// +build loong64 ++ ++package bbolt ++ ++// maxMapSize represents the largest mmap size supported by Bolt. ++const maxMapSize = 0x8000000000 // 512GB ++ ++// maxAllocSize is the size used when creating array pointers. ++const maxAllocSize = 0x7FFFFFFF ++ +-- +2.27.0 + diff --git a/skopeo.spec b/skopeo.spec index b7d05d8..f0b987f 100644 --- a/skopeo.spec +++ b/skopeo.spec @@ -1,9 +1,15 @@ %global debug_package %{nil} %global with_check 0 +%global anolis_release .0.1 %if 0%{?rhel} > 7 && ! 0%{?fedora} +%ifarch loongarch64 +%define gobuild(o:) \ +go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v %{?**}; +%else %define gobuild(o:) \ go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -compressdwarf=false -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '%__global_ldflags'" -a -v %{?**}; +%endif %else %define gobuild(o:) GO111MODULE=off go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v %{?**}; %endif @@ -16,7 +22,7 @@ go build -buildmode pie -compiler gc -tags="rpm_crashtraceback libtrust_openssl Epoch: 2 Name: skopeo Version: 1.11.2 -Release: 0.2%{?dist} +Release: 0.2%{anolis_release}%{?dist} Summary: Inspect container images and repositories on registries License: ASL 2.0 URL: https://%{import_path} @@ -27,6 +33,8 @@ Source0: https://%{import_path}/tarball/%{commit0}/%{branch}-%{shortcommit0}.tar %else Source0: https://%{import_path}/archive/%{commit0}/%{name}-%{version}-%{shortcommit0}.tar.gz %endif + +Patch001: 0001-add-loong64-support-for-etcd.patch BuildRequires: git-core BuildRequires: golang >= 1.17.7 BuildRequires: /usr/bin/go-md2man @@ -122,6 +130,9 @@ export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath} %{_datadir}/%{name}/test %changelog +* Thu Jun 08 2023 Wenlong Zhang - 2:1.11.2-0.2.0.1 +- add loong64 support for skopeo + * Wed Feb 22 2023 Jindrich Novy - 2:1.11.2-0.2 - fix build - Related: #2123641 -- Gitee