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:
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: https://www.edgar-matzinger.nl/bareos-rpmbuild-full.log 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/bconsoleRPM 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/*.exampleHas 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. --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+unsubscr...@googlegroups.com <mailto:bareos-users+unsubscr...@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 andreas.ro...@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 -- 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+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/bareos-users/e026cd70-0986-9d53-1c9a-5cedf3861a17%40bareos.com.
OpenPGP_0x00314758866BD59E.asc
Description: OpenPGP public key
OpenPGP_signature
Description: OpenPGP digital signature