diff --git a/0001-add-sw_64-support.patch b/0001-add-sw_64-support.patch new file mode 100644 index 0000000000000000000000000000000000000000..ab9d313b55436485c4f9fee5922cdc2e848096c5 --- /dev/null +++ b/0001-add-sw_64-support.patch @@ -0,0 +1,38 @@ +From 1ce6a09e14a6c9c669996cea25e9a706fd848160 Mon Sep 17 00:00:00 2001 +From: Super User +Date: Mon, 10 Mar 2025 16:26:20 +0800 +Subject: [PATCH] add sw_64 support + +--- + lib/crypt-bcrypt.c | 2 +- + lib/libcrypt.minver | 1 + + 2 files changed, 2 insertions(+), 1 deletion(-) + +diff --git a/lib/crypt-bcrypt.c b/lib/crypt-bcrypt.c +index b82983b..0c4106c 100644 +--- a/lib/crypt-bcrypt.c ++++ b/lib/crypt-bcrypt.c +@@ -52,7 +52,7 @@ + #if INCLUDE_bcrypt || INCLUDE_bcrypt_a || INCLUDE_bcrypt_x || INCLUDE_bcrypt_y + + #if defined(__i386__) || defined(__x86_64__) || \ +- defined(__alpha__) || defined(__hppa__) ++ defined(__alpha__) || defined(__hppa__) || defined(__sw_64__) + #define BF_SCALE 1 + #else + #define BF_SCALE 0 +diff --git a/lib/libcrypt.minver b/lib/libcrypt.minver +index 8478077..884de8b 100644 +--- a/lib/libcrypt.minver ++++ b/lib/libcrypt.minver +@@ -79,6 +79,7 @@ GLIBC_2.3 linux.*gnu powerpc64 + GLIBC_2.2.5 linux.*gnu x86_64 defined __x86_64__ && ULONG_MAX != UINT_MAX /* 64 */ + GLIBC_2.2 linux.*gnu s390x + GLIBC_2.0 linux.*gnu alpha ++GLIBC_2.0 linux.*gnu sw_64 + GLIBC_2.0 linux.*gnu e2k + GLIBC_2.0 linux.*gnu hppa + GLIBC_2.0 linux.*gnu i[3-9]86 +-- +2.41.0 + diff --git a/libxcrypt.spec b/libxcrypt.spec index a590860ea8614adb0c5ee23a1d5e42678906a64a..0d5556cf24f06a1e3102034c4bf81f5d3e75c275 100644 --- a/libxcrypt.spec +++ b/libxcrypt.spec @@ -1,4 +1,4 @@ -%define anolis_release 1 +%define anolis_release 2 %bcond_without new_api %bcond_without compat_pkg @@ -107,6 +107,7 @@ Summary: Extended crypt library for descrypt, md5crypt, bcrypt, and other License: LGPLv2+ and BSD and Public Domain URL: https://github.com/besser82/%{name} Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz +Patch1001: 0001-add-sw_64-support.patch BuildRequires: fipscheck BuildRequires: gcc @@ -452,6 +453,9 @@ done %changelog +* Mon Mar 10 2025 Zhou Jie - 4.4.36-2 +- Add sw_64 arch support + * Fri Nov 10 2023 Funda Wang - 4.4.36-1 - New version 4.4.36