Bacula-users

Re: [Bacula-users] RPM Build on openSUSE 42.2

2017-06-14 02:19:15
Subject: Re: [Bacula-users] RPM Build on openSUSE 42.2
From: Kern Sibbald <kern AT sibbald DOT com>
To: David Westfall <david.westfall AT red-inc DOT us>, bacula-users <bacula-users AT lists.sourceforge DOT net>
Date: Wed, 14 Jun 2017 08:18:02 +0200
Hello David,

I already answered that question in my last email.  Unfortunately you are on your own, and these spec files are unlikely to work without some changes.

On the other hand, if I were in your shoes, I would download the SuSE source spec file.  You should be able to build from it.

Best regards,
Kern

On 12/06/2017 20:47, David Westfall wrote:
I verified that ./configure was building the spec file by renaming bacula.spec to bacula.spec.old.  It recreated the spec file.  What options do I need to build the spec file correctly?

Script to run configure:
#!/bin/bash
PREFIX=/opt/bacula
CFLAGS="-g -O2 -Wall" \
 ./configure \
   --enable-bat \
   --enable-conio \
   --enable-smartalloc \
   --docdir=${PREFIX}/html \
   --htmldir=${PREFIX}/html \
   --libdir=${PREFIX}/lib \
   --with-baseport=9101 \
   --with-dir-user=bacula \
   --with-dir-group=bacula \
   --with-sd-user=bacula \
   --with-sd-group=bacula \
   --with-fd-user=bacula \
   --with-fd-group=bacula \
   --with-mysql \
   --with-pid-dir=${PREFIX}/var/run/bacula \
   --with-plugindir=${PREFIX}/plugins \
   --with-scriptdir=${PREFIX}/scripts \
   --with-systemd \
   --with-working-dir=${PREFIX}/var/lib/bacula \
   --with-dir-user=bacula \
   --with-dir-group=bacula \
   --with-sd-user=bacula \
   --with-sd-group=bacula \
   --with-fd-user=bacula \
   --with-fd-group=bacula \
   --with-dir-user=bacula \
   --with-dir-group=bacula \
   --with-sd-user=bacula \
   --with-sd-group=bacula \
   --with-fd-user=bacula \
   --with-fd-group=bacula \
   --sbindir=${PREFIX}/bin \
   --sysconfdir=${PREFIX}/etc/bacula


On Mon, Jun 12, 2017 at 1:25 PM, Kern Sibbald <kern AT sibbald DOT com> wrote:
>
> 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
>


--
David Westfall

This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to which they are addressed. If you have received this email in error please notify the system manager. This message contains confidential information and is intended only for the individual named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately by e-mail if you have received this e-mail by mistake and delete this e-mail from your system. If you are not the intended recipient you are notified that disclosing, copying, distributing or taking any action in reliance on the contents of this information is strictly prohibited.


------------------------------------------------------------------------------
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 AT lists.sourceforge DOT net
https://lists.sourceforge.net/lists/listinfo/bacula-users
<Prev in Thread] Current Thread [Next in Thread>

ADSM.ORG Privacy and Data Security by https://kimlaw.us