1 |
commit: fd4b7ae5796c5730482d4f2e632709f14632e1d3 |
2 |
Author: Sam James <sam <AT> gentoo <DOT> org> |
3 |
AuthorDate: Fri Nov 25 03:25:34 2022 +0000 |
4 |
Commit: Sam James <sam <AT> gentoo <DOT> org> |
5 |
CommitDate: Fri Nov 25 03:25:42 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fd4b7ae5 |
7 |
|
8 |
dev-db/sqlite: fix tests w/ ICU 72 |
9 |
|
10 |
Closes: https://bugs.gentoo.org/882605 |
11 |
Signed-off-by: Sam James <sam <AT> gentoo.org> |
12 |
|
13 |
.../sqlite/files/sqlite-3.39.4-icu-72-test.patch | 29 ++++++++++++++++++++++ |
14 |
dev-db/sqlite/sqlite-3.39.4.ebuild | 6 ++++- |
15 |
2 files changed, 34 insertions(+), 1 deletion(-) |
16 |
|
17 |
diff --git a/dev-db/sqlite/files/sqlite-3.39.4-icu-72-test.patch b/dev-db/sqlite/files/sqlite-3.39.4-icu-72-test.patch |
18 |
new file mode 100644 |
19 |
index 000000000000..54de04d11f06 |
20 |
--- /dev/null |
21 |
+++ b/dev-db/sqlite/files/sqlite-3.39.4-icu-72-test.patch |
22 |
@@ -0,0 +1,29 @@ |
23 |
+https://sqlite.org/src/vpatch?from=18e89a436daa18a8&to=a2b6883ac2ef878f |
24 |
+https://sqlite.org/forum/forumpost/072d2fddc4 |
25 |
+https://bugs.gentoo.org/882605 |
26 |
+--- a/test/fts3expr4.test |
27 |
++++ b/test/fts3expr4.test |
28 |
+@@ -48,11 +48,20 @@ |
29 |
+ |
30 |
+ # In "col:word", if "col" is not the name of a column, the entire thing |
31 |
+ # is passed to the tokenizer. |
32 |
+ # |
33 |
+ do_icu_expr_test 1.7 {a:word} {PHRASE 0 0 word} |
34 |
+-do_icu_expr_test 1.8 {d:word} {PHRASE 3 0 d:word} |
35 |
++# do_icu_expr_test 1.8 {d:word} {PHRASE 3 0 d:word} |
36 |
++do_test 1.8 { |
37 |
++ set res [ |
38 |
++ db one {SELECT fts3_exprtest('icu en_US', 'd:word', 'a', 'b', 'c')} |
39 |
++ ] |
40 |
++ expr { |
41 |
++ $res=="PHRASE 3 0 d:word" || |
42 |
++ $res=="AND {AND {PHRASE 3 0 d} {PHRASE 3 0 :}} {PHRASE 3 0 word}" |
43 |
++ } |
44 |
++} 1 |
45 |
+ |
46 |
+ set sqlite_fts3_enable_parentheses 0 |
47 |
+ |
48 |
+ do_icu_expr_test 2.1 { |
49 |
+ f (e NEAR/2 a) |
50 |
+ |
51 |
+ |
52 |
|
53 |
diff --git a/dev-db/sqlite/sqlite-3.39.4.ebuild b/dev-db/sqlite/sqlite-3.39.4.ebuild |
54 |
index a2eb7c1e987f..ffcf6d08808b 100644 |
55 |
--- a/dev-db/sqlite/sqlite-3.39.4.ebuild |
56 |
+++ b/dev-db/sqlite/sqlite-3.39.4.ebuild |
57 |
@@ -53,6 +53,10 @@ else |
58 |
S="${WORKDIR}/${PN}-src-${SRC_PV}" |
59 |
fi |
60 |
|
61 |
+PATCHES=( |
62 |
+ "${FILESDIR}"/${PN}-3.39.4-icu-72-test.patch |
63 |
+) |
64 |
+ |
65 |
_fossil_fetch() { |
66 |
local distdir="${PORTAGE_ACTUAL_DISTDIR:-${DISTDIR}}" |
67 |
local repo_id="${1}" |
68 |
@@ -139,7 +143,7 @@ src_unpack() { |
69 |
} |
70 |
|
71 |
src_prepare() { |
72 |
- eapply_user |
73 |
+ default |
74 |
|
75 |
eautoreconf |