aboutsummaryrefslogtreecommitdiff
path: root/network/fqterm
diff options
context:
space:
mode:
authorvvoody <vvoodywang@gmail.com>2012-09-13 17:34:15 -0500
committerRobby Workman <rworkman@slackbuilds.org>2012-09-13 17:58:57 -0500
commit7561a9f6f5cdeb0a19dd6f1bc993175577cc5454 (patch)
tree0f9d81f23b8fa5d31dc0871c194ceb02ae572548 /network/fqterm
parentd81bf1340f60b375c8d9e723521321b2a8291550 (diff)
network/fqterm: Fixed build with gcc47
Signed-off-by: Robby Workman <rworkman@slackbuilds.org>
Diffstat (limited to 'network/fqterm')
-rw-r--r--network/fqterm/fqterm-0.9.6.10-gcc47.patch10
-rw-r--r--network/fqterm/fqterm.SlackBuild5
2 files changed, 14 insertions, 1 deletions
diff --git a/network/fqterm/fqterm-0.9.6.10-gcc47.patch b/network/fqterm/fqterm-0.9.6.10-gcc47.patch
new file mode 100644
index 0000000000000..1b0167fe4d2a8
--- /dev/null
+++ b/network/fqterm/fqterm-0.9.6.10-gcc47.patch
@@ -0,0 +1,10 @@
+--- src/common/fqterm_trace.h 2011-09-28 17:10:16.000000000 +0200
++++ src/common/fqterm_trace.h.gcc47 2012-09-13 10:37:18.414623673 +0200
+@@ -22,6 +22,7 @@
+ #define FQTERM_TRACE_H
+
+ #include <cassert>
++#include <unistd.h>
+ #include <QtDebug>
+ #include <QFileInfo>
+
diff --git a/network/fqterm/fqterm.SlackBuild b/network/fqterm/fqterm.SlackBuild
index faf43df2e739e..74b32c7c2fd7d 100644
--- a/network/fqterm/fqterm.SlackBuild
+++ b/network/fqterm/fqterm.SlackBuild
@@ -6,7 +6,7 @@
PRGNAM=fqterm
VERSION=${VERSION:-0.9.6.10}
-BUILD=${BUILD:-1}
+BUILD=${BUILD:-2}
TAG=${TAG:-_SBo}
if [ -z "$ARCH" ]; then
@@ -51,6 +51,9 @@ find . \
\( -perm 666 -o -perm 664 -o -perm 600 -o -perm 444 -o -perm 440 -o -perm 400 \) \
-exec chmod 644 {} \;
+# Fix for compiling under gcc-4.7
+patch -p0 < $CWD/fqterm-0.9.6.10-gcc47.patch
+
mkdir build
cd build
cmake \