commit cec96a88c210d123fd54abd7562ccc8fa6c5522e
Author: Jacek Konieczny <jaj...@jajcus.net>
Date:   Sun Nov 11 15:57:19 2012 +0100

    Fix for wx-console build error
    
    For some reason, unknown to me, bacula build would fail if 'wx/config.h'
    is included after 'bacula.h', with:
    
    In file included from 
/usr/include/c++/4.7.2/i686-pld-linux/bits/gthr.h:150:0,
                     from /usr/include/c++/4.7.2/ext/atomicity.h:34,
                     from /usr/include/c++/4.7.2/bits/basic_string.h:41,
                     from /usr/include/c++/4.7.2/string:54,
                     from /usr/include/wx-2.8/wx/string.h:176,
                     from /usr/include/wx-2.8/wx/confbase.h:18,
                     from /usr/include/wx-2.8/wx/config.h:15,
                     from main.cpp:56:
    /usr/include/c++/4.7.2/i686-pld-linux/bits/gthr-default.h:160:1: error: 
type of 'pthread_mutex_init' is unknown
    /usr/include/c++/4.7.2/i686-pld-linux/bits/gthr-default.h:160:1: error: 
invalid type in declaration before ';' token
    /usr/include/c++/4.7.2/i686-pld-linux/bits/gthr-default.h:161:1: error: 
type of 'pthread_mutex_destroy' is unknown
    /usr/include/c++/4.7.2/i686-pld-linux/bits/gthr-default.h:161:1: error: 
invalid type in declaration before ';' token
    /usr/include/c++/4.7.2/i686-pld-linux/bits/gthr-default.h: In function 'int 
__gthread_mutex_destroy(__gthread_mutex_t*)':
    /usr/include/c++/4.7.2/i686-pld-linux/bits/gthr-default.h:760:52: error: 
'__gthrw_pthread_mutex_destroy' cannot be used as a function

 bacula-wx-console-build.patch | 143 ++++++++++++++++++++++++++++++++++++++++++
 bacula.spec                   |   2 +
 2 files changed, 145 insertions(+)
---
diff --git a/bacula.spec b/bacula.spec
index ef98b5b..c4c7e19 100644
--- a/bacula.spec
+++ b/bacula.spec
@@ -48,6 +48,7 @@ Patch1:               %{name}-branding.patch
 Patch2:                %{name}-conf.patch
 Patch3:                %{name}-desktop.patch
 Patch4:                make_catalog_backup-setup-home.patch
+Patch5:                %{name}-wx-console-build.patch
 URL:           http://www.bacula.org/
 BuildRequires: acl-devel
 BuildRequires: autoconf
@@ -447,6 +448,7 @@ Nagios plugin to check bacula.
 %patch2 -p1
 %patch3 -p1
 %patch4 -p1
+%patch5 -p1
 
 tar -xf %{SOURCE2} && ln -s bacula-rescue-* rescue
 
