diff --git a/add-loong64-support-for-bbolt.ptch b/add-loong64-support-for-bbolt.ptch new file mode 100644 index 0000000000000000000000000000000000000000..5c5d5faf056d8196912c58a33cd93fb683e7d406 --- /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 447e97f560b2fe055303ee1b5aea6134786be3c0..9627b4f683198ff24041a91bf7c731cc25a920ed 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