[bareos-users] Re: Compiling bareos from source using cmake
On 05.12.23 at 13:53 wrote raspLover: that worked like a charm! Great. Thank you very much! i head much tests that where not working, does it mean something? Backup is running well. In our test environment, there are no failing tests. New code first gots integrated, when all tests succeeded. I guess, it is a problem in your build/test-environment, especially the tests need a running postgresql database with "full" access of the build user, see https://docs.bareos.org/DeveloperGuide/BuildAndTestBareos/systemtests.html#systemtests You can either ignore this or adapt your either adapt your build envirnoment accordingly or disable the testing by setting: export DEB_BUILD_OPTIONS="nocheck" Regards, Jörg 13% tests passed, 96 tests failed out of 110 Total Test time (real) = 480.41 sec The following tests did not run: 1 - webui:admin-client_link_on_dashboard (Disabled) 2 - webui:admin-client_disabling (Disabled) 3 - webui:admin-rerun_job (Disabled) 4 - webui:admin-restore (Disabled) 5 - webui:admin-run_configured_job (Disabled) 6 - webui:admin-run_default_job (Disabled) 7 - webui:readonly-client_disabling (Disabled) 8 - webui:readonly-rerun_job (Disabled) 9 - webui:readonly-restore (Disabled) 10 - webui:readonly-run_configured_job (Disabled) 11 - webui:readonly-run_default_job (Disabled) 12 - system:acl (Disabled) 14 - system:autochanger (Disabled) 43 - system:bconsole-pam (Disabled) 44 - system:block-size (Disabled) 46 - system:catalog (Disabled) 54 - system:chflags (Disabled) 68 - system:dbcopy-mysql-postgresql (Disabled) 70 - system:droplet-s3 (Disabled) 78 - system:gfapi-fd (Disabled) 79 - system:glusterfs-backend (Disabled) 81 - system:messages (Disabled) 86 - system:ndmp (Disabled) 94 - system:py2plug-dir (Disabled) 95 - system:py3plug-dir (Disabled) 96 - system:py2plug-fd-contrib-bareos_tasks_mysql (Disabled) 97 - system:py3plug-fd-contrib-bareos_tasks_mysql (Disabled) 98 - system:py2plug-fd-ldap (Disabled) 99 - system:py2plug-fd-libcloud (Disabled) 100 - system:py3plug-fd-libcloud (Disabled) 101 - system:py2plug-fd-local-fileset-restoreobject (Disabled) 102 - system:py3plug-fd-local-fileset-restoreobject (Disabled) 103 - system:py2plug-fd-mariabackup (Disabled) 104 - system:py3plug-fd-mariabackup (Disabled) 105 - system:py2plug-fd-ovirt (Disabled) 106 - system:py3plug-fd-ovirt (Disabled) 107 - system:py2plug-fd-percona-xtrabackup (Disabled) 108 - system:py3plug-fd-percona-xtrabackup (Disabled) 109 - system:py2plug-fd-vmware (Disabled) 110 - system:py3plug-fd-vmware (Disabled) 111 - system:py2plug-sd (Disabled) 112 - system:py3plug-sd (Disabled) 113 - system:py2plug-fd-local-fileset-basic (Disabled) 114 - system:py3plug-fd-local-fileset-basic (Disabled) 115 - system:py3plug-fd-basic (Disabled) 116 - system:py3plug-fd-contrib-mysql_dump (Disabled) 117 - system:python-bareos (Disabled) 118 - system:python-pam (Disabled) 128 - system:restapi (Disabled) 147 - system:stresstest (Disabled) 161 - system:xattr (Disabled) The following tests FAILED: 13 - system:always-incremental-consolidate (Failed) 15 - system:autoxflate:setup (Failed) 16 - system:autoxflate:copy-to-local (Not Run) 17 - system:autoxflate:copy-to-offsite (Not Run) 18 - system:autoxflate:create-backup (Not Run) 19 - system:autoxflate:replication-local (Not Run) 20 - system:autoxflate:replication-offsite (Not Run) 22 - system:bareos-basic:setup (Failed) 23 - system:bareos-basic:bcopy-autoxflate (Not Run) 24 - system:bareos-basic:bextract-autoxflate (Not Run) 25 - system:bareos-basic:bls-autoxflate (Not Run) 26 - system:bareos-basic:bscan-autoxflate (Not Run) 27 - system:bareos-basic:filesettext-is-updated (Not Run) 28 - system:bareos-basic:hardlinks (Not Run) 29 - system:bareos-basic:rerun-jobs (Not Run) 30 - system:bareos-basic:run-non-existing-jobid (Not Run) 31 - system:bareos-basic:simple-backup-and-restore (Not Run) 32 - system:bareos-basic:status-subscriptions (Not Run) 33 - system:bareos-basic:test-make-catalog-backup (Not Run) 34 - system:bareos-basic:very-long-job-names (Not Run) 35 - system:bareos-basic:volume-recycling (Not Run) 37 - system:bareos-acl (Failed) 38 - system:bconsole-basic:setup (Failed) 39 - system:bconsole-basic:autocompletion (Not Run) 40 -
[bareos-users] Re: Compiling bareos from source using cmake
that worked like a charm! Thank you very much! i head much tests that where not working, does it mean something? Backup is running well. 13% tests passed, 96 tests failed out of 110 Total Test time (real) = 480.41 sec The following tests did not run: 1 - webui:admin-client_link_on_dashboard (Disabled) 2 - webui:admin-client_disabling (Disabled) 3 - webui:admin-rerun_job (Disabled) 4 - webui:admin-restore (Disabled) 5 - webui:admin-run_configured_job (Disabled) 6 - webui:admin-run_default_job (Disabled) 7 - webui:readonly-client_disabling (Disabled) 8 - webui:readonly-rerun_job (Disabled) 9 - webui:readonly-restore (Disabled) 10 - webui:readonly-run_configured_job (Disabled) 11 - webui:readonly-run_default_job (Disabled) 12 - system:acl (Disabled) 14 - system:autochanger (Disabled) 43 - system:bconsole-pam (Disabled) 44 - system:block-size (Disabled) 46 - system:catalog (Disabled) 54 - system:chflags (Disabled) 68 - system:dbcopy-mysql-postgresql (Disabled) 70 - system:droplet-s3 (Disabled) 78 - system:gfapi-fd (Disabled) 79 - system:glusterfs-backend (Disabled) 81 - system:messages (Disabled) 86 - system:ndmp (Disabled) 94 - system:py2plug-dir (Disabled) 95 - system:py3plug-dir (Disabled) 96 - system:py2plug-fd-contrib-bareos_tasks_mysql (Disabled) 97 - system:py3plug-fd-contrib-bareos_tasks_mysql (Disabled) 98 - system:py2plug-fd-ldap (Disabled) 99 - system:py2plug-fd-libcloud (Disabled) 100 - system:py3plug-fd-libcloud (Disabled) 101 - system:py2plug-fd-local-fileset-restoreobject (Disabled) 102 - system:py3plug-fd-local-fileset-restoreobject (Disabled) 103 - system:py2plug-fd-mariabackup (Disabled) 104 - system:py3plug-fd-mariabackup (Disabled) 105 - system:py2plug-fd-ovirt (Disabled) 106 - system:py3plug-fd-ovirt (Disabled) 107 - system:py2plug-fd-percona-xtrabackup (Disabled) 108 - system:py3plug-fd-percona-xtrabackup (Disabled) 109 - system:py2plug-fd-vmware (Disabled) 110 - system:py3plug-fd-vmware (Disabled) 111 - system:py2plug-sd (Disabled) 112 - system:py3plug-sd (Disabled) 113 - system:py2plug-fd-local-fileset-basic (Disabled) 114 - system:py3plug-fd-local-fileset-basic (Disabled) 115 - system:py3plug-fd-basic (Disabled) 116 - system:py3plug-fd-contrib-mysql_dump (Disabled) 117 - system:python-bareos (Disabled) 118 - system:python-pam (Disabled) 128 - system:restapi (Disabled) 147 - system:stresstest (Disabled) 161 - system:xattr (Disabled) The following tests FAILED: 13 - system:always-incremental-consolidate (Failed) 15 - system:autoxflate:setup (Failed) 16 - system:autoxflate:copy-to-local (Not Run) 17 - system:autoxflate:copy-to-offsite (Not Run) 18 - system:autoxflate:create-backup (Not Run) 19 - system:autoxflate:replication-local (Not Run) 20 - system:autoxflate:replication-offsite (Not Run) 22 - system:bareos-basic:setup (Failed) 23 - system:bareos-basic:bcopy-autoxflate (Not Run) 24 - system:bareos-basic:bextract-autoxflate (Not Run) 25 - system:bareos-basic:bls-autoxflate (Not Run) 26 - system:bareos-basic:bscan-autoxflate (Not Run) 27 - system:bareos-basic:filesettext-is-updated (Not Run) 28 - system:bareos-basic:hardlinks (Not Run) 29 - system:bareos-basic:rerun-jobs (Not Run) 30 - system:bareos-basic:run-non-existing-jobid (Not Run) 31 - system:bareos-basic:simple-backup-and-restore (Not Run) 32 - system:bareos-basic:status-subscriptions (Not Run) 33 - system:bareos-basic:test-make-catalog-backup (Not Run) 34 - system:bareos-basic:very-long-job-names (Not Run) 35 - system:bareos-basic:volume-recycling (Not Run) 37 - system:bareos-acl (Failed) 38 - system:bconsole-basic:setup (Failed) 39 - system:bconsole-basic:autocompletion (Not Run) 40 - system:bconsole-basic:dotjobstatus (Not Run) 41 - system:bconsole-basic:status-client (Not Run) 45 - system:bscan-bextract-bls-bcopy (Failed) 47 - system:checkpoints:setup (Failed) 48 - system:checkpoints:checkpoints-and-spooling (Not Run) 49 - system:checkpoints:checkpoints-on-cancel (Not Run) 50 - system:checkpoints:checkpoints-on-kill (Not Run) 51 - system:checkpoints:checkpoints-on-stop (Not Run) 52 - system:checkpoints:checkpoints-regular-backup (Not Run) 55 - system:client-initiated (Failed) 56 - system:commandline-options (Failed) 57 - system:config-dump (Failed) 58 -
[bareos-users] Re: Compiling bareos from source using cmake
On 04.12.23 at 16:34 wrote raspLover: Hi, i'm no compiling expert. is there a step by step to build the filedaemon on the raspberry pi? For Raspberry Pi OS, so Debian based, right? Than you can easily build the Debian packages: # get the source git clone https://github.com/bareos/bareos.git cd bareos/ # check build requirement. # You have to manually install the missing packages. dpkg-checkbuilddeps # create debian/changelog file NOW=$(LANG=C date -R -u) cmake -P write_version_files.cmake BAREOS_VERSION=$(cmake -P get_version.cmake | sed -e 's/-- //') printf "bareos (%s) unstable; urgency=low\n\n * dummy\n\n -- nobody %s\n\n" "${BAREOS_VERSION}" "${NOW}" | tee debian/changelog # build the packages fakeroot debian/rules binary # resulting packages will be in the parent directory cd .. ls *.deb -- Jörg Steffens joerg.steff...@bareos.com Bareos GmbH & Co. KGPhone: +49 221 630693-91 https://www.bareos.com Fax: +49 221 630693-10 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/ukkuj6%24143g%241%40ciao.gmane.io.
[bareos-users] Re: Compiling bareos from source using cmake
Hi, i'm no compiling expert. is there a step by step to build the filedaemon on the raspberry pi? regards Jörg Steffens schrieb am Montag, 19. März 2018 um 12:23:43 UTC+1: > Hi Greg, > > you are right. Bareos has switched from autoconf (configure, ...) to > cmake in master, and this is not yet documented in the developer > documentation. > > The best way to get the settings used by the Bareos project itself is to > look into the package building files, e.g. > > https://github.com/bareos/bareos/blob/master/platforms/packaging/bareos.spec > or https://github.com/bareos/bareos/blob/master/debian/rules > > In bareos.spec you see that we use following command to compile Bareos: > > # create temporary file in this subdirectory > CMAKE_BUILDDIR=cmake-build > > mkdir ${CMAKE_BUILDDIR} > pushd ${CMAKE_BUILDDIR} > > cmake .. \ > -DCMAKE_VERBOSE_MAKEFILE=ON \ > -DCMAKE_INSTALL_PREFIX:PATH=/usr \ > -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \ > -DINCLUDE_INSTALL_DIR:PATH=/usr/include \ > -DLIB_INSTALL_DIR:PATH=/usr/lib \ > -DSYSCONF_INSTALL_DIR:PATH=/etc \ > -DSHARE_INSTALL_PREFIX:PATH=/usr/share \ > -DBUILD_SHARED_LIBS:BOOL=ON \ > -Dprefix=%{_prefix}\ > -Dlibdir=%{library_dir} \ > -Dsbindir=%{_sbindir} \ > -Dsbin-perm=755 \ > -Dsysconfdir=%{_sysconfdir} \ > -Dconfdir=%{_sysconfdir}/bareos \ > -Dmandir=%{_mandir} \ > -Ddocdir=%{_docdir}/%{name} \ > -Dhtmldir=%{_docdir}/%{name}/html \ > -Darchivedir=/var/lib/%{name}/storage \ > -Dbackenddir=%{backend_dir} \ > -Dscriptdir=%{script_dir} \ > -Dworking-dir=%{working_dir} \ > -Dplugindir=%{plugin_dir} \ > -Dpid-dir=%{pid_dir} \ > -Dbsrdir=%{bsr_dir} \ > -Dlogdir=/var/log/bareos \ > -Dsubsys-dir=%{_subsysdir} \ > -Dpython=yes \ > -Dsmartalloc=yes \ > -Ddisable-conio=yes \ > -Dreadline=yes \ > -Dbatch-insert=yes \ > -Ddynamic-cats-backends=yes \ > -Ddynamic-storage-backends=yes \ > -Dscsi-crypto=yes \ > -Dlmdb=yes \ > -Dndmp=yes \ > -Dipv6=yes \ > -Dacl=yes \ > -Dxattr=yes \ > -Dtraymonitor=yes \ > -Dpostgresql=yes \ > -Dmysql=yes \ > -Dsqlite3=yes \ > -Dtcp-wrappers=yes \ > -Ddir-user=%{director_daemon_user} \ > -Ddir-group=%{daemon_group} \ > -Dsd-user=%{storage_daemon_user} \ > -Dsd-group=%{storage_daemon_group} \ > -Dfd-user=%{file_daemon_user} \ > -Dfd-group=%{daemon_group} \ > -Ddir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \ > -Dfd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \ > -Dsd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \ > -Dmon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \ > -Dmon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \ > -Dmon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \ > -Dopenssl=yes \ > -Dbasename="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" \ > -Dhostname="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" \ > -Dsystemd=yes \ > -Dincludes=yes > > make DESTDIR=%{buildroot} > > All the ${...} defines are set the the RPM build system and must be > adapted to your environment (or removed to take the default). > > However, as you plan to use this system in production I would recommend > to use the latest stable release (17.2.x) or branch (bareos-17.2) > instead of master. And 17.2 as well as all predecessors still use autoconf. > > regards, > Jörg > > On 18.03.2018 at 22:43 wrote Greg: > > Hi, This is my first post, so bear with me. > > > > I am NOT a programmer but I want to compile bareos client only (file > > daemon) onto my firewall which is called ipfire as it has a bacula > > client that works with bareos but this was upgraded and now it is not > > compatible anymore. > > > > I have downloaded the bareos source files and I cannot find any > > documentation on how to compile from source. I did find documentation > > that said to run ./configure and then run make etc but these > > instructions seem old. > > > > I think the new source is supposed to compiled using cmake (which I > > have never heard of until today) > > > > I have read about cmake and how easy it is supposed to be, which is > > probably true if you use it everyday and know how it all works. > > > > I just want to be able to compile the client and its is not easy for > > someone with zero experience with cmake or compiling. Is there anyone > > out there that knows how to do this and have instructions on how to > > compile the client only? > > > > Thanks > > > > > -- > Jörg Steffens joerg.s...@bareos.com > Bareos GmbH & Co. KG Phone: +49 221 630693-91 <+49%20221%2063069391> > http://www.bareos.com Fax: +49 221 630693-10 <+49%20221%2063069310> > > Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 > Komplementär: Bareos Verwaltungs-GmbH > Geschäftsführer: > S. Dühr, M. Außendorf, Jörg Steffens, P. 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
[bareos-users] Re: Compiling bareos from source using cmake
Hi Greg, you are right. Bareos has switched from autoconf (configure, ...) to cmake in master, and this is not yet documented in the developer documentation. The best way to get the settings used by the Bareos project itself is to look into the package building files, e.g. https://github.com/bareos/bareos/blob/master/platforms/packaging/bareos.spec or https://github.com/bareos/bareos/blob/master/debian/rules In bareos.spec you see that we use following command to compile Bareos: # create temporary file in this subdirectory CMAKE_BUILDDIR=cmake-build mkdir ${CMAKE_BUILDDIR} pushd ${CMAKE_BUILDDIR} cmake .. \ -DCMAKE_VERBOSE_MAKEFILE=ON \ -DCMAKE_INSTALL_PREFIX:PATH=/usr \ -DCMAKE_INSTALL_LIBDIR:PATH=/usr/lib \ -DINCLUDE_INSTALL_DIR:PATH=/usr/include \ -DLIB_INSTALL_DIR:PATH=/usr/lib \ -DSYSCONF_INSTALL_DIR:PATH=/etc \ -DSHARE_INSTALL_PREFIX:PATH=/usr/share \ -DBUILD_SHARED_LIBS:BOOL=ON \ -Dprefix=%{_prefix}\ -Dlibdir=%{library_dir} \ -Dsbindir=%{_sbindir} \ -Dsbin-perm=755 \ -Dsysconfdir=%{_sysconfdir} \ -Dconfdir=%{_sysconfdir}/bareos \ -Dmandir=%{_mandir} \ -Ddocdir=%{_docdir}/%{name} \ -Dhtmldir=%{_docdir}/%{name}/html \ -Darchivedir=/var/lib/%{name}/storage \ -Dbackenddir=%{backend_dir} \ -Dscriptdir=%{script_dir} \ -Dworking-dir=%{working_dir} \ -Dplugindir=%{plugin_dir} \ -Dpid-dir=%{pid_dir} \ -Dbsrdir=%{bsr_dir} \ -Dlogdir=/var/log/bareos \ -Dsubsys-dir=%{_subsysdir} \ -Dpython=yes \ -Dsmartalloc=yes \ -Ddisable-conio=yes \ -Dreadline=yes \ -Dbatch-insert=yes \ -Ddynamic-cats-backends=yes \ -Ddynamic-storage-backends=yes \ -Dscsi-crypto=yes \ -Dlmdb=yes \ -Dndmp=yes \ -Dipv6=yes \ -Dacl=yes \ -Dxattr=yes \ -Dtraymonitor=yes \ -Dpostgresql=yes \ -Dmysql=yes \ -Dsqlite3=yes \ -Dtcp-wrappers=yes \ -Ddir-user=%{director_daemon_user} \ -Ddir-group=%{daemon_group} \ -Dsd-user=%{storage_daemon_user} \ -Dsd-group=%{storage_daemon_group} \ -Dfd-user=%{file_daemon_user} \ -Dfd-group=%{daemon_group} \ -Ddir-password="XXX_REPLACE_WITH_DIRECTOR_PASSWORD_XXX" \ -Dfd-password="XXX_REPLACE_WITH_CLIENT_PASSWORD_XXX" \ -Dsd-password="XXX_REPLACE_WITH_STORAGE_PASSWORD_XXX" \ -Dmon-dir-password="XXX_REPLACE_WITH_DIRECTOR_MONITOR_PASSWORD_XXX" \ -Dmon-fd-password="XXX_REPLACE_WITH_CLIENT_MONITOR_PASSWORD_XXX" \ -Dmon-sd-password="XXX_REPLACE_WITH_STORAGE_MONITOR_PASSWORD_XXX" \ -Dopenssl=yes \ -Dbasename="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" \ -Dhostname="XXX_REPLACE_WITH_LOCAL_HOSTNAME_XXX" \ -Dsystemd=yes \ -Dincludes=yes make DESTDIR=%{buildroot} All the ${...} defines are set the the RPM build system and must be adapted to your environment (or removed to take the default). However, as you plan to use this system in production I would recommend to use the latest stable release (17.2.x) or branch (bareos-17.2) instead of master. And 17.2 as well as all predecessors still use autoconf. regards, Jörg On 18.03.2018 at 22:43 wrote Greg: > Hi, This is my first post, so bear with me. > > I am NOT a programmer but I want to compile bareos client only (file > daemon) onto my firewall which is called ipfire as it has a bacula > client that works with bareos but this was upgraded and now it is not > compatible anymore. > > I have downloaded the bareos source files and I cannot find any > documentation on how to compile from source. I did find documentation > that said to run ./configure and then run make etc but these > instructions seem old. > > I think the new source is supposed to compiled using cmake (which I > have never heard of until today) > > I have read about cmake and how easy it is supposed to be, which is > probably true if you use it everyday and know how it all works. > > I just want to be able to compile the client and its is not easy for > someone with zero experience with cmake or compiling. Is there anyone > out there that knows how to do this and have instructions on how to > compile the client only? > > Thanks > -- Jörg Steffens joerg.steff...@bareos.com Bareos GmbH & Co. KGPhone: +49 221 630693-91 http://www.bareos.com Fax: +49 221 630693-10 Sitz der Gesellschaft: Köln | Amtsgericht Köln: HRA 29646 Komplementär: Bareos Verwaltungs-GmbH Geschäftsführer: S. Dühr, M. Außendorf, Jörg Steffens, P. 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 post to this group, send email to bareos-users@googlegroups.com. For more options, visit https://groups.google.com/d/optout.