summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndreas K. Hüttel <dilfridge@gentoo.org>2016-12-29 14:44:03 +0100
committerAndreas K. Hüttel <dilfridge@gentoo.org>2016-12-29 15:03:00 +0100
commit817a18bdb4da5dca17ec1f7ff82c16ceff31be2a (patch)
treec28973e4b6e61fb63baae93523ab935a825bac61 /app-editors/padre/files
parentapp-misc/ytree: remove 1.98-r1 (diff)
downloadgentoo-817a18bdb4da5dca17ec1f7ff82c16ceff31be2a.tar.gz
gentoo-817a18bdb4da5dca17ec1f7ff82c16ceff31be2a.tar.bz2
gentoo-817a18bdb4da5dca17ec1f7ff82c16ceff31be2a.zip
app-editors/padre: Add patch from bug 584852. Also, needs perl[ithreads].
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'app-editors/padre/files')
-rw-r--r--app-editors/padre/files/padre-1.0.0-DBD-Sqlite.patch35
1 files changed, 35 insertions, 0 deletions
diff --git a/app-editors/padre/files/padre-1.0.0-DBD-Sqlite.patch b/app-editors/padre/files/padre-1.0.0-DBD-Sqlite.patch
new file mode 100644
index 000000000000..2685dea75748
--- /dev/null
+++ b/app-editors/padre/files/padre-1.0.0-DBD-Sqlite.patch
@@ -0,0 +1,35 @@
+From a9fb73f6b0ba76370f60300edfaf03f50e8326e0 Mon Sep 17 00:00:00 2001
+From: Charlie Gonzalez <itcharlie@gmail.com>
+Date: Wed, 17 Feb 2016 00:36:08 -0500
+Subject: [PATCH] =?UTF-8?q?Applying=20Petr=20P=C3=ADsa=C5=99=20=20fix=20?=
+ =?UTF-8?q?=20for=20DBD::SQLite=20error?=
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+This fix corrects test failures for DBD::SQLite inside Padre.
+---
+ lib/Padre/Locker.pm | 3 ++-
+ 1 file changed, 2 insertions(+), 1 deletion(-)
+
+diff --git a/lib/Padre/Locker.pm b/lib/Padre/Locker.pm
+index 7eaf919..e0db4e8 100644
+--- a/lib/Padre/Locker.pm
++++ b/lib/Padre/Locker.pm
+@@ -102,7 +102,7 @@ sub shutdown {
+ sub db_increment {
+ my $self = shift;
+ unless ( $self->{db_depth}++ ) {
+- Padre::DB->begin;
++
+
+ # Database operations we lock on are the most likely to
+ # involve writes. So opportunistically prevent blocking
+@@ -111,6 +111,7 @@ sub db_increment {
+ # corruption if (and only if) there is a power outage,
+ # operating system crash, or catastrophic hardware failure.
+ Padre::DB->pragma( synchronous => 0 );
++ Padre::DB->begin;
+ }
+ return;
+ }