diff options
author | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-04-26 00:37:52 +0200 |
---|---|---|
committer | Andreas K. Hüttel <dilfridge@gentoo.org> | 2021-04-26 00:37:52 +0200 |
commit | 349dd3b33cc773bef3468440375cf0ddafdce835 (patch) | |
tree | ebc2bc9eb2f2ae54e9a87885636182ebbaf6aa60 /dev-perl/ORLite | |
parent | package.mask: Mask dev-perl/HTTPD-User-Manage for removal (diff) | |
download | gentoo-349dd3b33cc773bef3468440375cf0ddafdce835.tar.gz gentoo-349dd3b33cc773bef3468440375cf0ddafdce835.tar.bz2 gentoo-349dd3b33cc773bef3468440375cf0ddafdce835.zip |
dev-perl/ORLite: Fix tests
Closes: https://bugs.gentoo.org/650514
Package-Manager: Portage-3.0.17, Repoman-3.0.2
Signed-off-by: Andreas K. Hüttel <dilfridge@gentoo.org>
Diffstat (limited to 'dev-perl/ORLite')
-rw-r--r-- | dev-perl/ORLite/ORLite-1.980.0-r1.ebuild | 8 | ||||
-rw-r--r-- | dev-perl/ORLite/files/ORLite-1.98-vacuum.patch | 44 |
2 files changed, 50 insertions, 2 deletions
diff --git a/dev-perl/ORLite/ORLite-1.980.0-r1.ebuild b/dev-perl/ORLite/ORLite-1.980.0-r1.ebuild index 0296ac179f9b..1020bed4fcad 100644 --- a/dev-perl/ORLite/ORLite-1.980.0-r1.ebuild +++ b/dev-perl/ORLite/ORLite-1.980.0-r1.ebuild @@ -1,4 +1,4 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=6 @@ -31,5 +31,9 @@ DEPEND=" RDEPEND=" ${COMMON_DEPEND} " -PATCHES=( "${FILESDIR}/${PN}-1.98-dot-in-inc.patch" ) +PATCHES=( + "${FILESDIR}/${PN}-1.98-dot-in-inc.patch" + "${FILESDIR}/${PN}-1.98-vacuum.patch" +) + DIST_TEST="do" # Parallel tests broken diff --git a/dev-perl/ORLite/files/ORLite-1.98-vacuum.patch b/dev-perl/ORLite/files/ORLite-1.98-vacuum.patch new file mode 100644 index 000000000000..25b819c8000b --- /dev/null +++ b/dev-perl/ORLite/files/ORLite-1.98-vacuum.patch @@ -0,0 +1,44 @@ +Description: Fix cleanup in tests. + Since SQLite 3.15, VACUUM either needs no arguments, or the name of an + attached database. + . + From https://sqlite.org/lang_vacuum.html : + Compatibility Warning: The ability to vacuum attached databases was added + in version 3.15.0 (2016-10-14). Prior to that, a schema-name added to the + VACUUM statement would be silently ignored and the "main" schema would be + vacuumed. + . + That means that 'VACUUM ANALYZE' never did what it was probably supposed to + do. + . + Maybe 'VACUUM; ANALYZE' works as well. -- And besides this change in the + testsuite, the documentation for cleanup() in the POD would need to be + updated as well. + . +Origin: vendor +Bug-Debian: https://bugs.debian.org/841545 +Author: gregor herrmann <gregoa@debian.org> +Last-Update: 2016-10-21 + +--- a/t/10_cleanup.t ++++ b/t/10_cleanup.t +@@ -29,7 +29,7 @@ + use strict; + use ORLite { + file => '$file', +- cleanup => 'VACUUM ANALYZE', ++ cleanup => 'VACUUM', + }; + + 1; +--- a/t/11_cleanup.t ++++ b/t/11_cleanup.t +@@ -29,7 +29,7 @@ + use strict; + use ORLite { + file => '$file', +- cleanup => 'VACUUM ANALYZE', ++ cleanup => 'VACUUM', + }; + + 1; |