From d3d0e359fe46b2695790d5610e8d30c213c0933bfacc2f51f80dff5811dd4a2e Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Mon, 14 Mar 2022 14:15:05 +0000 Subject: [PATCH] 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 --- sqlite-src-3380100-atof1.patch | 26 ++++++++++++++++++++++++++ sqlite3.changes | 2 ++ sqlite3.spec | 2 ++ 3 files changed, 30 insertions(+) create mode 100644 sqlite-src-3380100-atof1.patch diff --git a/sqlite-src-3380100-atof1.patch b/sqlite-src-3380100-atof1.patch new file mode 100644 index 0000000..ce5c310 --- /dev/null +++ b/sqlite-src-3380100-atof1.patch @@ -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)}] + diff --git a/sqlite3.changes b/sqlite3.changes index bf23bce..65d83ad 100644 --- a/sqlite3.changes +++ b/sqlite3.changes @@ -15,6 +15,8 @@ Sun Mar 13 16:25:42 UTC 2022 - Andreas Stieger 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 diff --git a/sqlite3.spec b/sqlite3.spec index 8aa0e3a..3bec541 100644 --- a/sqlite3.spec +++ b/sqlite3.spec @@ -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