Add sw64 architecture

Signed-off-by: wzx <wuzx1226@qq.com>
(cherry picked from commit 0775294ba9dbd40bbc7c2139199554db7ca22d1c)
(cherry picked from commit ef2cb40fc34b8fb7af85a73d33204ff37141dc38)
This commit is contained in:
wzx 2022-10-24 13:50:32 +08:00 committed by openeuler-sync-bot
parent 2775717129
commit c626f6e36d
2 changed files with 23 additions and 1 deletions

View File

@ -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<wuzx1226@qq.com> - 2.8.9-7
- Add sw64 architecture
* Tue Aug 17 2021 houyingchao <houyingchao@huawei.com> - 2.8.9-6
- Fix CVE-2021-38165

18
lynx2.8.9rel.1-sw.patch Executable file
View File

@ -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] == '.' &&