fix build error on loongarch64
This commit is contained in:
parent
8d08b8b575
commit
94399775f4
13
runc.spec
13
runc.spec
@ -3,7 +3,7 @@
|
||||
|
||||
Name: runc
|
||||
Version: 1.1.8
|
||||
Release: 13
|
||||
Release: 14
|
||||
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
|
||||
|
||||
License: ASL 2.0
|
||||
@ -31,7 +31,6 @@ cp %{SOURCE3} .
|
||||
cp %{SOURCE4} .
|
||||
cp %{SOURCE5} .
|
||||
|
||||
|
||||
%install
|
||||
sh ./apply-patch
|
||||
|
||||
@ -40,6 +39,10 @@ export GO111MODULE=off
|
||||
export GOPATH=`pwd`/.gopath
|
||||
ln -sf `pwd` .gopath/src/github.com/opencontainers/runc
|
||||
cd .gopath/src/github.com/opencontainers/runc
|
||||
%ifarch loongarch64
|
||||
sed '1s/mips64le/mips64le || loong64/g' -i libcontainer/system/syscall_linux_64.go
|
||||
%endif
|
||||
|
||||
make BUILDTAGS="seccomp selinux" static
|
||||
rm -rf .gopath
|
||||
strip runc
|
||||
@ -54,6 +57,12 @@ install -p -m 755 runc $RPM_BUILD_ROOT/%{_bindir}/runc
|
||||
%{_bindir}/runc
|
||||
|
||||
%changelog
|
||||
* Wed Apr 17 2024 Huang Yang <huangyang@loongson.cn> - 1.1.8-14
|
||||
- Type:bugfix
|
||||
- CVE:NA
|
||||
- SUG:NA
|
||||
- DESC:fix build error on loongarch64
|
||||
|
||||
* Thu Feb 22 2024 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.8-13
|
||||
- Type:bugfix
|
||||
- CVE:NA
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user