View Issue Details

IDProjectCategoryView StatusLast Update
0001550bareos-coreinstaller / packagespublic2023-09-11 17:08
Reporterroland Assigned Tobruno-at-bareos  
PrioritynormalSeverityminorReproducibilityalways
Status feedbackResolutionopen 
PlatformLinuxOSDebianOS Version11
Product Version22.1.0 
Summary0001550: Debian: Build-Depends: openssl missing
DescriptionBuilding Bareos 21.x and 22.x (including todays GIT HEAD) fails in a clean Debian 11 (bullseye) build environment (using cowbuilder/pbuilder) during the dh_auto_configure run with the following message:

CMake Error at systemtests/CMakeLists.txt:196 (message):
  Creation of certificates failed: 127 /build/bareos-22.1.0/cmake-build

That's because openssl package is not installed in a clean environment and it's missing in debian/control Build-Depends.
Steps To Reproduce# First get the official source package and rename it:
wget https://github.com/bareos/bareos/archive/refs/tags/Release/22.1.0.tar.gz
mv 22.1.0.tar.gz bareos_22.1.0.orig.tar.gz

# Now get the same via GIT (I could also unpack the above package):
git clone https://github.com/bareos/bareos.git
cd bareos
git checkout Release/22.1.0

# Create the missing debian/changelog file:
dch --create --empty --package bareos -v 22.1.0-rr1+deb11u1
dch -a 'RoRo Build bullseye'

# Create a Debian source package (.dsc, .debian.tar.xz):
env DEB_BUILD_PROFILES="debian bullseye" debuild -us -uc -S -d

# And now finally build the Debian source package in a clean bullseye chroot:
sudo env DEB_BUILD_PROFILES="debian bullseye" cowbuilder --build --basepath /var/cache/pbuilder/base-bullseye.cow ../bareos_22.1.0-rr1+deb11u1.dsc
Additional InformationWith Bareos 20.x I did not run into this issue.

Adding "openssl" to the Build-Depends in debian/control debian/control.src avoids running into the above build failure.

I'm not sure, whether there are other missing build dependencies, at least the build is complaining above some pam stuff missing, but these don't stop the build.

I still see several automated tests failing, but have to dig deeper there.
Tagsbuild, debian 11

Activities

bruno-at-bareos

bruno-at-bareos

2023-09-11 17:07

manager   ~0005403

Would you mind to open a PR to fix the issue on github?

Issue History

Date Modified Username Field Change
2023-08-31 12:06 roland New Issue
2023-08-31 12:06 roland Tag Attached: build
2023-08-31 12:06 roland Tag Attached: debian 11
2023-09-11 17:07 bruno-at-bareos Note Added: 0005403
2023-09-11 17:08 bruno-at-bareos Assigned To => bruno-at-bareos
2023-09-11 17:08 bruno-at-bareos Status new => feedback