!109 [sync] PR-106: Add sw_64 support

From: @openeuler-sync-bot 
Reviewed-by: @dillon_chen 
Signed-off-by: @dillon_chen
This commit is contained in:
openeuler-ci-bot 2025-02-25 03:22:18 +00:00 committed by Gitee
commit 6c9cddd910
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 29 additions and 1 deletions

24
ncurses-sw-support.patch Normal file
View File

@ -0,0 +1,24 @@
diff -arup ncurses-6.3.orig/config.guess ncurses-6.3/config.guess
--- ncurses-6.3.orig/config.guess 2021-06-04 12:01:25.000000000 +0800
+++ ncurses-6.3/config.guess 2023-02-15 09:45:20.743936365 +0800
@@ -1140,6 +1140,9 @@ EOF
sparc:Linux:*:* | sparc64:Linux:*:*)
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
;;
+ sw_64*:Linux:*:*)
+ GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
+ ;;
tile*:Linux:*:*)
GUESS=$UNAME_MACHINE-unknown-linux-$LIBC
;;
diff -arup ncurses-6.3.orig/config.sub ncurses-6.3/config.sub
--- ncurses-6.3.orig/config.sub 2021-08-15 00:20:38.000000000 +0800
+++ ncurses-6.3/config.sub 2023-02-15 09:46:19.158924225 +0800
@@ -1262,6 +1262,7 @@ case $cpu-$vendor in
| sparclite \
| sparcv8 | sparcv9 | sparcv9b | sparcv9v | sv1 | sx* \
| spu \
+ | sw_64 \
| tahoe \
| thumbv7* \
| tic30 | tic4x | tic54x | tic55x | tic6x | tic80 \

View File

@ -1,6 +1,6 @@
name: ncurses name: ncurses
Version: 6.4 Version: 6.4
Release: 8 Release: 9
Summary: Terminal control library Summary: Terminal control library
License: MIT License: MIT
URL: https://invisible-island.net/ncurses/ncurses.html URL: https://invisible-island.net/ncurses/ncurses.html
@ -16,6 +16,7 @@ Patch15: backport-fix-for-out-of-memory-condition.patch
Patch16: backport-fix-coredump-when-use-Memmove.patch Patch16: backport-fix-coredump-when-use-Memmove.patch
Patch17: backport-CVE-2023-50495.patch Patch17: backport-CVE-2023-50495.patch
Patch18: backport-CVE-2023-45918.patch Patch18: backport-CVE-2023-45918.patch
Patch19: ncurses-sw-support.patch
BuildRequires: make gcc gcc-c++ gpm-devel pkgconfig BuildRequires: make gcc gcc-c++ gpm-devel pkgconfig
@ -250,6 +251,9 @@ xz NEWS
%{_mandir}/man7/* %{_mandir}/man7/*
%changelog %changelog
* Mon Feb 17 2025 zhangshaoning <zhangshaoning@uniontech.com> - 6.4-9
- Add sw_64 support
* Wed Feb 28 2024 yanglu <yanglu72@h-partners.com> - 6.4-8 * Wed Feb 28 2024 yanglu <yanglu72@h-partners.com> - 6.4-8
- Type:bugfix - Type:bugfix
- CVE:NA - CVE:NA