pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

ardour: Fix no free disk space error



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Sat Jun 18 19:00:20 2016 +0200
Changeset:	36030af874480bbe9ba3a99c6bbe591bda342c8d

Modified Files:
	ardour/distinfo
	ardour/patches/patch-libs_fst_wscript
Added Files:
	ardour/patches/patch-libs_ardour_session__state.cc

Log Message:
ardour: Fix no free disk space error

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=36030af874480bbe9ba3a99c6bbe591bda342c8d

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 ardour/distinfo                                    |  3 ++-
 ardour/patches/patch-libs_ardour_session__state.cc | 30 ++++++++++++++++++++++
 ardour/patches/patch-libs_fst_wscript              |  8 +++++-
 3 files changed, 39 insertions(+), 2 deletions(-)

diffs:
diff --git a/ardour/distinfo b/ardour/distinfo
index dc4e06a..fd8cf3e 100644
--- a/ardour/distinfo
+++ b/ardour/distinfo
@@ -4,8 +4,9 @@ SHA1 (ardour-4.7.tar.gz) = 95047ccb3fc599ce11c473a0fd7f1eb012c3e440
 RMD160 (ardour-4.7.tar.gz) = 366f7057fab9878ac425dd70a751899984abc030
 SHA512 (ardour-4.7.tar.gz) = 5daff563ec0b2dc38ec6ca55bb12526ef54da9d8d5a29a9fd6d869f54b83e6fe5ff3c28ef654e6700455110b4a46ce42a33902eb66d96330c6c0948eb3cd3096
 Size (ardour-4.7.tar.gz) = 9863149 bytes
+SHA1 (patch-libs_ardour_session__state.cc) = a1966a289db67c4ddadffe68e681827720f61f8c
 SHA1 (patch-libs_ardouralsautil_wscript) = 5812a50ebbc9e27461617a238eca1d11445a4324
-SHA1 (patch-libs_fst_wscript) = b3b2743dc6449e739518ee920f581e150c04b362
+SHA1 (patch-libs_fst_wscript) = fe13abd4f13cf3bc044b2f91adf17a4722b361ec
 SHA1 (patch-libs_pbd_fpu.cc) = bec4f67f8b52482b5b1cf582a4631c335efec8c7
 SHA1 (patch-libs_pbd_mountpoint.cc) = 1c19b7fd593dbc9773a0e344b543e5842c8880a4
 SHA1 (patch-libs_pbd_wscript) = 9af54613ec93752f643371568656ff9a1ff04a84
diff --git a/ardour/patches/patch-libs_ardour_session__state.cc b/ardour/patches/patch-libs_ardour_session__state.cc
new file mode 100644
index 0000000..67d1a99
--- /dev/null
+++ b/ardour/patches/patch-libs_ardour_session__state.cc
@@ -0,0 +1,30 @@
+$NetBSD$
+
+--- libs/ardour/session_state.cc.orig	2016-02-19 01:28:56.000000000 +0000
++++ libs/ardour/session_state.cc
+@@ -2180,7 +2180,7 @@ Session::save_template (string template_
+ void
+ Session::refresh_disk_space ()
+ {
+-#if __APPLE__ || (HAVE_SYS_VFS_H && HAVE_SYS_STATVFS_H)
++#if __APPLE__ || (HAVE_SYS_VFS_H && HAVE_SYS_STATVFS_H) || defined(__NetBSD__)
+ 
+ 	Glib::Threads::Mutex::Lock lm (space_lock);
+ 
+@@ -2190,10 +2190,15 @@ Session::refresh_disk_space ()
+ 	_total_free_4k_blocks_uncertain = false;
+ 
+ 	for (vector<space_and_path>::iterator i = session_dirs.begin(); i != session_dirs.end(); ++i) {
++#if defined(__NetBSD__)
++		struct statvfs statfsbuf;
+ 
++		statvfs (i->path.c_str(), &statfsbuf);
++#else
+ 		struct statfs statfsbuf;
+-		statfs (i->path.c_str(), &statfsbuf);
+ 
++		statfs (i->path.c_str(), &statfsbuf);
++#endif
+ 		double const scale = statfsbuf.f_bsize / 4096.0;
+ 
+ 		/* See if this filesystem is read-only */
diff --git a/ardour/patches/patch-libs_fst_wscript b/ardour/patches/patch-libs_fst_wscript
index b3f93a0..fb53fa5 100644
--- a/ardour/patches/patch-libs_fst_wscript
+++ b/ardour/patches/patch-libs_fst_wscript
@@ -1,7 +1,13 @@
 $NetBSD$
 
---- libs/fst/wscript.orig	2016-06-18 14:53:24.121637455 +0000
+--- libs/fst/wscript.orig	2016-02-19 01:28:56.000000000 +0000
 +++ libs/fst/wscript
+@@ -1,4 +1,4 @@
+-#!/usr/bin/env python
++#!/usr/pkg/bin/python2.7
+ from waflib.extras import autowaf as autowaf
+ from waflib import Options, TaskGen
+ import waflib.Logs as Logs, waflib.Utils as Utils
 @@ -83,6 +83,7 @@ def build(bld):
      obj.includes  = [ '../pbd/', '../ardour/', '.' ]
      obj.defines = [


Home | Main Index | Thread Index | Old Index