Build bareos 22.0.1 using rpmbuild on fedora38

96 views
Skip to first unread message

Edgar Matzinger

unread,
Oct 16, 2023, 9:03:35 AM10/16/23
to bareos-users
Hello list,

  has anyone build bareos using rpmbuiid?

What I've done is:

1. download the source rpm from the bareos community repo.
2. install the src.rpm
3. run rpmbuild -ba bareos.spec

After a lot of out put, I see the following:

16% tests passed, 113 tests failed out of 134

I think this is a bit harsh...

The full build log can be found here:


The build fails with:

RPM build warnings: Duplicate build-ids /home/edgarm/rpmbuild/BUILDROOT/bareos-22.1.1~pre125.bae3d32c0-97.fc38.x86_64/usr/bin/bconsole and /home/edgarm/rpmbuild/BUILDROOT/bareos-22.1.1~pre125.bae3d32c0-97.fc38.x86_64/usr/sbin/bconsole

RPM build errors: File not found: /home/edgarm/rpmbuild/BUILDROOT/bareos-22.1.1~pre125.bae3d32c0-97.fc38.x86_64/usr/lib64/bareos/backends/libbareossd-droplet*.so File not found: /home/edgarm/rpmbuild/BUILDROOT/bareos-22.1.1~pre125.bae3d32c0-97.fc38.x86_64/etc/bareos/bareos-dir.d/storage/S3_Object.conf.example File not found: /home/edgarm/rpmbuild/BUILDROOT/bareos-22.1.1~pre125.bae3d32c0-97.fc38.x86_64/etc/bareos/bareos-sd.d/device/S3_ObjectStorage.conf.example Directory not found: /home/edgarm/rpmbuild/BUILDROOT/bareos-22.1.1~pre125.bae3d32c0-97.fc38.x86_64/etc/bareos/bareos-sd.d/device/droplet File not found: /home/edgarm/rpmbuild/BUILDROOT/bareos-22.1.1~pre125.bae3d32c0-97.fc38.x86_64/etc/bareos/bareos-sd.d/device/droplet/*.example

Has anyone built bareos using rpmbuild and had better results?
ATM I'm thinking that the spec file is not entirely correct.

Kind regards, Edgar Matzinger.

Edgar Matzinger

unread,
Oct 16, 2023, 9:05:13 AM10/16/23
to bareos-users
Sorry bareos 22.1.1

Chad W Seys

unread,
Oct 16, 2023, 5:46:28 PM10/16/23
to Edgar Matzinger, bareos-users
Hi Edgar,
I don't know how to build libdroplet, but you can disable building it. If I remember correctly search for 'droplet' in the spec file and then change 1 to 0.

C.

________________________________________
From: bareos...@googlegroups.com <bareos...@googlegroups.com> on behalf of Edgar Matzinger <edgar...@gmail.com>
Sent: Monday, October 16, 2023 8:05 AM
To: bareos-users
Subject: [bareos-users] Re: Build bareos 22.0.1 using rpmbuild on fedora38

Sorry bareos 22.1.1

https://www.edgar-matzinger.nl/bareos-rpmbuild-full.log

The build fails with:

Kind regards, Edgar Matzinger.

--
You received this message because you are subscribed to the Google Groups "bareos-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com<mailto:bareos-users...@googlegroups.com>.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/d555965b-da9c-42c6-8f38-642d9cbb4c67n%40googlegroups.com<https://groups.google.com/d/msgid/bareos-users/d555965b-da9c-42c6-8f38-642d9cbb4c67n%40googlegroups.com?utm_medium=email&utm_source=footer>.

Knauf Steffen

unread,
Oct 17, 2023, 2:56:14 AM10/17/23
to Edgar Matzinger, bareos-users, Chad W Seys
Hi Edgar, 

Chad is absolutly right, i successfully build bareos with the following Settings (spec):

# default settings
%define client_only 0
%define build_qt_monitor 1
%define build_sqlite3 0
%define glusterfs 1
%define droplet 0
%define have_git 0
%define ceph 0
%define install_suse_fw 0
%define systemd_support 1
%define python_plugins 1

greets

Steffen



Von: 'Chad W Seys' via bareos-users <bareos...@googlegroups.com>
Gesendet: Montag, 16. Oktober 2023 23:46
An: Edgar Matzinger <edgar...@gmail.com>; bareos-users <bareos...@googlegroups.com>
Betreff: Re: [bareos-users] Re: Build bareos 22.0.1 using rpmbuild on fedora38
 
To unsubscribe from this group and stop receiving emails from it, send an email to bareos-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/SN6PR06MB497572A848ABDC8FC6D3B385E3D7A%40SN6PR06MB4975.namprd06.prod.outlook.com.

Edgar Matzinger

unread,
Oct 20, 2023, 4:29:40 AM10/20/23
to bareos-users
Hi Steffen,

  thanks to you and Chad, I was able to build bareos reasonably successful. The
build ends with a few warnings regarding duplicate files.

However 113 of 134 tests fail...

Thanks, kinds reagrds, Edgar Matzinger

Andreas Rogge

unread,
Oct 23, 2023, 5:53:51 AM10/23/23
to bareos...@googlegroups.com
Hi Edgar,

we're building Bareos with rpmbuild all the time.
However, we do have docker images that already contain all the build
requiements, so the SPEC might be missing a BuildRequires or two.
If you find out what is missing (iirc droplet requires libxml-devel and
I'm not sure that's listed in BuildRequires) feel free to provide a PR.

Sorry for the tests failing. If you want them to work, you'll have to
setup a few things (especially a PostgreSQL database and a specific
alias in /etc/hosts).
I can try to provide some pointers to get that done, but it probably
won't work if you're building in something like mock.

Best Regards,
Andreas

Am 16.10.23 um 15:03 schrieb Edgar Matzinger:
> --
> You received this message because you are subscribed to the Google
> Groups "bareos-users" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to bareos-users...@googlegroups.com
> <mailto:bareos-users...@googlegroups.com>.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/bareos-users/cea70325-8f5a-44ac-9306-d53a001160b8n%40googlegroups.com <https://groups.google.com/d/msgid/bareos-users/cea70325-8f5a-44ac-9306-d53a001160b8n%40googlegroups.com?utm_medium=email&utm_source=footer>.

--
Andreas Rogge andrea...@bareos.com
Bareos GmbH & Co. KG Phone: +49 221-630693-86
http://www.bareos.com

Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646
Komplementär: Bareos Verwaltungs-GmbH
Geschäftsführer: Stephan Dühr, Jörg Steffens, Philipp Storz
OpenPGP_0x00314758866BD59E.asc
OpenPGP_signature
Reply all
Reply to author
Forward
0 new messages