Skip to content

Build deps problem when building aptly deb packages using standard Debian tools #1540

@syominsergey

Description

@syominsergey

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:

apt update

Goto into folder with aptly sources:

cd ~/aptly/

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions