From 791dc3800f6261ad045f0bdb5a549b7efb1db5b8 Mon Sep 17 00:00:00 2001 From: Wenlong Zhang Date: Fri, 15 Sep 2023 09:53:03 +0800 Subject: [PATCH] add loong64 support for skopeo --- add-loong64-support-for-bbolt.ptch | 31 ++++++++++++++++++++++++++++++ skopeo.spec | 6 +++++- 2 files changed, 36 insertions(+), 1 deletion(-) create mode 100644 add-loong64-support-for-bbolt.ptch diff --git a/add-loong64-support-for-bbolt.ptch b/add-loong64-support-for-bbolt.ptch new file mode 100644 index 0000000..5c5d5fa --- /dev/null +++ b/add-loong64-support-for-bbolt.ptch @@ -0,0 +1,31 @@ +From ede7f7ed58d034507643a98aeca453dba0f497fb Mon Sep 17 00:00:00 2001 +From: build +Date: Thu, 5 Jan 2023 12:37:27 +0000 +Subject: [PATCH] containerd add blot symbol to support loong64 + +--- + vendor/go.etcd.io/bbolt/bolt_loong64.go | 13 +++++++++++++ + 1 file changed, 13 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..bb402fb +--- /dev/null ++++ b/vendor/go.etcd.io/bbolt/bolt_loong64.go +@@ -0,0 +1,13 @@ ++// +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 ++ ++// Are unaligned load/stores broken on this arch? ++var brokenUnaligned = false ++ +-- +2.33.0 diff --git a/skopeo.spec b/skopeo.spec index 447e97f..9627b4f 100644 --- a/skopeo.spec +++ b/skopeo.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %global with_debug 1 @@ -32,6 +32,7 @@ Summary: Inspect container images and repositories on registries URL: %{git0} # Tarball fetched from upstream Source0: %{url}/archive/%{built_tag}.tar.gz +Patch001: add-loong64-support-for-bbolt.ptch BuildRequires: go-md2man BuildRequires: btrfs-progs-devel BuildRequires: git-core @@ -161,5 +162,8 @@ cp -pav systemtest/* %{buildroot}/%{_datadir}/%{name}/test/system/ %doc README.md %changelog +* Wed Sep 13 2023 Wenlong Zhang - 1:1.11.2-2 +- add loong64 support for skopeo + * Tue Apr 11 2023 mgb01105731 - 1:1.11.2-1 - Init upstream from version 1.11.2 -- Gitee