[Pkg-owncloud-commits] [owncloud-client] 01/01: Added freebsd.patch

Sandro Knauß hefee-guest at moszumanska.debian.org
Wed Apr 23 21:02:50 UTC 2014


This is an automated email from the git hooks/post-receive script.

hefee-guest pushed a commit to branch master
in repository owncloud-client.

commit 1458949dc0282a54c3a8966609b057bac57139a6
Author: Sandro Knauß <bugs at sandroknauss.de>
Date:   Wed Apr 23 18:49:51 2014 +0200

    Added freebsd.patch
---
 debian/patches/freebsd.patch | 48 ++++++++++++++++++++++++++++++++++++++++++++
 debian/patches/series        |  1 +
 2 files changed, 49 insertions(+)

diff --git a/debian/patches/freebsd.patch b/debian/patches/freebsd.patch
new file mode 100644
index 0000000..55ffb1d
--- /dev/null
+++ b/debian/patches/freebsd.patch
@@ -0,0 +1,48 @@
+Index: owncloud-client/src/mirall/folderwatcher.cpp
+===================================================================
+--- owncloud-client.orig/src/mirall/folderwatcher.cpp	2014-04-23 12:21:50.760565989 +0200
++++ owncloud-client/src/mirall/folderwatcher.cpp	2014-04-23 18:24:03.378650910 +0200
+@@ -29,7 +29,7 @@
+ #include "mirall/folderwatcher_win.h"
+ #elif defined(Q_OS_MAC)
+ #include "mirall/folderwatcher_mac.h"
+-#elif defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
++#elif defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(__FreeBSD_kernel__)
+ #include "mirall/folderwatcher_linux.h"
+ #endif
+ 
+Index: owncloud-client/src/mirall/application.cpp
+===================================================================
+--- owncloud-client.orig/src/mirall/application.cpp	2014-04-23 12:20:32.508158583 +0200
++++ owncloud-client/src/mirall/application.cpp	2014-04-23 18:25:36.649218667 +0200
+@@ -64,7 +64,7 @@
+ 
+ QString applicationTrPath()
+ {
+-#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD)
++#if defined(Q_OS_LINUX) || defined(Q_OS_FREEBSD) || defined(__FreeBSD_kernel__)
+     return QString::fromLatin1(DATADIR"/"APPLICATION_EXECUTABLE"/i18n/");
+ #endif
+ #ifdef Q_OS_MAC
+Index: owncloud-client/src/mirall/utility.cpp
+===================================================================
+--- owncloud-client.orig/src/mirall/utility.cpp	2014-04-22 19:38:44.769059208 +0200
++++ owncloud-client/src/mirall/utility.cpp	2014-04-23 18:26:25.019513848 +0200
+@@ -140,7 +140,7 @@
+     return QLatin1String("Linux");
+ #elif defined(__DragonFly__) // Q_OS_FREEBSD also defined
+     return QLatin1String("DragonFlyBSD");
+-#elif defined(Q_OS_FREEBSD)
++#elif defined(Q_OS_FREEBSD) || defined(__FreeBSD_kernel__)
+     return QLatin1String("FreeBSD");
+ #elif defined(Q_OS_NETBSD)
+     return QLatin1String("NetBSD");
+@@ -193,7 +193,7 @@
+ 
+ qint64 Utility::freeDiskSpace(const QString &path, bool *ok)
+ {
+-#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD)
++#if defined(Q_OS_MAC) || defined(Q_OS_FREEBSD) || defined(__FreeBSD_kernel__)
+     struct statvfs stat;
+     statvfs(path.toUtf8().data(), &stat);
+     return (qint64) stat.f_bavail * stat.f_frsize;
diff --git a/debian/patches/series b/debian/patches/series
index a52131e..0ea8022 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -2,3 +2,4 @@
 0002-create-manpage.patch
 0003-respect-the-XDG_CONFIG_HOME-env-variable.patch
 0004-debian_version.patch
+freebsd.patch

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git



More information about the Pkg-owncloud-commits mailing list