public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/sqlite] rawhide: Remove testrunner patch and fix waliter test on ppc
@ 2026-10-20  8:36 Petr Khartskhaev
  0 siblings, 0 replies; only message in thread
From: Petr Khartskhaev @ 2026-10-20  8:36 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/sqlite
            Branch : rawhide
            Commit : 25b716195ef4974ddc5548f1ed2787a237a29802
            Author : Petr Khartskhaev <pkhartsk@redhat.com>
            Date   : 2026-10-19T17:24:05+02:00
            Stats  : +27/-16 in 3 file(s)
            URL    : https://src.fedoraproject.org/rpms/sqlite/c/25b716195ef4974ddc5548f1ed2787a237a29802?branch=rawhide

            Log:
            Remove testrunner patch and fix waliter test on ppc

No longer needed as upstream fixed the testrunner

The waliter test fails on ppc due to it having 64KiB
pages so I added a condition in a patch.
Reported upstream here: https://sqlite.org/forum/forumpost/66d7ea4444

---
diff --git a/sqlite-3.53.0-fix-testrunner-exiting-0.patch b/sqlite-3.53.0-fix-testrunner-exiting-0.patch
deleted file mode 100644
index 648b5d4..0000000
--- a/sqlite-3.53.0-fix-testrunner-exiting-0.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-testrunner.tcl exits with code 0 even if tests fail
-reported upstream https://sqlite.org/forum/info/cfa5101805883158
-diff --git a/test/testrunner.tcl b/test/testrunner.tcl
-index 62dce8e..035e137 100755
---- a/test/testrunner.tcl
-+++ b/test/testrunner.tcl
-@@ -1877,6 +1877,7 @@ proc run_testset {} {
-   trdb eval {
-      SELECT DISTINCT substr(svers,1,79) as v1 FROM jobs WHERE svers IS NOT NULL
-   } {puts $v1}
-+  if {$totalerr>0} {exit 1}
- 
- }
- 

diff --git a/sqlite-3.54.1-fix-ppc64le-waliter-test.patch b/sqlite-3.54.1-fix-ppc64le-waliter-test.patch
new file mode 100644
index 0000000..6d480a1
--- /dev/null
+++ b/sqlite-3.54.1-fix-ppc64le-waliter-test.patch
@@ -0,0 +1,25 @@
+diff --git a/test/waliter.test b/test/waliter.test
+index 9b5af87..7d7b179 100644
+--- a/test/waliter.test
++++ b/test/waliter.test
+@@ -65,9 +65,17 @@ do_execsql_test 1.1 {
+   UPDATE t1 SET b = randomblob(900);
+ } {0}
+ 
+-do_test 1.2 {
+-  file size test.db-shm
+-} [expr 32768 * 3]
++if {$tcl_platform(machine)=="ppc64le"} {
++  # ppc64le on fedora uses 64KiB pages,
++  # so the minimum size is 2x that
++  do_test 1.2 {
++    file size test.db-shm
++  } [expr 65536 * 2]
++} else {
++  do_test 1.2 {
++    file size test.db-shm
++  } [expr 32768 * 3]
++}
+ 
+ do_execsql_test 1.3 {
+   PRAGMA wal_checkpoint

diff --git a/sqlite.spec b/sqlite.spec
index 68ffaaa..3212bc0 100644
--- a/sqlite.spec
+++ b/sqlite.spec
@@ -22,8 +22,8 @@ Source1: http://www.sqlite.org/%{year}/sqlite-doc-%{docver}.zip
 # Support a system-wide lemon template
 Patch1: sqlite-3.6.23-lemon-system-template.patch
 Patch2: sqlite-3.49.0-fix-lemon-missing-cflags.patch
-Patch3: sqlite-3.53.0-fix-testrunner-exiting-0.patch
-Patch4: sqlite-3.53.3-fix-fts3corrupt4-test.patch
+Patch3: sqlite-3.53.3-fix-fts3corrupt4-test.patch
+Patch4: sqlite-3.54.1-fix-ppc64le-waliter-test.patch
 
 BuildRequires: make
 BuildRequires: gcc gcc-c++

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-20  8:36 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-20  8:36 [rpms/sqlite] rawhide: Remove testrunner patch and fix waliter test on ppc Petr Khartskhaev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox