Accepting request 992001 from devel:tools:compiler

- Add fix-tests.patch which fixes tests on i586.

OBS-URL: https://build.opensuse.org/request/show/992001
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/mold?expand=0&rev=17
This commit is contained in:
Richard Brown 2022-08-01 19:32:54 +00:00 committed by Git OBS Bridge
commit 8078092d2d
3 changed files with 20 additions and 1 deletions

13
fix-tests.patch Normal file
View File

@ -0,0 +1,13 @@
diff --git a/test/elf/relocatable.sh b/test/elf/relocatable.sh
index 0065479..c5fe661 100755
--- a/test/elf/relocatable.sh
+++ b/test/elf/relocatable.sh
@@ -14,7 +14,7 @@ t=out/test/elf/$testname
mkdir -p $t
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=98667
-[ $MACHINE = i386 ] && { echo skipped; exit; }
+[ $MACHINE = i386 -o $MACHINE = i686 ] && { echo skipped; exit; }
cat <<EOF | $CXX -c -o $t/a.o -xc++ -
int one() { return 1; }

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Mon Aug 1 05:35:29 UTC 2022 - Martin Liška <mliska@suse.cz>
- Add fix-tests.patch which fixes tests on i586.
-------------------------------------------------------------------
Fri Jul 1 09:13:58 UTC 2022 - Martin Liška <mliska@suse.cz>

View File

@ -24,7 +24,8 @@ License: AGPL-3.0-or-later
Group: Development/Tools/Building
URL: https://github.com/rui314/mold
Source: https://github.com/rui314/mold/archive/v%{version}/mold-%{version}.tar.gz
ExclusiveArch: aarch64 %arm x86_64 aarch64 riscv64
Patch0: fix-tests.patch
ExclusiveArch: aarch64 %arm %ix86 x86_64 aarch64 riscv64
BuildRequires: cmake
%if %{suse_version} < 1550
BuildRequires: gcc10-c++