(All this has been sent to Scott, so should show up in the src.rpm at some point)
The current 2.2.5-1 src rpm has a bug in it for RHEL5/CENTOS5/SL5 that results in an error while detecting OS distribution plus doesn't detect the right version of QT. Additionally I've managed to get both bat and wxconsole compiling and working fine Plus I've rolled in the post-2.2.5 src patches. This cookbook should help anyone else in the same boat... ======================================================== yum install SDL SDL-devel yum remove qt qt-devel # May not be necessary, see below yum install qt4 qt4-devel grab and install qwt* and wxGTK* from: ftp.pbone.net /mirror/download.fedora.redhat.com/pub/fedora/epel/5/x86_64/ This next bit is important, qt4-devel doesn't add these and that's why compilation of bat and qwt fail. (Worse: if you have qt3 installed, these all point to qt3 paths and it breaks with odd error messages) export PATH=/usr/lib64/qt4/bin/:$PATH export QTDIR=/usr/lib64/qt4/ export QTINC=/usr/lib64/qt4/include/ export QTLIB=/usr/lib64/qt4/ mkdir /usr/src/bacula/2.2.5/ cd /usr/src/bacula/2.2.5/ grab 2.2.5 patches ===== 2.2.5-bacula.spec.patch 2.2.5-lastwritten.patch 2.2.5-postgresql-errors.patch 2.2.5-deamon.patch 2.2.5-nextvol.patch 2.2.5-tray-monitor.patch ===== grab 2.2.5-1.src.rpm rpm --install 2.2.5-1.src.rpm patch bacula.spec as follows (rhel5 declare bug, qt4 instead of qt) ============ 201c201 < %if %{fc1} || %{fc4} || %{fc5} || %{fc6} || %{fc7} --- > %if %{fc1} || %{fc4} || %{fc5} || %{fc7} 209a210,212 > %if %{fc6} && ! %{rhel5} && ! %{centos5} && ! %{sl5} > %define _dist %(grep Fedora /etc/redhat-release) > %endif 287c290 < BuildRequires: qt-devel >= 4.2 --- > BuildRequires: qt4-devel >= 4.2 1042a1046,1051 > # Install postrelease patches > patch -p0 < /usr/src/bacula/2.2.5/2.2.5-nextvol.patch > patch -p0 < /usr/src/bacula/2.2.5/2.2.5-lastwritten.patch > patch -p0 < /usr/src/bacula/2.2.5/2.2.5-tray-monitor.patch > patch -p0 < /usr/src/bacula/2.2.5/2.2.5-postgresql-errors.patch > patch -p0 < /usr/src/bacula/2.2.5/2.2.5-deamon.patch ============ rpmbuild --ba --define "build_rhel5 1" --define "build_mysql5 1" \ --define "build_x86_64 1" --define "build_bat 1" --define "build_python 1" \ --define "build_wxconsole 1" /usr/src/redhat/SPECS/bacula.spec.new You may wish to add --defines for uids, etc At this point (for me) everything compiles, builds binary RPMs, etc. The Binary RPMS all work. Bat is nice. ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Bacula-users mailing list Bacula-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-users