Skip to content

ci: try to build deb package #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 12 commits into
base: master
Choose a base branch
from
Open

ci: try to build deb package #2

wants to merge 12 commits into from

Conversation

missytake
Copy link

@missytake missytake commented Jun 28, 2025

Following the instructions at chatmail/relay#72 (comment)

@missytake
Copy link
Author

Current error:

debconf: unable to initialize frontend: Dialog
debconf: (TERM is not set, so the dialog frontend is not usable.)
debconf: falling back to frontend: Readline
debconf: unable to initialize frontend: Readline
debconf: (This frontend requires a controlling tty.)
debconf: falling back to frontend: Teletype
Configuring pbuilder
--------------------

Default mirror not found

Mirror information detection failed and the user provided no mirror
information.

Please enter valid mirror information.

Please enter the default mirror you want to be used by pbuilder.

If you leave this field blank, there will be one attempt to autodetect this
information. If this attempt fails, you will be prompted again to insert some
valid mirror information.

Here is a valid mirror example: http://deb.debian.org/debian

Somehow --git-pbuilder-options="--mirror http://deb.debian.org/debian" didn't suffice to set a mirror.

@missytake
Copy link
Author

apt install -y git-buildpackage build-essential debhelper-compat default-libmysqlclient-dev krb5-multidev libapparmor-dev libbz2-dev libcap-dev libdb-dev libexpat-dev libexttextcat-dev libicu-dev libldap2-dev liblua5.4-dev liblz4-dev liblzma-dev libpam0g-dev libpq-dev libsasl2-dev libsodium-dev libsqlite3-dev libssl-dev libstemmer-dev libsystemd-dev libwrap0-dev libzstd-dev pkg-config zlib1g-dev git libunwind-dev rsync

- name: clone repository
run: git clone https://github.com/chatmail/dovecot
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should ideally use actions/checkout so it checks out the PR commit and not whatever commit is on main now.
Apparently it should just work, the only problems users seems to have here are due to insufficient privileges:
https://stackoverflow.com/questions/68578638/how-to-checkout-repo-inside-the-docker-in-github-action

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that the checkout action doesn't create the .git directory, but gbp expects it to be there...

Also, I'd only want to publish builds from main to https://download.delta.chat/dovecot/, as we don't have a staging environment where we could upload builds from other branches.

Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem is that the checkout action doesn't create the .git directory

I just tested in #3, checkout action creates .git directory.

Now there is a problem that gbp is unhappy about changes on top of master (committing .github) that are not in the changelog. This will fail when merged on master, currently it only works because the workflow is not on the master branch yet.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants