bareos: master f612163a

Author Committer Branch Timestamp Parent
arogge arogge master 2019-10-15 17:36 master 3c8b7bc2 Pending
Changeset core: replace version.h macros

Previously every Bareos version built had its version number set as a
compile definition using -DVERSION. If neccessary the version number
had been extracted from version.h using cmake.

This patch now introduces struct BareosVersion with its single instance
kBareosVersion defined in version.c.
That struct now contains all version information. Consumers just link
against cmake target version-obj and will be able to access the
information.

The Bareos version is now configured in BareosVersion.cmake in both core
and webui. This is going to be autoconfigured through git tags soon.
Until then the files must be maintained manually.

All date values in version.c are determined at cmake runtime. You can
set the environment variable SOURCE_DATE_EPOCH to set the build time
to a fixed point in time (maybe this will be done automatic in the
future when we're autogenerating from git).
mod - core/CMakeLists.txt Diff File
mod - core/cmake/BareosExtractVersionInfo.cmake Diff File
add - core/cmake/BareosVersion.cmake Diff File
mod - core/src/console/console.cc Diff File
mod - core/src/console/console_conf.cc Diff File
mod - core/src/dird/admin.cc Diff File
mod - core/src/dird/archive.cc Diff File
mod - core/src/dird/authenticate.cc Diff File
mod - core/src/dird/authenticate_console.cc Diff File
mod - core/src/dird/backup.cc Diff File
mod - core/src/dird/consolidate.cc Diff File
mod - core/src/dird/dbcheck.cc Diff File
mod - core/src/dird/dird.cc Diff File
mod - core/src/dird/dird_conf.cc Diff File
mod - core/src/dird/migrate.cc Diff File
mod - core/src/dird/restore.cc Diff File
mod - core/src/dird/ua_cmds.cc Diff File
mod - core/src/dird/ua_status.cc Diff File
mod - core/src/dird/verify.cc Diff File
mod - core/src/filed/dir_cmd.cc Diff File
mod - core/src/filed/fd_plugins.cc Diff File
mod - core/src/filed/fd_plugins.h Diff File
mod - core/src/filed/filed.cc Diff File
mod - core/src/filed/filed_conf.cc Diff File
mod - core/src/filed/status.cc Diff File
mod - core/src/include/bareos.h Diff File
mod - core/src/include/config.h.in Diff File
mod - core/src/lib/CMakeLists.txt Diff File
mod - core/src/lib/bsock.cc Diff File
mod - core/src/lib/message.cc Diff File
add - core/src/lib/version.c Diff File
mod - core/src/ndmp/CMakeLists.txt Diff File
mod - core/src/ndmp/ndmjob_args.c Diff File
mod - core/src/ndmp/ndmos_common.c Diff File
mod - core/src/qt-tray-monitor/mainwindow.cc Diff File
mod - core/src/qt-tray-monitor/tray-monitor.cc Diff File
mod - core/src/qt-tray-monitor/tray_conf.cc Diff File
mod - core/src/stored/bcopy.cc Diff File
mod - core/src/stored/bextract.cc Diff File
mod - core/src/stored/bls.cc Diff File
mod - core/src/stored/bscan.cc Diff File
mod - core/src/stored/btape.cc Diff File
mod - core/src/stored/label.cc Diff File
mod - core/src/stored/status.cc Diff File
mod - core/src/stored/stored.cc Diff File
mod - core/src/stored/stored_conf.cc Diff File
mod - core/src/tests/bsock_test.cc Diff File
mod - webui/CMakeLists.txt Diff File
mod - webui/cmake/BareosExtractVersionInfo.cmake Diff File
add - webui/cmake/BareosVersion.cmake Diff File