11
0

Add fix_i586_test.patch to switch off testing architecture in bee.lua

OBS-URL: https://build.opensuse.org/package/show/devel:languages:lua/lua-language-server?expand=0&rev=3
This commit is contained in:
Matej Cepl 2021-07-16 18:17:32 +00:00 committed by Git OBS Bridge
parent 9af1967ccd
commit cce12d23b9
3 changed files with 35 additions and 0 deletions

27
fix_i586_test.patch Normal file
View File

@ -0,0 +1,27 @@
---
3rd/bee.lua/test/test_platform.lua | 2 ++
3rd/luamake/3rd/bee.lua/test/test_platform.lua | 2 ++
2 files changed, 4 insertions(+)
--- a/3rd/bee.lua/test/test_platform.lua
+++ b/3rd/bee.lua/test/test_platform.lua
@@ -43,6 +43,8 @@ function test_plat:test_1()
if plat == 'linux' then
lu.assertEquals(platform.Compiler == 'gcc' or platform.Compiler == 'clang', true)
support.linux.Compiler = platform.Compiler
+ -- There are too many platforms Linux run on
+ support[plat].Arch = platform.Arch
end
if plat == 'msvc' or plat == 'msbuild' then
lu.assertEquals(platform.Arch == 'x86' or platform.Arch == 'x86_64', true)
--- a/3rd/luamake/3rd/bee.lua/test/test_platform.lua
+++ b/3rd/luamake/3rd/bee.lua/test/test_platform.lua
@@ -43,6 +43,8 @@ function test_plat:test_1()
if plat == 'linux' then
lu.assertEquals(platform.Compiler == 'gcc' or platform.Compiler == 'clang', true)
support.linux.Compiler = platform.Compiler
+ -- There are too many platforms Linux run on
+ support[plat].Arch = platform.Arch
end
if plat == 'msvc' or plat == 'msbuild' then
lu.assertEquals(platform.Arch == 'x86' or platform.Arch == 'x86_64', true)

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Fri Jul 16 18:15:52 UTC 2021 - Matej Cepl <mcepl@suse.com>
- Add fix_i586_test.patch to switch off testing architecture in bee.lua
-------------------------------------------------------------------
Fri Jul 16 12:26:44 UTC 2021 - Andreas Schneider <asn@cryptomilk.org>

View File

@ -26,6 +26,9 @@ Url: https://github.com/sumneko/lua-language-server
Source0: %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Source1: lua-lsp-launcher.sh
Source2: README.suse-maint.md
# PATCH-FIX-UPSTREAM fix_i586_test.patch bsc#[0-9]+ mcepl@suse.com
# It doesn't make sense to limit platforms where Linux could run.
Patch0: fix_i586_test.patch
BuildRequires: gcc-c++
BuildRequires: ninja
BuildRequires: fdupes