Richard Ryder wrote:
> 1: rhel3 is not included in the test for platform definition in the
spec file. I added it and got on to the next problem....
rhel3 & rhel4 are in the spec file you just need to look closely ;)
---------- bacula.spec ----------
# RedHat Enterprise builds
%define rhel3 0
%{?build_rhel3:%define rhel3 1}
%{?build_rhel3:%define wb3 1}
%define rhel4 0
%{?build_rhel4:%define rhel4 1}
%{?build_rhel4:%define fc3 1}
---------- bacula.spec ----------
rpmbuild -ba --define "build_rhel3 1" --define "build_mysql 1" bacula.spec
is what i did (i compiled my first rpm yesterday so the memory is pretty
fresh ;) )
2: Spec file wants a Release_Notes-1.37.38-1.tar.gz file. I couldn't
find that, so I just tar'd up the Release Notes file into a file with
that name and put in the right spot for rpm to find it. That worked and
I was able to get a little further.
Exactly what i did :-)
3: The patches for the bundled sqlite scripts fail
patching file src/cats/make_catalog_backup.in
Hunk #3 FAILED at 20.
Hunk #4 succeeded at 30 (offset 4 lines).
1 out of 4 hunks FAILED -- saving rejects to file
src/cats/make_catalog_backup.in.rej
error: Bad exit status from /var/tmp/rpm-tmp.61710 (%build)
Yup, i had the same problem
But i`m also only building packages for client-systems so i removed the
patches from the spec file.
I think you can safely ommit those patches if you are not running
SQLLite. If you are using MySQL or PGSQL for your database the only
thing that would need changing post-install is the make_catalog_backup
file - you have to adjust the path to the mysql/pgsql executable ...
For more clarity go to /usr/src/redhat/BUILD/bacula-1.37.38/src/cats/
and look at the rejected-file and the patch file, it`s just a minor
change that produces the error (patch file pointing to wrong line i think)
After that i was only having some trouble with the tray-monitor which i
also don`t need so i removed the --with-tray-monitor option from the
configure in the specfile.
Best regards,
--
Daniel Holtkamp Riege Software International GmbH
System Administration Mollsfeld 10
40670 Meerbusch, Germany Phone: +49-2159-9148-41
mail: holtkamp [at] riege.com Fax: +49-2159-9148-11
--------------------------------------------------------------------
-------------------------------------------------------
SF.Net email is sponsored by:
Tame your development challenges with Apache's Geronimo App Server.
Download it for free - -and be entered to win a 42" plasma tv or your very
own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users