commit: 5b4eb4c3c5efb8f2946423724c7b4a60ed60279b Author: Sam James <sam <AT> gentoo <DOT> org> AuthorDate: Fri Feb 14 11:34:10 2025 +0000 Commit: Sam James <sam <AT> gentoo <DOT> org> CommitDate: Fri Feb 14 11:34:52 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=5b4eb4c3
dev-db/sqlite: backport test fix w/ USE=icu Signed-off-by: Sam James <sam <AT> gentoo.org> dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch | 29 +++++++++++++++++++++++ dev-db/sqlite/sqlite-3.49.0.ebuild | 2 ++ 2 files changed, 31 insertions(+) diff --git a/dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch b/dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch new file mode 100644 index 000000000000..8211d1a146b2 --- /dev/null +++ b/dev-db/sqlite/files/sqlite-3.49.0-icu-tests.patch @@ -0,0 +1,29 @@ +https://sqlite.org/forum/forumpost/f93323a743 +https://sqlite.org/src/info/5964616dc9de9323 +--- a/test/like3.test ++++ b/test/like3.test +@@ -302,15 +302,23 @@ + } + + #------------------------------------------------------------------------- + reset_db + ++# See forum thread https://sqlite.org/forum/info/d7b90d92ffbfc61f + foreach enc { + UTF-8 + UTF-16le + UTF-16be + } { ++ ifcapable icu { ++ if {$enc=="UTF-8"} { ++ # The invalid UTF8 used in these tests is incompatible with ICU ++ # https://sqlite.org/forum/forumpost/2ca8a09a7e ++ continue ++ } ++ } + foreach {tn expr} { + 1 "CAST (X'FF' AS TEXT)" + 2 "CAST (X'FFBF' AS TEXT)" + 3 "CAST (X'FFBFBF' AS TEXT)" + 4 "CAST (X'FFBFBFBF' AS TEXT)" + diff --git a/dev-db/sqlite/sqlite-3.49.0.ebuild b/dev-db/sqlite/sqlite-3.49.0.ebuild index 1f481b32f3df..04ed199f3b1b 100644 --- a/dev-db/sqlite/sqlite-3.49.0.ebuild +++ b/dev-db/sqlite/sqlite-3.49.0.ebuild @@ -53,6 +53,8 @@ PATCHES=( "${FILESDIR}"/${PN}-3.47.2-hwtime.h-Don-t-use-rdtsc-on-i486.patch # https://sqlite.org/forum/forumpost/3c2014fea4 "${FILESDIR}"/${PN}-3.49.0-cppflags.patch + # https://sqlite.org/forum/forumpost/f93323a743 + "${FILESDIR}"/${PN}-3.49.0-icu-tests.patch ) _fossil_fetch() {
