Hello,
There are .spec files in the latest Bacula source code release
that I think are up to date. They should handle both RedHat and
Debian. Unfortunately the Bacula guy that does the deb packaging
never submitted the files to the source code stream. I will check
on that and see if we can include them, but please don't hold your
breath.
Best regards,
Kern
On 05/05/2018 09:46 PM, Thorsten
Johannsen wrote:
Hi,
I'm currently trying to create a bacula RPM for CentOS from the
latest source.
I run configure with these options:
sudo yum -y install gcc-c++ readline-devel zlib-devel lzo-devel
libacl-devel mt-st mtx postfix openssl-devel mariadb-devel
./configure --with-readline=/usr/include/readline --disable-conio
--bindir=/opt/bacula/bin --libdir=/opt/bacula/lib64
--with-plugindir=/opt/bacula/plugins --sbindir=/opt/bacula/bin
--with-scriptdir=/opt/bacula/scripts
--with-working-dir=/opt/bacula/working
--with-logdir=/opt/bacula/log --enable-smartalloc --with-mysql
--with-systemd=/usr/lib/systemd/system -enable-batch-insert
-with-dir-user=bacula -with-dir-group=bacula -with-sd-user=bacula
-with-sd-group=bacula --sysconfdir=/opt/bacula/etc
--with-pid-dir=/opt/bacula/working
--with-subsys-dir=/opt/bacula/working
--with-working-dir=/opt/bacula/working
make and make install work, so the configure process seems valid.
But how to get an RPM out of this?
(Well, I must admin I'm totally new to the whole process [!])
But I found something in the wisdom of the bacula-users archive:
----------------------------------------------------------------------
Hello,
I suspect that you used the bacula.spec.in file, which is not
going to work. If you do a correct ./configure with all needed
arguments for a proper build in the root directory the
bacula.spec.in file will be compiled into a bacula.spec file,
which should work if you set up all the variables that the spec
file needs. It seems that you have already figured out the two
most important variables from what I see.
By the way, I am not sure the 7.4.7 .spec files have ever been
used. We are currently building some CentOS systems on 7.9.x,
but have not yet tried the SuSE spec files, which will surely
need some changing.
Best regards,
Kern
On 12/06/2017 11:44, David Westfall wrote:
Searching google for "bacula build rpm"
I find the link below.
http://www.bacula.org/5.0.x-manuals/es/utility/utility/Bacula_RPM_Packaging_FAQ.html
Looking at the instructions and what is in the spec files I
figured that I should use the following command to build the
rpm.
rpmbuild -ba --define "build_su112 1" --define "build_mysql 1"
bacula.spec
I am in the platforms/rpms/suse directory to run the command
and I get the following errors.
error: Macro %depkgs_version has empty body
error: line 97: Illegal char '@' in: Release: @RELEASE@
Can someone tell me what am I missing to get configure to
build the spec files correctly?
----------------------------------------------------------------------
My questions and observations:
i) as far as I understand Kern, after running configure, a file
"bacula.spec" will be created based on "bacula.spec.in" and with
the input from the configure loop. The OP's problem was that there
was still
a "@RELEASE@" in the bacula.spec.in which is absolutely correct as
Kern
explained.
My problem is, however, that I've got the "@RELEASE@" also in the
bacula.spec. (see attachment)
ii) I'm a little bit unsure what Kern means by
which should work if you set up all the
variables that the spec file needs
I specified to use mySQL in the ./configure run, but it seems to
me that this is not setup accordingly in the bacula.spec file.
What am I doing wrong?
iii) Is there any overview about what variables need to be setup
in the spec file by hand?
PS: I'm beginning to understand why there are no recent .rpm /.deb
packages for bacula :-)
have a nice evening!
Thorsten
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users
|
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Bacula-users mailing list
Bacula-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-users