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.

On Fri, 2005-03-25 at 00:22 +0100, Kern Sibbald wrote:
> On Thursday 24 March 2005 22:40, Jeff McCune wrote:
> > I'm trying to compile bacula binary RPMS for RedHat Enterprise Linux 4,
> > which looks a lot like Fedora Core 3, so I'm using that platform as my
> > target.
> >
> >    [EMAIL PROTECTED] rhel-as-x86-4]# rpmbuild --target i686 \
> >       --define 'build_fc3 1' \
> >       --define 'build_mysql 1' \
> >       --rebuild bacula-1.36.2-1.src.rpm
> >    Installing bacula-1.36.2-1.src.rpm
> >    Building target platforms: i686
> >    Building for target i686
> >    error: line 96: Empty tag: Distribution:
> >
> > The problematic spec file section looks like:
> >
> >    # check what distribution we are
> >    %if %{rh7} || %{rh8} || %{rh9}
> >    %define _dist %(grep Red /etc/redhat-release)
> >    %endif
> >    %if %{fc1} || %{fc3}
> >    %define _dist %(grep Fedora /etc/redhat-release)
> >    %endif
> >    %if %{wb3}
> >    %define _dist %(grep White /etc/whitebox-release)
> >    %endif
> >    %if %{su9}
> >    %define _dist %(grep SuSE /etc/SuSE-release)
> >    %endif
> >    %if %{mdk}
> >    %define _dist %(grep Mandrake /etc/mandrake-release)
> >    %endif
> >
> > On a RHEL box, there's no "Fedora" string in /etc/redhat-release so
> > _dist is undefined.  I fixed this by changing the check for fc3 to the
> > following:
> >
> >    %if %{fc1} || %{fc3}
> >    %define _dist %(cat /etc/redhat-release)
> >
> > Now, when I try and build, I get:
> >
> >    [EMAIL PROTECTED] SPECS]# rpmbuild --target i386 \
> >      --define 'build_fc3 1' \
> >      --define 'build_mysql 1' bacula.spec
> >    Building target platforms: i386
> >    Building for target i386
> >    [EMAIL PROTECTED] SPECS]#
> >
> > rpmbuild simply drops back to a shell silently...
> >
> > Has anyone had luck compiling bacula for RHEL4?  Suggestions?
> >
> > Regards,
> 



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users

Reply via email to