- Add no-common.patch to make longVersion extern in all cases,

fixes build with gcc10 bsc#1160418

OBS-URL: https://build.opensuse.org/package/show/editors/vim?expand=0&rev=593
This commit is contained in:
Ismail Dönmez 2020-03-27 08:30:24 +00:00 committed by Git OBS Bridge
parent 8cba39f26c
commit 6afa654f40
3 changed files with 21 additions and 0 deletions

13
no-common.patch Normal file
View File

@ -0,0 +1,13 @@
Index: vim-8.2.0348/src/globals.h
===================================================================
--- vim-8.2.0348.orig/src/globals.h
+++ vim-8.2.0348/src/globals.h
@@ -1242,7 +1242,7 @@ extern char *Version;
#if defined(HAVE_DATE_TIME) && defined(VMS) && defined(VAXC)
extern char longVersion[];
#else
-EXTERN char *longVersion;
+extern char *longVersion;
#endif
/*

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Fri Mar 27 08:24:14 UTC 2020 - Ismail Dönmez <idonmez@suse.com>
- Add no-common.patch to make longVersion extern in all cases,
fixes build with gcc10 bsc#1160418
-------------------------------------------------------------------
Sun Mar 15 20:19:21 UTC 2020 - Christian Boltz <suse-beta@cboltz.de>

View File

@ -69,6 +69,7 @@ Patch100: vim73-no-static-libpython.patch
Patch101: vim-8.0.1568-defaults.patch
# https://github.com/vim/vim/issues/3348 - problem more probadly in buildenv than in test
Patch102: vim-8.1.0297-dump3.patch
Patch103: no-common.patch
BuildRequires: autoconf
BuildRequires: db-devel
BuildRequires: fdupes
@ -175,6 +176,7 @@ cp %{SOURCE23} runtime/syntax/apparmor.vim
%patch100 -p1
%patch101 -p1
%patch102 -p1
%patch103 -p1
cp %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} .
# Unreliable tests