EDIT: 26.04.2020
I have found the problem, at least on my installation of Manjaro Linux.
The output of the build process tells me that:
CMake Error at core/cmake/BareosGetDistInfo.cmake:36 (list):
list index: 1 out of range (-1, 0)
Call Stack (most recent call first):
core/CMakeLists.txt:151 (include)
After some investigation i found out that the script bareos/core/cmake/distname.sh does not provide a DISTVER.
The output of the script is "archlinux;;;;;"
The second field of that string is empty.
After some further investigation i found out that this script tries to get the DISTVER with lsb_release if it is available. But because i am on Manjaro Linux this does not work, so we fall back testing if /etc/arch-release is existing. But then we dont get the DISTVER set at all.
So a quick fix for everyone running on Manjaro Linux would be to just echo out the needed return of this script with something like this:
echo "archlinux;20.0;$OBS_PROJECT;$OBS_DISTRIBUTION;$OBS_ARCH;$OBS_SRCMD5"
Hope that helps someone ...
Best regards
Andreas
ORIGINAL:
I have problems compiling bareos-common
Here are some logs: https://gist.github.com/apachler/be87c7454b512873db0fb8fe5de34271 https://gist.github.com/apachler/f712da912965fe84afbcf14387afa05c https://gist.github.com/apachler/c7ed4cff8096e2c02b7759ad2d464ec8
Maybe you have an idea?
Pinned Comments