diff --git a/bacula-wx-console-build.patch b/bacula-wx-console-build.patch
new file mode 100644
index 0000000..9f6b9ee
--- /dev/null
+++ b/bacula-wx-console-build.patch
@@ -0,0 +1,143 @@
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/authenticate.c 
bacula-5.2.12/src/wx-console/authenticate.c
+--- bacula-5.2.12.orig/src/wx-console/authenticate.c   2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/authenticate.c        2012-11-11 
15:54:51.436987760 +0100
+@@ -48,6 +48,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ #include "console_conf.h"
+ #include "jcr.h"
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/console_conf.c 
bacula-5.2.12/src/wx-console/console_conf.c
+--- bacula-5.2.12.orig/src/wx-console/console_conf.c   2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/console_conf.c        2012-11-11 
15:54:56.003685331 +0100
+@@ -57,6 +57,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ #include "console_conf.h"
+ 
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/console_thread.cpp 
bacula-5.2.12/src/wx-console/console_thread.cpp
+--- bacula-5.2.12.orig/src/wx-console/console_thread.cpp       2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/console_thread.cpp    2012-11-11 
15:55:02.753731018 +0100
+@@ -46,6 +46,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ #include "console_conf.h"
+ 
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/main.cpp 
bacula-5.2.12/src/wx-console/main.cpp
+--- bacula-5.2.12.orig/src/wx-console/main.cpp 2012-09-13 10:51:19.000000000 
+0200
++++ bacula-5.2.12/src/wx-console/main.cpp      2012-11-11 15:55:09.187107901 
+0100
+@@ -50,6 +50,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ 
+ #include <wx/wxprec.h>
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/wxbconfigfileeditor.cpp 
bacula-5.2.12/src/wx-console/wxbconfigfileeditor.cpp
+--- bacula-5.2.12.orig/src/wx-console/wxbconfigfileeditor.cpp  2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/wxbconfigfileeditor.cpp       2012-11-11 
15:55:13.980473688 +0100
+@@ -41,6 +41,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ #include "wxbconfigfileeditor.h"
+ #include <wx/file.h>
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/wxbconfigpanel.cpp 
bacula-5.2.12/src/wx-console/wxbconfigpanel.cpp
+--- bacula-5.2.12.orig/src/wx-console/wxbconfigpanel.cpp       2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/wxbconfigpanel.cpp    2012-11-11 
15:55:19.013841104 +0100
+@@ -41,6 +41,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ #include "wxbconfigpanel.h"
+ #include <wx/arrimpl.cpp>
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/wxbhistorytextctrl.cpp 
bacula-5.2.12/src/wx-console/wxbhistorytextctrl.cpp
+--- bacula-5.2.12.orig/src/wx-console/wxbhistorytextctrl.cpp   2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/wxbhistorytextctrl.cpp        2012-11-11 
15:55:36.350625198 +0100
+@@ -41,6 +41,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ #include "wxbhistorytextctrl.h"
+ 
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/wxblistctrl.cpp 
bacula-5.2.12/src/wx-console/wxblistctrl.cpp
+--- bacula-5.2.12.orig/src/wx-console/wxblistctrl.cpp  2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/wxblistctrl.cpp       2012-11-11 
15:55:43.314005711 +0100
+@@ -42,6 +42,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ 
+ #include "wxblistctrl.h"
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/wxbmainframe.cpp 
bacula-5.2.12/src/wx-console/wxbmainframe.cpp
+--- bacula-5.2.12.orig/src/wx-console/wxbmainframe.cpp 2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/wxbmainframe.cpp      2012-11-11 
15:55:48.770709354 +0100
+@@ -41,6 +41,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ 
+ #include "wxbmainframe.h" // class's header file
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/wxbrestorepanel.cpp 
bacula-5.2.12/src/wx-console/wxbrestorepanel.cpp
+--- bacula-5.2.12.orig/src/wx-console/wxbrestorepanel.cpp      2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/wxbrestorepanel.cpp   2012-11-11 
15:55:55.700756326 +0100
+@@ -69,6 +69,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ 
+ #include "wxbrestorepanel.h"
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/wxbtableparser.cpp 
bacula-5.2.12/src/wx-console/wxbtableparser.cpp
+--- bacula-5.2.12.orig/src/wx-console/wxbtableparser.cpp       2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/wxbtableparser.cpp    2012-11-11 
15:56:01.374128112 +0100
+@@ -48,6 +48,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ 
+ #include "wxbtableparser.h" // class's header file
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/wxbtreectrl.cpp 
bacula-5.2.12/src/wx-console/wxbtreectrl.cpp
+--- bacula-5.2.12.orig/src/wx-console/wxbtreectrl.cpp  2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/wxbtreectrl.cpp       2012-11-11 
15:56:06.807498286 +0100
+@@ -42,6 +42,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ 
+ #include "wxbtreectrl.h"
+diff -dur -x '*~' bacula-5.2.12.orig/src/wx-console/wxbutils.cpp 
bacula-5.2.12/src/wx-console/wxbutils.cpp
+--- bacula-5.2.12.orig/src/wx-console/wxbutils.cpp     2012-09-13 
10:51:19.000000000 +0200
++++ bacula-5.2.12/src/wx-console/wxbutils.cpp  2012-11-11 15:56:11.697531443 
+0100
+@@ -41,6 +41,7 @@
+ 
+ #undef _DEBUG
+ 
++#include <wx/string.h>
+ #include "bacula.h"
+ #include "wxbutils.h"
+ #include "wxbmainframe.h"
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/bacula.git/commitdiff/b6e1a6b680db594334c6b5bcac74c6772fcadb9b

_______________________________________________
pld-cvs-commit mailing list
pld-cvs-commit@lists.pld-linux.org
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to