summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--extra/fwbuilder/PKGBUILD7
-rw-r--r--extra/fwbuilder/gcc47.patch11
2 files changed, 16 insertions, 2 deletions
diff --git a/extra/fwbuilder/PKGBUILD b/extra/fwbuilder/PKGBUILD
index 202056bb5..a5e936748 100644
--- a/extra/fwbuilder/PKGBUILD
+++ b/extra/fwbuilder/PKGBUILD
@@ -12,11 +12,14 @@ license=('GPL')
depends=('libxslt' 'net-snmp' 'qt')
conflicts=('libfwbuilder')
install=fwbuilder.install
-source=("http://sourceforge.net/projects/fwbuilder/files/Current_Packages/${pkgver%.*}/fwbuilder-${pkgver}.tar.gz")
-md5sums=('50b567a9752e9dd4f4cd0d988d74d879')
+source=("http://sourceforge.net/projects/fwbuilder/files/Current_Packages/${pkgver%.*}/fwbuilder-${pkgver}.tar.gz"
+ "gcc47.patch")
+md5sums=('50b567a9752e9dd4f4cd0d988d74d879'
+ '864cc741b11c8a2e8c6c27cbe82c511d')
build() {
cd "${srcdir}/fwbuilder-${pkgver}"
+ patch -p1 -i "$srcdir/gcc47.patch"
./autogen.sh
./configure --prefix=/usr
make
diff --git a/extra/fwbuilder/gcc47.patch b/extra/fwbuilder/gcc47.patch
new file mode 100644
index 000000000..2581e9b43
--- /dev/null
+++ b/extra/fwbuilder/gcc47.patch
@@ -0,0 +1,11 @@
+diff -ru fwbuilder-5.0.1.3592.orig/src/libfwbuilder/src/fwbuilder/ThreadTools.h fwbuilder-5.0.1.3592/src/libfwbuilder/src/fwbuilder/ThreadTools.h
+--- fwbuilder-5.0.1.3592.orig/src/libfwbuilder/src/fwbuilder/ThreadTools.h 2012-04-21 19:25:26.684127714 +0200
++++ fwbuilder-5.0.1.3592/src/libfwbuilder/src/fwbuilder/ThreadTools.h 2012-04-21 19:26:05.308091572 +0200
+@@ -31,6 +31,7 @@
+
+ #include <time.h> //for time_t definition
+ #include <pthread.h>
++#include <unistd.h> // for ssize_t
+
+ #include <string>
+ #include <queue>