diff --git a/0005-add-loong64-support-for-bolt.patch b/0005-add-loong64-support-for-bolt.patch new file mode 100644 index 0000000000000000000000000000000000000000..5f3ccc0edeea3da541ab38f156f57a36109ba035 --- /dev/null +++ b/0005-add-loong64-support-for-bolt.patch @@ -0,0 +1,31 @@ +From a2b68cc2c37f2d0d5e480583a28d6e893602950d Mon Sep 17 00:00:00 2001 +From: rpm-build +Date: Tue, 9 May 2023 09:09:01 +0000 +Subject: [PATCH] add loong64 support for bolt + +--- + vendor/github.com/boltdb/bolt/bolt_loong64.go | 12 ++++++++++++ + 1 file changed, 12 insertions(+) + create mode 100644 vendor/github.com/boltdb/bolt/bolt_loong64.go + +diff --git a/vendor/github.com/boltdb/bolt/bolt_loong64.go b/vendor/github.com/boltdb/bolt/bolt_loong64.go +new file mode 100644 +index 0000000..3dbcb46 +--- /dev/null ++++ b/vendor/github.com/boltdb/bolt/bolt_loong64.go +@@ -0,0 +1,12 @@ ++// +build loong64 ++ ++package bolt ++ ++// maxMapSize represents the largest mmap size supported by Bolt. ++const maxMapSize = 0xFFFFFFFFFFFF // 256TB ++ ++// 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/podman.spec b/podman.spec index 177dc29d9c2c81203519faabcc10d8359fea5566..c0688c06b36a4891c1a99ccb1ace8145426a6ab8 100644 --- a/podman.spec +++ b/podman.spec @@ -1,13 +1,14 @@ %define debug_package %{nil} Name: podman Version: 0.10.1 -Release: 12 +Release: 13 Summary: A daemonless container engine for managing Containers Epoch: 1 License: ASL 2.0 URL: https://podman.io/ Source0: https://github.com/containers/libpod/archive/e4a155328fb88590fafd3d4e845f9bca49133f62/libpod-e4a1553.tar.gz Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz +Source2: sys.tar.gz BuildRequires: golang btrfs-progs-devel glib2-devel glibc-devel glibc-static BuildRequires: git gpgme-devel libassuan-devel libgpg-error-devel libseccomp-devel BuildRequires: libselinux-devel ostree-devel pkgconfig make @@ -119,6 +120,7 @@ Patch5: CVE-2021-20188.patch Patch6: 0002-Fix-the-invalid-memory-address-reference.patch Patch7: 0003-eat-signal-23-in-signal-proxy.patch Patch8: 0004-create-directories-with-0755-mode.patch +Patch9: 0005-add-loong64-support-for-bolt.patch %description Podman manages the entire container ecosystem which includes pods, @@ -166,6 +168,10 @@ sed -i 's/0.0.0/%{version}/' contrib/python/%{name}/setup.py sed -i 's/0.0.0/%{version}/' contrib/python/py%{name}/setup.py mv pkg/hooks/README.md pkg/hooks/README-hooks.md tar -xf %SOURCE1 +%ifarch loongarch64 +rm -rf ./vendor/golang.org/x/sys +tar -xf %{SOURCE2} -C ./vendor/golang.org/x/ +%endif %build mkdir -p _build/bin _output/bin @@ -228,6 +234,9 @@ install -Dp -m644 libpod.conf %{buildroot}%{_datadir}/containers/libpod.conf %{_mandir}/man5/*.5* %changelog +* Mon May 8 2023 Wenlong Zhang - 1:0.10.1-13 +- fix build error for loongarch64 + * Mon Mar 28 2022 Ge Wang 1:0.10.1-12 - Set umask to 022 ensure create directories with 0755 mode diff --git a/sys.tar.gz b/sys.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..a3652f1a5b4a184f62fcddb06f4f25be49e40669 Binary files /dev/null and b/sys.tar.gz differ