add loongarch support
This commit is contained in:
parent
bd8e74a426
commit
ceaaf72ce3
26
add-loongarch.patch
Normal file
26
add-loongarch.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From b87df88468d90292e7c09b8cfd992011cd812a1c Mon Sep 17 00:00:00 2001
|
||||||
|
From: zhaozhen <zhaozhen@loongson.cn>
|
||||||
|
Date: Mon, 5 Dec 2022 13:01:36 +0000
|
||||||
|
Subject: [PATCH] add loongarch64 support
|
||||||
|
|
||||||
|
---
|
||||||
|
configure.ac | 3 +++
|
||||||
|
1 file changed, 3 insertions(+)
|
||||||
|
|
||||||
|
diff --git a/configure.ac b/configure.ac
|
||||||
|
index 307e974..aa3e01b 100644
|
||||||
|
--- a/configure.ac
|
||||||
|
+++ b/configure.ac
|
||||||
|
@@ -972,6 +972,9 @@ main() { if (NSVersionOfRunTimeLibrary("System") >= (60 << 16))
|
||||||
|
riscv64-*)
|
||||||
|
seccomp_audit_arch=AUDIT_ARCH_RISCV64
|
||||||
|
;;
|
||||||
|
+ loongarch64-*)
|
||||||
|
+ seccomp_audit_arch=AUDIT_ARCH_LOONGARCHEL64
|
||||||
|
+ ;;
|
||||||
|
esac
|
||||||
|
if test "x$seccomp_audit_arch" != "x" ; then
|
||||||
|
AC_MSG_RESULT(["$seccomp_audit_arch"])
|
||||||
|
--
|
||||||
|
2.33.0
|
||||||
|
|
||||||
12
openssh.spec
12
openssh.spec
@ -6,7 +6,7 @@
|
|||||||
%{?no_gtk2:%global gtk2 0}
|
%{?no_gtk2:%global gtk2 0}
|
||||||
|
|
||||||
%global sshd_uid 74
|
%global sshd_uid 74
|
||||||
%global openssh_release 8
|
%global openssh_release 9
|
||||||
|
|
||||||
Name: openssh
|
Name: openssh
|
||||||
Version: 8.8p1
|
Version: 8.8p1
|
||||||
@ -90,6 +90,7 @@ Patch59: set-sshd-config.patch
|
|||||||
Patch60: feature-add-SMx-support.patch
|
Patch60: feature-add-SMx-support.patch
|
||||||
Patch61: backport-upstream-a-little-extra-debugging.patch
|
Patch61: backport-upstream-a-little-extra-debugging.patch
|
||||||
Patch62: backport-upstream-better-debugging-for-connect_next.patch
|
Patch62: backport-upstream-better-debugging-for-connect_next.patch
|
||||||
|
Patch63: add-loongarch.patch
|
||||||
|
|
||||||
Requires: /sbin/nologin
|
Requires: /sbin/nologin
|
||||||
Requires: libselinux >= 2.3-5 audit-libs >= 1.0.8
|
Requires: libselinux >= 2.3-5 audit-libs >= 1.0.8
|
||||||
@ -230,6 +231,7 @@ popd
|
|||||||
%patch60 -p1
|
%patch60 -p1
|
||||||
%patch61 -p1
|
%patch61 -p1
|
||||||
%patch62 -p1
|
%patch62 -p1
|
||||||
|
%patch63 -p1
|
||||||
|
|
||||||
autoreconf
|
autoreconf
|
||||||
pushd pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4
|
pushd pam_ssh_agent_auth-pam_ssh_agent_auth-0.10.4
|
||||||
@ -273,7 +275,7 @@ fi
|
|||||||
--without-zlib-version-check --with-ssl-engine --with-ipaddr-display \
|
--without-zlib-version-check --with-ssl-engine --with-ipaddr-display \
|
||||||
--with-pie=no --without-hardening --with-systemd --with-default-pkcs11-provider=yes \
|
--with-pie=no --without-hardening --with-systemd --with-default-pkcs11-provider=yes \
|
||||||
--with-pam --with-selinux --with-audit=linux --with-security-key-buildin=yes \
|
--with-pam --with-selinux --with-audit=linux --with-security-key-buildin=yes \
|
||||||
%ifnarch riscv64
|
%ifnarch riscv64 loongarch64
|
||||||
--with-sandbox=seccomp_filter \
|
--with-sandbox=seccomp_filter \
|
||||||
%endif
|
%endif
|
||||||
--with-kerberos5${krb5_prefix:+=${krb5_prefix}} --with-libedit
|
--with-kerberos5${krb5_prefix:+=${krb5_prefix}} --with-libedit
|
||||||
@ -431,6 +433,12 @@ getent passwd sshd >/dev/null || \
|
|||||||
%attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
|
%attr(0644,root,root) %{_mandir}/man8/sftp-server.8*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Mon Nov 28 2022 zhaozhen <zhaozhen@loongson.cn> - 8.8p1-9
|
||||||
|
- Type:feature
|
||||||
|
- CVE:NA
|
||||||
|
- SUG:NA
|
||||||
|
- DESC:Add loongarch64 support
|
||||||
|
|
||||||
* Mon Nov 28 2022 renmingshuai<renmingshuai@huawei.com> - 8.8p1-8
|
* Mon Nov 28 2022 renmingshuai<renmingshuai@huawei.com> - 8.8p1-8
|
||||||
- Type:bugfix
|
- Type:bugfix
|
||||||
- CVE:NA
|
- CVE:NA
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user