!16 [sync] PR-15: [sync] PR-14: 添加sw架构

From: @openeuler-sync-bot 
Reviewed-by: @wk333 
Signed-off-by: @wk333
This commit is contained in:
openeuler-ci-bot 2024-03-29 06:28:34 +00:00 committed by Gitee
commit f6e30eb590
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
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] == '.' &&