Accepting request 961694 from home:AndreasStieger:branches:server:database

3.38.1 - fix FTBFS

OBS-URL: https://build.opensuse.org/request/show/961694
OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=276
This commit is contained in:
Reinhard Max 2022-03-14 14:15:05 +00:00 committed by Git OBS Bridge
parent c7eaffc52d
commit d3d0e359fe
3 changed files with 30 additions and 0 deletions

View File

@ -0,0 +1,26 @@
Subject: Only run atof1.test on x86_64 machines.
Date: 2022-03-10 11:48:16
From: drh@
References: https://www3.sqlite.org/cgi/src/vinfo/4173819cd285a1c1?diff=1
Index: test/atof1.test
==================================================================
--- test/atof1.test
+++ test/atof1.test
@@ -16,10 +16,14 @@
source $testdir/tester.tcl
if {$::longdouble_size<=8} {
finish_test
return
+}
+if {$::tcl_platform(machine)!="x86_64"} {
+ finish_test
+ return
}
expr srand(1)
for {set i 1} {$i<20000} {incr i} {
set pow [expr {int((rand()-0.5)*100)}]

View File

@ -15,6 +15,8 @@ Sun Mar 13 16:25:42 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>
constraint.
* Other minor fixes to assert() statements, test cases, and
documentation. See the source code timeline for details.
- add upstream patch to run atof1 tests only on x86_64
sqlite-src-3380100-atof1.patch
-------------------------------------------------------------------
Sat Feb 26 11:20:10 UTC 2022 - Andreas Stieger <andreas.stieger@gmx.de>

View File

@ -29,6 +29,7 @@ URL: https://www.sqlite.org/
Source0: https://www.sqlite.org/2022/sqlite-src-%{tarversion}.zip
Source1: baselibs.conf
Source2: https://www.sqlite.org/2022/sqlite-doc-%{tarversion}.zip
Patch0: sqlite-src-3380100-atof1.patch
BuildRequires: automake
BuildRequires: libtool
BuildRequires: pkgconfig
@ -114,6 +115,7 @@ other documentation found on sqlite.org. The files can be found in
%prep
%setup -q -n sqlite-src-%{tarversion} -a2
%patch0 -p0
rm -v sqlite-doc-%{tarversion}/releaselog/current.html
ln -sv `echo %{version} | sed "s/\./_/g"`.html sqlite-doc-%{tarversion}/releaselog/current.html