dev-db/sqlite: Fix zipfile2-2.0 test on some filesystems.
authorArfrever Frehtes Taifersar Arahesis <Arfrever@Apache.Org>
Wed, 25 Apr 2018 18:59:04 +0000 (20:59 +0200)
committerMike Gilbert <floppym@gentoo.org>
Thu, 26 Apr 2018 15:12:17 +0000 (11:12 -0400)
Closes: https://bugs.gentoo.org/653450

dev-db/sqlite/files/sqlite-3.23.1-full_archive-tests.patch [new file with mode: 0644]
dev-db/sqlite/sqlite-3.23.1.ebuild

diff --git a/dev-db/sqlite/files/sqlite-3.23.1-full_archive-tests.patch b/dev-db/sqlite/files/sqlite-3.23.1-full_archive-tests.patch
new file mode 100644 (file)
index 0000000..7237fbf
--- /dev/null
@@ -0,0 +1,27 @@
+https://sqlite.org/src/info/893e6089c875e947
+
+--- /test/zipfile2.test
++++ /test/zipfile2.test
+@@ -52,17 +52,15 @@
+   CREATE VIRTUAL TABLE fff USING zipfile('test''zip');
+ }
+ 
+-if {$::tcl_platform(platform)=="windows"} {
+-  set res {1 {cannot open file: testdir}}
+-} else {
+-  set res {1 {error in fread()}}
+-}
+ do_test 2.0 {
+   forcedelete testdir
+   file mkdir testdir
+   execsql { CREATE VIRTUAL TABLE hhh USING zipfile('testdir') }
+-  catchsql { SELECT * FROM hhh } 
+-} $res
++  lindex [catchsql { 
++    SELECT * FROM hhh;
++    INSERT INTO hhh(name, data) VALUES('1.txt', 'file data');
++  }] 0 
++} 1
+ 
+ 
+ set archive {
index 863c3cd57b6c7be0acabefd84a652d77c54ee2ae..88f7d9dfd71e2c34ab3365b2e000ed6f03bc2d7f 100644 (file)
@@ -52,6 +52,7 @@ src_prepare() {
        if full_archive; then
                eapply "${FILESDIR}/${PN}-3.23.0-full_archive-build.patch"
                eapply "${FILESDIR}/${PN}-3.23.1-full_archive-prohibit_bound_parameters_in_arguments_to_table-valued_functions_within_triggers.patch"
+               eapply "${FILESDIR}/${PN}-3.23.1-full_archive-tests.patch"
 
                eapply_user