From 9fcb13accef9a5dbc700c9f75309203fedf942d1 Mon Sep 17 00:00:00 2001 From: cherry530 Date: Mon, 18 Apr 2022 17:05:19 +0800 Subject: [PATCH] add loongarch support Signed-off-by: cherry530 --- add-loongarch.patch | 12 ++++++++++++ libxcrypt.spec | 6 +++++- 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 add-loongarch.patch diff --git a/add-loongarch.patch b/add-loongarch.patch new file mode 100644 index 0000000..045087c --- /dev/null +++ b/add-loongarch.patch @@ -0,0 +1,12 @@ +diff --git a/lib/libcrypt.minver b/lib/libcrypt.minver +index 445b946..1149b03 100644 +--- a/lib/libcrypt.minver ++++ b/lib/libcrypt.minver +@@ -87,6 +87,7 @@ GLIBC_2.0 linux.*gnu s390 + GLIBC_2.0 linux.*gnu sh + GLIBC_2.0 linux.*gnu sparc + GLIBC_2.0 linux.*gnu x86_64 ++GLIBC_2.2.5 linux.*gnu loongarch64 + ERROR linux.*gnu . + + # Other systems. diff --git a/libxcrypt.spec b/libxcrypt.spec index 979e9cf..4eeb2b4 100644 --- a/libxcrypt.spec +++ b/libxcrypt.spec @@ -1,12 +1,13 @@ %define libdir /lib64 Name: libxcrypt Version: 4.4.26 -Release: 2 +Release: 3 Summary: Extended crypt library for DES, MD5, Blowfish and others License: LGPLv2+ and BSD and Public Domain URL: https://github.com/besser82/%{name} Source0: https://github.com/besser82/%{name}/archive/v%{version}.tar.gz +Patch0001: add-loongarch.patch Patch9000: add-sm3-crypt-support.patch BuildRequires: autoconf libtool fipscheck @@ -101,6 +102,9 @@ make check %changelog +* Mon Apr 18 2022 xu_ping - 4.4.26-3 +- add loongarch support + * Thu Dec 16 2021 houmingyong - 4.4.26-2 - add sm3 crypt support -- Gitee