Skip to content
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

Build Debian packages #16

Open
2 of 4 tasks
mkindahl opened this issue Mar 8, 2023 · 6 comments
Open
2 of 4 tasks

Build Debian packages #16

mkindahl opened this issue Mar 8, 2023 · 6 comments
Assignees

Comments

@mkindahl
Copy link
Collaborator

mkindahl commented Mar 8, 2023

Ensure that we build Debian packages for releases.

Tasks

@narc-Ontakac2
Copy link
Contributor

narc-Ontakac2 commented Mar 12, 2023

Actually I am working on this, only for private use by now. This is because in the end I will need the influx listener for armhf. Unfortunately it is crashing on startup (on amd64) by now.

If you want a Github release workflow that builds Debian packages for each release take a look at https://github.com/volkszaehler/libsml/blob/master/.github/workflows/debuild.yml .

Building a debian package for for each pull request seems a bit too much, depending on how many distributions and architectures you want to support.

@narc-Ontakac2
Copy link
Contributor

narc-Ontakac2 commented Mar 13, 2023

I copied the current state of my packaging (not ""just works" usable) to https://github.com/narc-Ontakac2/pg_influx so it becomes visible to you. Note that you need to run

pg_buildext updatecontrol

to create debian/control.

@mkindahl
Copy link
Collaborator Author

Building a debian package for for each pull request seems a bit too much, depending on how many distributions and architectures you want to support.

My thinking was that if the packages are build and attached as artifacts to each pull request it is easy to test a pull request if necessary. Actually building the package is not very expensive, so it would be an easy way to ensure that the solution can be tested widely.

@mkindahl
Copy link
Collaborator Author

This is because in the end I will need the influx listener for armhf. Unfortunately it is crashing on startup (on amd64) by now.

Sorry about that. Issue #14 was a mistake by me that could cause a crash when using worker_launch. Is that the same problem?

@narc-Ontakac2
Copy link
Contributor

narc-Ontakac2 commented Mar 13, 2023

If building the package is expensive depends. If you want to build a clean Debian package you need to use pbuilder. Otherwise you will build an Ubuntu package since the system you build on is an Ubuntu. Running pbuilder has two steps. You first create a Debian base system. This is used in the second step to run the package build.

The advantages of using pbuilder are that

  1. you can afterwards be sure you have all build dependencies and
  2. you can build with qemu for foreign platforms and multiple distributions.

@mkindahl
Copy link
Collaborator Author

@narc-Ontakac2 Added Debian build information so that I can at least build a package using debuild, but will investigate pbuilder next.

@mkindahl mkindahl self-assigned this Apr 16, 2023
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 16, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 16, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 16, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 16, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 16, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 16, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 16, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 16, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 16, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 16, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 16, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 18, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 18, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 18, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 18, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit to mkindahl/pg_influx that referenced this issue Apr 18, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

Part of timescale#16
mkindahl added a commit that referenced this issue Apr 18, 2023
Add workflow that will build Debian packages for each pull request and upload
them as artifacts to the pull request.

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

No branches or pull requests

2 participants