!255 修复在loongarch架构上的编译错误
From: @streamlet_hy Reviewed-by: @zhangsong234 Signed-off-by: @zhangsong234
This commit is contained in:
commit
0d43346b69
13
runc.spec
13
runc.spec
@ -3,7 +3,7 @@
|
|||||||
|
|
||||||
Name: runc
|
Name: runc
|
||||||
Version: 1.1.8
|
Version: 1.1.8
|
||||||
Release: 13
|
Release: 14
|
||||||
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
|
Summary: runc is a CLI tool for spawning and running containers according to the OCI specification.
|
||||||
|
|
||||||
License: ASL 2.0
|
License: ASL 2.0
|
||||||
@ -31,7 +31,6 @@ cp %{SOURCE3} .
|
|||||||
cp %{SOURCE4} .
|
cp %{SOURCE4} .
|
||||||
cp %{SOURCE5} .
|
cp %{SOURCE5} .
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
sh ./apply-patch
|
sh ./apply-patch
|
||||||
|
|
||||||
@ -40,6 +39,10 @@ export GO111MODULE=off
|
|||||||
export GOPATH=`pwd`/.gopath
|
export GOPATH=`pwd`/.gopath
|
||||||
ln -sf `pwd` .gopath/src/github.com/opencontainers/runc
|
ln -sf `pwd` .gopath/src/github.com/opencontainers/runc
|
||||||
cd .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
|
make BUILDTAGS="seccomp selinux" static
|
||||||
rm -rf .gopath
|
rm -rf .gopath
|
||||||
strip runc
|
strip runc
|
||||||
@ -54,6 +57,12 @@ install -p -m 755 runc $RPM_BUILD_ROOT/%{_bindir}/runc
|
|||||||
%{_bindir}/runc
|
%{_bindir}/runc
|
||||||
|
|
||||||
%changelog
|
%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
|
* Thu Feb 22 2024 zhongjiawei<zhongjiawei1@huawei.com> - 1.1.8-13
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user