Hello,
To build for RHEL4 and MySQL-4 do:
rpmbuild --rebuild \ --define "build_rhel3 1" \ --define "build_mysql 1" \ --define "build_mysql4 1" \ bacula-1.36.2-1.src.rpm
Let me know if this works for you.
Sure doesn't... Also please note that RHEL4 is more akin to FC2/FC3 than it is to RHEL3.
[EMAIL PROTECTED] rhel-as-x86-4]# rpmbuild --rebuild \ --define "build_rhel3 1" \ --define "build_mysql 1" \ --define "build_mysql4 1" \ bacula-1.36.2-1.src.rpm Installing bacula-1.36.2-1.src.rpm error: You must specify a platform. Please examine the spec file. error: line 45: Unknown tag: exit 1
Note, there's no build_rhel3 in the spec file... There's wb3, which contrary to the comment "This should work for RHEL3" won't work because it specifically greps for "White" in /etc/whitebox-release which will never exist on a RHEL box.
On a side note, I'm really confused why there's such a heavy dependency on the /etc/*release files. If you don't have the right files and the right words in the files, builds fail completely.
Would you accept a patch to the spec file that populates _dist more robustly?
Here's a snippet from the current spec file that shows why build_rhel3 won't work:
# platform defines - set one below or define the build_xxx on the command line
# RedHat builds
%define rh7 0
%{?build_rh7:%define rh7 1}
%define rh8 0
%{?build_rh8:%define rh8 1}
%define rh9 0
%{?build_rh9:%define rh9 1}
# Fedora Core build
%define fc1 0
%{?build_fc1:%define fc1 1}
%define fc3 0
%{?build_fc3:%define fc3 1}
# Whitebox Enterprise build
# this should also work for RHEL
%define wb3 0
%{?build_wb3:%define wb3 1}
# SuSE build
# this is known to build on SuSE 8.2 and 9.0
%define su9 0
%{?build_su9:%define su9 1}
# Mandrake build
%define mdk 0
%{?build_mdk:%define mdk 1}
# test for a platform definition
%if ! %{rh7} && ! %{rh8} && ! %{rh9} && ! %{fc1} && ! %{fc3} && ! %{wb3} && ! %{su9} && ! %{mdk}
%{error: You must specify a platform. Please examine the spec file.}
exit 1
%endif
Regards, -- Jeff McCune OSU Department of Mathematics System Support (614) 292-4962 gpg --keyserver pgp.mit.edu --recv-key BAF3211A
signature.asc
Description: OpenPGP digital signature