From 0374adac3dd4dcb21982d9706d41ec0f413e833d Mon Sep 17 00:00:00 2001 From: doupengda Date: Thu, 17 Nov 2022 15:22:55 +0800 Subject: [PATCH] add loongarch64 support --- ...asso-config.-add-loongarch64-support.patch | 35 +++++++++++++++++++ lasso.spec | 18 ++++++++-- 2 files changed, 51 insertions(+), 2 deletions(-) create mode 100644 0001-lasso-config.-add-loongarch64-support.patch diff --git a/0001-lasso-config.-add-loongarch64-support.patch b/0001-lasso-config.-add-loongarch64-support.patch new file mode 100644 index 0000000..46f05bb --- /dev/null +++ b/0001-lasso-config.-add-loongarch64-support.patch @@ -0,0 +1,35 @@ +From ac98cfa0e08962cbd2c8598b79e7fdeb172ed408 Mon Sep 17 00:00:00 2001 +From: Shi Pujin +Date: Tue, 16 Nov 2021 11:15:42 +0000 +Subject: [PATCH] lasso: config.*: add loongarch64 support + + +diff --git a/config.guess b/config.guess +index f50dcdb..e1cbc54 100755 +--- a/config.guess ++++ b/config.guess +@@ -992,6 +992,9 @@ EOF + mips64el:Linux:*:*) + echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" + exit ;; ++ loongarch64:Linux:*:* | loongarch32:Linux:*:*) ++ echo "$UNAME_MACHINE"-unknown-linux-"$LIBC" ++ exit ;; + openrisc*:Linux:*:*) + echo or1k-unknown-linux-"$LIBC" + exit ;; +diff --git a/config.sub b/config.sub +index 1d8e98b..a0be608 100755 +--- a/config.sub ++++ b/config.sub +@@ -267,6 +267,7 @@ case $basic_machine in + | lm32 \ + | m32c | m32r | m32rle | m68000 | m68k | m88k \ + | maxq | mb | microblaze | microblazeel | mcore | mep | metag \ ++ | loongarch64 | loongarch32 \ + | mips | mipsbe | mipseb | mipsel | mipsle \ + | mips16 \ + | mips64 | mips64el \ +-- +2.27.0 + diff --git a/lasso.spec b/lasso.spec index 1aec897..567112c 100644 --- a/lasso.spec +++ b/lasso.spec @@ -1,6 +1,6 @@ Name: lasso Version: 2.6.0 -Release: 14 +Release: 15 Summary: Liberty Alliance Single Sign On License: GPLv2+ URL: http://lasso.entrouvert.org/ @@ -13,6 +13,7 @@ patch4: versioned-python-configure.patch Patch5: 0005-tests-Remove-the-use-of-an-expired-cert-in-tests-as-.patch Patch6000: backport-CVE-2021-28091.patch Patch6001: 0001-Explicitly-define-tests-cases-and-add-them-to-tests.patch +Patch6002: 0001-lasso-config.-add-loongarch64-support.patch BuildRequires: autoconf automake check-devel glib2-devel gtk-doc libtool BuildRequires: libxml2-devel openssl-devel swig xmlsec1-devel >= 1.2.25-4 @@ -67,7 +68,17 @@ Summary: Help document for the lasso packages Help document for the lasso packages %prep -%autosetup -n lasso-%{version} -p1 +%setup -q +%patch1 -p1 +%patch2 -p1 +%patch3 -p1 +%patch4 -p1 +%patch5 -p1 +%patch6000 -p1 +%patch6001 -p1 +%ifarch loongarch64 +%patch6002 -p1 +%endif sed -i -E -e '/^#![[:blank:]]*(\/usr\/bin\/env[[:blank:]]+python[^3]?\>) \ |(\/usr\/bin\/python[^3]?\>)/d' `grep -r -l -E '^#![[:blank:]]*(/usr/bin/python[^3]?) \ |(/usr/bin/env[[:blank:]]+python[^3]?)' *` @@ -116,6 +127,9 @@ fi %doc AUTHORS NEWS README %changelog +* Thu Nov 17 2022 doupengda - 2.6.0-15 +- add loongarch64 support + * Fri Feb 18 2022 yangping - 2.6.0-14 - fix error:initializer element is not constant -- Gitee