!47 [sync] PR-45: add sw_64 support
From: @openeuler-sync-bot Reviewed-by: @dillon_chen Signed-off-by: @dillon_chen
This commit is contained in:
commit
865f0ae0a5
24
libxcrypt-4.4.26-sw.patch
Normal file
24
libxcrypt-4.4.26-sw.patch
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
diff -uNar libxcrypt-4.4.26.org/lib/crypt-bcrypt.c libxcrypt-4.4.26.sw/lib/crypt-bcrypt.c
|
||||||
|
--- libxcrypt-4.4.26.org/lib/crypt-bcrypt.c 2022-02-15 12:55:07.000000000 +0000
|
||||||
|
+++ libxcrypt-4.4.26.sw/lib/crypt-bcrypt.c 2022-02-15 12:55:49.510000000 +0000
|
||||||
|
@@ -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 -uNar libxcrypt-4.4.26.org/lib/libcrypt.minver libxcrypt-4.4.26.sw/lib/libcrypt.minver
|
||||||
|
--- libxcrypt-4.4.26.org/lib/libcrypt.minver 2022-02-15 12:55:07.000000000 +0000
|
||||||
|
+++ libxcrypt-4.4.26.sw/lib/libcrypt.minver 2022-02-15 14:16:36.550000000 +0000
|
||||||
|
@@ -80,6 +80,7 @@
|
||||||
|
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
|
||||||
|
|
||||||
@ -1,7 +1,7 @@
|
|||||||
%define libdir /lib64
|
%define libdir /lib64
|
||||||
Name: libxcrypt
|
Name: libxcrypt
|
||||||
Version: 4.4.36
|
Version: 4.4.36
|
||||||
Release: 2
|
Release: 3
|
||||||
Summary: Extended crypt library for DES, MD5, Blowfish and others
|
Summary: Extended crypt library for DES, MD5, Blowfish and others
|
||||||
License: LGPLv2+ and BSD and Public Domain
|
License: LGPLv2+ and BSD and Public Domain
|
||||||
URL: https://github.com/besser82/%{name}
|
URL: https://github.com/besser82/%{name}
|
||||||
@ -9,6 +9,7 @@ Source0: https://github.com/besser82/%{name}/archive/v%{version}.tar.gz
|
|||||||
|
|
||||||
Patch9000: add-sm3-crypt-support.patch
|
Patch9000: add-sm3-crypt-support.patch
|
||||||
Patch9001: add-loongarch-support-for-libxcrypt.patch
|
Patch9001: add-loongarch-support-for-libxcrypt.patch
|
||||||
|
Patch9002: libxcrypt-4.4.26-sw.patch
|
||||||
|
|
||||||
BuildRequires: perl >= 5.14.0
|
BuildRequires: perl >= 5.14.0
|
||||||
BuildRequires: autoconf libtool fipscheck
|
BuildRequires: autoconf libtool fipscheck
|
||||||
@ -102,6 +103,9 @@ autoreconf -fiv
|
|||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Fri Feb 28 2025 mahailiang <mahailiang@uniontech.com> - 4.4.36-3
|
||||||
|
- add sw_64 support
|
||||||
|
|
||||||
* Wed Mar 6 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 4.4.36-2
|
* Wed Mar 6 2024 Wenlong Zhang <zhangwenlong@loongson.cn> - 4.4.36-2
|
||||||
- Fix build error for loongarch64
|
- Fix build error for loongarch64
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user