Skip to content

Commit

Permalink
app-editors/padre: Add patch from bug 584852. Also, needs perl[ithrea…
Browse files Browse the repository at this point in the history
…ds].

Package-Manager: Portage-2.3.3, Repoman-2.3.1
  • Loading branch information
akhuettel committed Dec 29, 2016
1 parent ce5fe60 commit 817a18b
Show file tree
Hide file tree
Showing 2 changed files with 144 additions and 0 deletions.
35 changes: 35 additions & 0 deletions app-editors/padre/files/padre-1.0.0-DBD-Sqlite.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
From a9fb73f6b0ba76370f60300edfaf03f50e8326e0 Mon Sep 17 00:00:00 2001
From: Charlie Gonzalez <[email protected]>
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;
}
109 changes: 109 additions & 0 deletions app-editors/padre/padre-1.0.0-r1.ebuild
Original file line number Diff line number Diff line change
@@ -0,0 +1,109 @@
# Copyright 1999-2016 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Id$

EAPI=6

DIST_NAME=Padre
DIST_AUTHOR=PLAVEN
DIST_VERSION=1.00
inherit perl-module

DESCRIPTION="Perl Application Development and Refactoring Environment"
HOMEPAGE="http://padre.perlide.org/"

SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE=""

# Test Deps
TDEPEND="
>=dev-perl/Test-MockObject-1.09
>=dev-perl/Test-Script-1.07
>=dev-perl/Test-Exception-0.27
>=dev-perl/Test-NoWarnings-0.084
>=virtual/perl-Test-Simple-0.88
>=dev-perl/Test-Warn-0.240.0
"

RDEPEND="
dev-lang/perl[ithreads]
>=dev-lang/perl-5.10.1
>=dev-perl/Algorithm-Diff-1.190.0
>=dev-perl/Capture-Tiny-0.06
>=dev-perl/Class-Adapter-1.05
>=dev-perl/Class-Inspector-1.22
>=dev-perl/Class-XSAccessor-1.130.0
>=dev-perl/DBD-SQLite-1.350.0
>=dev-perl/DBI-1.58
>=dev-perl/Devel-Dumpvar-0.04
>=dev-perl/Debug-Client-0.200.0
>=dev-perl/Devel-Refactor-0.05
>=dev-perl/File-Copy-Recursive-0.37
>=dev-perl/File-Find-Rule-0.30
>=dev-perl/File-HomeDir-0.91
>=virtual/perl-File-Path-2.08
>=dev-perl/File-Remove-1.40
>=dev-perl/File-ShareDir-1.00
>=virtual/perl-File-Spec-3.27.01
>=virtual/perl-File-Temp-0.20
>=dev-perl/File-Which-1.08
dev-perl/File-pushd
virtual/perl-Getopt-Long
>=dev-perl/HTML-Parser-3.58
>=dev-perl/IO-stringy-2.110
virtual/perl-IO
>=dev-perl/IO-String-1.08
>=dev-perl/IPC-Run-0.83
>=dev-perl/JSON-XS-2.2.9
>=virtual/perl-Scalar-List-Utils-1.18
>=dev-perl/libwww-perl-5.815
>=dev-perl/List-MoreUtils-0.22
>=dev-perl/Locale-Msgfmt-0.15
>=dev-perl/Module-Manifest-0.07
>=dev-perl/ORLite-1.960.0
>=dev-perl/ORLite-Migrate-1.100.0
>=dev-perl/PAR-0.989
>=dev-perl/Params-Util-0.33
>=dev-perl/Parse-ErrorString-Perl-0.14
>=dev-perl/Parse-ExuberantCTags-1.00
>=dev-perl/Pod-Abstract-0.16
>=dev-perl/Pod-POM-0.17
>=virtual/perl-Pod-Simple-3.07
>=dev-perl/PPI-1.205
>=dev-perl/PPIx-EditorTools-0.130.0
>=dev-perl/PPIx-Regexp-0.011
dev-perl/Probe-Perl
>=dev-perl/Sort-Versions-1.500.0
>=virtual/perl-Storable-2.16
>=dev-perl/Template-Tiny-0.11
>=virtual/perl-Text-Balanced-0.80
>=dev-perl/Text-Diff-1.410.0
>=dev-perl/Text-FindIndent-0.10
>=dev-perl/Text-Patch-1.800.0
>=virtual/perl-threads-1.71
>=virtual/perl-threads-shared-1.33
>=virtual/perl-Time-HiRes-1.97.18
>=dev-perl/URI-0
>=dev-perl/Wx-0.990.100
>=dev-perl/Wx-Perl-ProcessStream-0.28
>=dev-perl/Wx-Scintilla-0.340.0
>=dev-perl/YAML-Tiny-1.32
>=virtual/perl-version-0.79
"
DEPEND="${RDEPEND}"
# test? (
# ${TDEPEND}
# )
#"

DIST_TEST=skip

PATCHES=(
"${FILESDIR}/${P}-DBD-Sqlite.patch"
)

src_configure() {
unset DISPLAY
perl-module_src_configure
}

0 comments on commit 817a18b

Please sign in to comment.