From 8c683ec588dd0fb54cfe8e4370fe14a91f7958875c21589c95838d64f546e913 Mon Sep 17 00:00:00 2001 From: Reinhard Max Date: Wed, 13 Jul 2022 14:47:10 +0000 Subject: [PATCH] Accepting request 986303 from home:AndreasStieger:branches:server:database - add sqlite-src-3390000-func7-pg-181.patch to skip float precision related test failures on 32 bit OBS-URL: https://build.opensuse.org/request/show/986303 OBS-URL: https://build.opensuse.org/package/show/server:database/sqlite3?expand=0&rev=287 --- sqlite-src-3390000-func7-pg-181.patch | 28 +++++++++++++++++++++++++++ sqlite3.changes | 4 +++- sqlite3.spec | 2 ++ 3 files changed, 33 insertions(+), 1 deletion(-) create mode 100644 sqlite-src-3390000-func7-pg-181.patch diff --git a/sqlite-src-3390000-func7-pg-181.patch b/sqlite-src-3390000-func7-pg-181.patch new file mode 100644 index 0000000..b42d631 --- /dev/null +++ b/sqlite-src-3390000-func7-pg-181.patch @@ -0,0 +1,28 @@ +From: Andreas Stieger +Subject: [PATCH] skip float precision related test failures on 32 bit +Date: Fri, 01 Jul 2022 21:12:29 +0000 +Upstream: no + +Introduced by: https://sqlite.org/src/info/c48a735bd4a1dbd5 +Upstream thread: https://sqlite.org/forum/forumpost/dd4767885a + +[ 642s] ! func7-pg-181 expected: [2.000000000000000000000000000000] +[ 642s] ! func7-pg-181 got: [1.999999999999999000000000000000] + +Index: sqlite-src-3390000/test/func7.test +=================================================================== +--- sqlite-src-3390000.orig/test/func7.test ++++ sqlite-src-3390000/test/func7.test +@@ -60,12 +60,6 @@ do_execsql_test func7-pg-170 { + do_execsql_test func7-pg-180 { + SELECT log10(1000.0) + } {3.0} +-do_execsql_test func7-pg-181 { +- SELECT format('%.30f', log10(100.0) ); +-} {2.000000000000000000000000000000} +-do_execsql_test func7-pg-182 { +- SELECT format('%.30f', ln(exp(2.0)) ); +-} {2.000000000000000000000000000000} + do_execsql_test func7-pg-190 { + SELECT log(2.0, 64.0) + } {6.0} diff --git a/sqlite3.changes b/sqlite3.changes index 5892546..c49da28 100644 --- a/sqlite3.changes +++ b/sqlite3.changes @@ -1,5 +1,5 @@ ------------------------------------------------------------------- -Fri Jul 1 19:31:59 UTC 2022 - Andreas Stieger +Fri Jul 1 21:10:07 UTC 2022 - Andreas Stieger - update to 3.39.0: * Add (long overdue) support for RIGHT and FULL OUTER JOIN @@ -22,6 +22,8 @@ Fri Jul 1 19:31:59 UTC 2022 - Andreas Stieger * Many microoptimizations collectively reduce CPU cycles by about 2.3%. - drop sqlite-src-3380100-atof1.patch, included upstream +- add sqlite-src-3390000-func7-pg-181.patch to skip float precision + related test failures on 32 bit ------------------------------------------------------------------- Sun May 8 10:00:51 UTC 2022 - Andreas Stieger diff --git a/sqlite3.spec b/sqlite3.spec index cb0779c..28efe80 100644 --- a/sqlite3.spec +++ b/sqlite3.spec @@ -30,6 +30,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-3390000-func7-pg-181.patch BuildRequires: automake BuildRequires: libtool BuildRequires: pkgconfig @@ -127,6 +128,7 @@ other documentation found on sqlite.org. The files can be found in %prep %setup -q -n sqlite-src-%{tarversion} -a2 +%autopatch -p1 rm -v sqlite-doc-%{tarversion}/releaselog/current.html ln -sv `echo %{version} | sed "s/\./_/g"`.html sqlite-doc-%{tarversion}/releaselog/current.html