From eeac020d8480791b75b34bbaf84026bbfacb29d7 Mon Sep 17 00:00:00 2001 From: zhangshaoning Date: Mon, 17 Feb 2025 14:00:48 +0800 Subject: [PATCH] Add sw_64 support (cherry picked from commit 1fafb0078a01b1cf02ae9a6362e0f97e68d5129c) --- ncurses-sw-support.patch | 24 ++++++++++++++++++++++++ ncurses.spec | 6 +++++- 2 files changed, 29 insertions(+), 1 deletion(-) create mode 100644 ncurses-sw-support.patch diff --git a/ncurses-sw-support.patch b/ncurses-sw-support.patch new file mode 100644 index 0000000..fc686fa --- /dev/null +++ b/ncurses-sw-support.patch @@ -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 \ diff --git a/ncurses.spec b/ncurses.spec index d39ab29..f186c62 100644 --- a/ncurses.spec +++ b/ncurses.spec @@ -1,6 +1,6 @@ name: ncurses Version: 6.4 -Release: 8 +Release: 9 Summary: Terminal control library License: MIT 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 Patch17: backport-CVE-2023-50495.patch Patch18: backport-CVE-2023-45918.patch +Patch19: ncurses-sw-support.patch BuildRequires: make gcc gcc-c++ gpm-devel pkgconfig @@ -250,6 +251,9 @@ xz NEWS %{_mandir}/man7/* %changelog +* Mon Feb 17 2025 zhangshaoning - 6.4-9 +- Add sw_64 support + * Wed Feb 28 2024 yanglu - 6.4-8 - Type:bugfix - CVE:NA -- Gitee