Hi!
I tried to build aptly debian packages and ran into problem with build deps.
Now I will show howto reproduce this problem.
Assumed, that we have already cloned aptly git repository somewhere on host machine in clear state, just after git clone https://github.com/aptly-dev/aptly.git. Let's say that we have env var APTLY_PROJ_PATH poiting to folder where aptly git repo cloned on host machine. It is important to make sure that the folder ${APTLY_PROJ_PATH}/.go is missing before doing next steps.
Start new Debian Trixie container:
podman run --pull=always -it --rm -v "${APTLY_PROJ_PATH}":/root/aptly debian:trixie bash
Update apt cache:
Goto into folder with aptly sources:
Install build-deps using apt:
apt build-dep . |& tee ~/apt_build-dep.log
You can see full log here: apt_build-dep.log.
Try to build deb packages:
dpkg-buildpackage -b -uc |& tee ../dpkg-buildpackage.log
Build finished with a lot of error messages with text tls: failed to verify certificate: x509: certificate signed by unknown authority.
You can see full log here: dpkg-buildpackage.log.
It is possible to solve problem by installing package ca-certificates:
apt install ca-certificates
After installation of ca-certificates it is possible to build aptly deb packages with dpkg-buildpackage -b -uc successfully.
Maybe it is necessary to add ca-certificates as Build-Depends in debian/control file?
p.s. I tested project in state after commit a65f79e.
Hi!
I tried to build aptly debian packages and ran into problem with build deps.
Now I will show howto reproduce this problem.
Assumed, that we have already cloned aptly git repository somewhere on host machine in clear state, just after
git clone https://github.com/aptly-dev/aptly.git. Let's say that we have env varAPTLY_PROJ_PATHpoiting to folder where aptly git repo cloned on host machine. It is important to make sure that the folder${APTLY_PROJ_PATH}/.gois missing before doing next steps.Start new Debian Trixie container:
Update apt cache:
Goto into folder with aptly sources:
Install build-deps using apt:
You can see full log here: apt_build-dep.log.
Try to build deb packages:
Build finished with a lot of error messages with text
tls: failed to verify certificate: x509: certificate signed by unknown authority.You can see full log here: dpkg-buildpackage.log.
It is possible to solve problem by installing package
ca-certificates:After installation of
ca-certificatesit is possible to build aptly deb packages withdpkg-buildpackage -b -ucsuccessfully.Maybe it is necessary to add
ca-certificatesasBuild-Dependsindebian/controlfile?p.s. I tested project in state after commit a65f79e.