FreeBSD-specific patches

Bug #703135 reported by Doug Barton
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
qBittorrent
Fix Released
Medium
Christophe Dumez

Bug Description

The following are patches applied to qbittorrent 2.6.x in the FreeBSD ports tree. It would be nice if these could be added to the source at some level so that FreeBSD users who want to compile qbittorrent "out of the box" without using the ports would be able to do so easily.

--- src/filesystemwatcher.h.orig 2011-01-07 11:42:34.000000000 -0800
+++ src/filesystemwatcher.h 2011-01-09 23:11:01.000000000 -0800
@@ -12,7 +12,7 @@
 #include <QSet>
 #include <iostream>
 #include <errno.h>
-#ifdef Q_WS_MAC
+#if defined(Q_WS_MAC) || defined(__FreeBSD__)
 #include <sys/param.h>
 #include <sys/mount.h>
 #include <string.h>

--- src/misc.cpp.orig 2011-01-06 04:12:07.000000000 -0800
+++ src/misc.cpp 2011-01-09 23:11:01.000000000 -0800
@@ -60,7 +60,7 @@
 #endif

 #ifndef Q_WS_WIN
-#ifdef Q_WS_MAC
+#if defined Q_WS_MAC || defined(__FreeBSD__)
 #include <sys/param.h>
 #include <sys/mount.h>
 #else

In unixconf.pri:
sed 's|$$PREFIX/share/man|${MANPREFIX}/man|'
(Where MANPREFIX=$PREFIX)

And finally:
echo "LIBS+= -lexecinfo" >> src/src.pro

If you have any questions, just let me know.

Thanks,

Doug

Changed in qbittorrent:
assignee: nobody → Christophe Dumez (hydr0g3n)
importance: Undecided → Medium
milestone: none → 2.6.3
status: New → In Progress
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :

This should be fixed in SVN for next release. Could you please confirm that it works without any changes?
I will attach the patch so that you can see what I changed.

Changed in qbittorrent:
status: In Progress → Fix Committed
Revision history for this message
Christophe Dumez (hydr0g3n) wrote :
Changed in qbittorrent:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.