From c626f6e36d994f415b746b3db32579cdcc2fad23 Mon Sep 17 00:00:00 2001 From: wzx Date: Mon, 24 Oct 2022 13:50:32 +0800 Subject: [PATCH] Add sw64 architecture Signed-off-by: wzx (cherry picked from commit 0775294ba9dbd40bbc7c2139199554db7ca22d1c) (cherry picked from commit ef2cb40fc34b8fb7af85a73d33204ff37141dc38) --- lynx.spec | 6 +++++- lynx2.8.9rel.1-sw.patch | 18 ++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) create mode 100755 lynx2.8.9rel.1-sw.patch diff --git a/lynx.spec b/lynx.spec index 24bc46b..0cb82f9 100644 --- a/lynx.spec +++ b/lynx.spec @@ -1,13 +1,14 @@ Summary: A text browser for the World Wide Web Name: lynx Version: 2.8.9 -Release: 6 +Release: 7 License: GPLv2 URL: http://lynx.browser.org/ Source: https://invisible-mirror.net/archives/%{name}/tarballs/%{name}%{version}rel.1.tar.bz2 Patch0: %{name}-CVE-2008-4690.patch Patch1: CVE-2021-38165.patch +Patch2: lynx2.8.9rel.1-sw.patch Provides: webclient text-www-browser BuildRequires: dos2unix gcc gettext telnet unzip zip @@ -105,6 +106,9 @@ EOF %{_mandir}/*/* %changelog +* Mon Oct 24 2022 wuzx - 2.8.9-7 +- Add sw64 architecture + * Tue Aug 17 2021 houyingchao - 2.8.9-6 - Fix CVE-2021-38165 diff --git a/lynx2.8.9rel.1-sw.patch b/lynx2.8.9rel.1-sw.patch new file mode 100755 index 0000000..ad1025d --- /dev/null +++ b/lynx2.8.9rel.1-sw.patch @@ -0,0 +1,18 @@ +diff -Nuar lynx2.8.9rel.1.org/src/LYCurses.c lynx2.8.9rel.1.sw/src/LYCurses.c +--- lynx2.8.9rel.1.org/src/LYCurses.c 2022-02-24 23:14:28.950000000 +0000 ++++ lynx2.8.9rel.1.sw/src/LYCurses.c 2022-02-24 23:19:27.700000000 +0000 +@@ -2764,6 +2764,14 @@ + + VAXC$ESTABLISH(DCLspawn_exception); + ++#ifdef __SW_64 /** OpenVMS/AXP lacked the TRUSTED flag before v6.1 **/ ++ if (VersionVMS[1] > '6' || ++ (VersionVMS[1] == '6' && VersionVMS[2] == '.' && ++ VersionVMS[3] >= '1')) ++#else ++ if (VersionVMS[1] >= '6') ++#endif /* __SW_64 */ ++ + #ifdef __ALPHA /** OpenVMS/AXP lacked the TRUSTED flag before v6.1 **/ + if (VersionVMS[1] > '6' || + (VersionVMS[1] == '6' && VersionVMS[2] == '.' &&