diff --git a/0001-toolbox-0.0.99.5-add-support-for-loongarch64.patch b/0001-toolbox-0.0.99.5-add-support-for-loongarch64.patch new file mode 100644 index 0000000000000000000000000000000000000000..a9da4df559483a144582bfb3cad57af98c25302b --- /dev/null +++ b/0001-toolbox-0.0.99.5-add-support-for-loongarch64.patch @@ -0,0 +1,25 @@ +From 91352497429d404e3c4f4af45cd0b1985d82a923 Mon Sep 17 00:00:00 2001 +From: Pengda Dou +Date: Tue, 23 Apr 2024 15:25:25 +0800 +Subject: [PATCH] toolbox-0.0.99.5 add support for loongarch64 + +--- + src/meson.build | 2 ++ + 1 file changed, 2 insertions(+) + +diff --git a/src/meson.build b/src/meson.build +index 098c692..f7c9b95 100644 +--- a/src/meson.build ++++ b/src/meson.build +@@ -52,6 +52,8 @@ elif cpu_family == 'x86_64' and endian == 'little' + dynamic_linker = '/lib64/ld-linux-x86-64.so.2' + elif cpu_family == 'riscv64' and endian == 'little' + dynamic_linker = '/lib/ld-linux-riscv64-lp64d.so.1' ++elif cpu_family == 'loongarch64' and endian == 'little' ++ dynamic_linker = '/lib64/ld-linux-loongarch-lp64d.so.1' + else + host_machine_description = cpu_family + ' (' + endian + ' endian)' + error('Please specify dynamic linker for:', host_machine_description) +-- +2.38.1 + diff --git a/toolbox.spec b/toolbox.spec index 754191dc32ebc84896392ada0d9920f3c5750d0f..53f6c1fbb9268d68836737953dcfaa7b6d4406ff 100644 --- a/toolbox.spec +++ b/toolbox.spec @@ -5,7 +5,7 @@ Version: 0.0.99.5 %global goipath github.com/containers/%{name} -Release: 3 +Release: 4 Summary: Tool for interactive command line environments on Linux License: Apache-2.0 @@ -13,6 +13,7 @@ URL: https://github.com/containers/toolbox Source0: toolbox-0.0.99.5-vendored.tar.xz Source1: https://github.com/cpuguy83/go-md2man/archive/v1.0.10.tar.gz +Patch0: 0001-toolbox-0.0.99.5-add-support-for-loongarch64.patch BuildRequires: golang >= 1.20 meson >= 0.58.0 BuildRequires: pkgconfig(bash-completion) systemd @@ -44,6 +45,7 @@ The toolbox-tests package contains system tests for toolbox. %prep %setup -q +%patch0 -p1 GOBUILDDIR="$(pwd)/_build" GOSOURCEDIR="$(pwd)" @@ -105,6 +107,9 @@ fi %{_datadir}/%{name} %changelog +* Tue Apr 23 2024 Pengda Dou - 0.0.99.5-4 +- add support for loongarch64 + * Wed Apr 10 2024 shafeipaozi - 0.0.99.5-3 - fix riscv spec