[fwbuilder] add patch from debian to fix build

Till Maas till at fedoraproject.org
Mon Jul 23 17:46:39 UTC 2012


commit 37b1497037002a17a20145cfb992fe317a386b4b
Author: Till Maas <opensource at till.name>
Date:   Mon Jul 23 19:46:33 2012 +0200

    add patch from debian to fix build

 ftbfs-gcc-4.7.diff |   11 +++++++++++
 fwbuilder.spec     |    2 ++
 2 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/ftbfs-gcc-4.7.diff b/ftbfs-gcc-4.7.diff
new file mode 100644
index 0000000..dc3f5d2
--- /dev/null
+++ b/ftbfs-gcc-4.7.diff
@@ -0,0 +1,11 @@
+--- fwbuilder-5.1.0.orig/src/libfwbuilder/src/fwbuilder/ThreadTools.h
++++ fwbuilder-5.1.0/src/libfwbuilder/src/fwbuilder/ThreadTools.h
+@@ -31,6 +31,7 @@
+
+ #include <time.h> //for time_t definition
+ #include <pthread.h>
++#include <unistd.h>
+
+ #include <string>
+ #include <queue>
+
diff --git a/fwbuilder.spec b/fwbuilder.spec
index 5d57396..8702199 100644
--- a/fwbuilder.spec
+++ b/fwbuilder.spec
@@ -8,6 +8,7 @@ Group:          Applications/System
 URL:            http://www.fwbuilder.org/
 Source:         http://downloads.sourceforge.net/fwbuilder/%{name}-%{version}.tar.gz
 Source1:        fwbuilder.desktop
+Patch0:         http://patch-tracker.debian.org/patch/series/dl/fwbuilder/5.1.0-3/ftbfs-gcc-4.7.diff
 Buildroot:      %{_tmppath}/%{name}-%{version}-root
 
 BuildRequires:  qt4-devel
@@ -32,6 +33,7 @@ and the same GUI for different firewall platforms.
 
 %prep
 %setup -q
+%patch0 -p1 -b .ftbfs-gcc-4.7
 
 
 %build


More information about the scm-commits mailing list