aboutsummaryrefslogtreecommitdiffstats
path: root/audio
diff options
context:
space:
mode:
authorwoodsb02 <woodsb02@FreeBSD.org>2016-10-15 08:48:19 +0800
committerwoodsb02 <woodsb02@FreeBSD.org>2016-10-15 08:48:19 +0800
commit9f7f55fcc0078939673bcf35e19a7f44ec9fe41e (patch)
tree9a35df08bd9ebe78fa165e909f82e1ee3f403317 /audio
parentc348b65029ad7f3820d828e96831972e5a77f217 (diff)
downloadfreebsd-ports-gnome-9f7f55fcc0078939673bcf35e19a7f44ec9fe41e.tar.gz
freebsd-ports-gnome-9f7f55fcc0078939673bcf35e19a7f44ec9fe41e.tar.zst
freebsd-ports-gnome-9f7f55fcc0078939673bcf35e19a7f44ec9fe41e.zip
audio/logitechmediaserver: Remove patch-dbix-class-bug.diff
This fixes the scanner.pl program, which would otherwise produce this error in the log files: Slim::Schema::Storage::throw_exception (122) Error: DBI Exception: DBD::SQLite::db do failed: SQL logic error or missing database cannot ATTACH database within transaction [for Statement "ATTACH '/var/db/logitechmediaserver/cache/persist.db' AS persistentdb"] More details about this problem: http://forums.slimdevices.com/showthread.php?106257-FreeBSD-port&p=864545 Approved by: mark@tranquillussoftware.co.uk (maintainer), adamw (mentor) Differential Revision: https://reviews.freebsd.org/D8255
Diffstat (limited to 'audio')
-rw-r--r--audio/logitechmediaserver/Makefile1
-rw-r--r--audio/logitechmediaserver/files/patch-dbix-class-bug.diff35
2 files changed, 1 insertions, 35 deletions
diff --git a/audio/logitechmediaserver/Makefile b/audio/logitechmediaserver/Makefile
index d2f7646acdf3..91aba5a0d100 100644
--- a/audio/logitechmediaserver/Makefile
+++ b/audio/logitechmediaserver/Makefile
@@ -2,6 +2,7 @@
PORTNAME= logitechmediaserver
PORTVERSION= 7.9.0.g2016.09.30
+PORTREVISION= 1
CATEGORIES= audio
MAINTAINER= mark@tranquillussoftware.co.uk
diff --git a/audio/logitechmediaserver/files/patch-dbix-class-bug.diff b/audio/logitechmediaserver/files/patch-dbix-class-bug.diff
deleted file mode 100644
index 1724278b13c9..000000000000
--- a/audio/logitechmediaserver/files/patch-dbix-class-bug.diff
+++ /dev/null
@@ -1,35 +0,0 @@
---- scanner.pl.orig 2016-09-30 13:54:28 UTC
-+++ scanner.pl
-@@ -279,10 +279,6 @@ sub main {
- # Perform pre-scan steps specific to the database type, i.e. SQLite needs to copy to a new file
- $sqlHelperClass->beforeScan();
-
-- # Take the db out of autocommit mode - this makes for a much faster scan.
-- # Scanner::Local will commit every few operations
-- Slim::Schema->dbh->{'AutoCommit'} = 0;
--
- my $scanType = 'SETUP_STANDARDRESCAN';
-
- if ($wipe) {
-Index: Slim/Schema.pm
-===================================================================
---- Slim/Schema.pm.orig 2016-09-30 13:54:28 UTC
-+++ Slim/Schema.pm
-@@ -270,12 +270,16 @@ sub _connect {
- # For custom exceptions
- $class->storage_type('Slim::Schema::Storage');
-
-+ # Don't use autocommit mode for the scanner.
-+ # Needs to be set here as setting dbh->{'AutoCommit'} = 0 later
-+ # confusing the transaction nesting logic.
-+ my $AutoCommit = (main::SCANNER ? 0 : 1);
- my $sqlHelperClass = Slim::Utils::OSDetect->getOS()->sqlHelperClass();
- my $on_connect_do = $sqlHelperClass->on_connect_do();
-
- $class->connection( $dsn || $source, $username, $password, {
- RaiseError => 1,
-- AutoCommit => 1,
-+ AutoCommit => $AutoCommit,
- PrintError => 0,
- Taint => 1,
- on_connect_do => [