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

Enable building Debian package via Docker #13

Merged
merged 6 commits into from
Jan 12, 2024

Conversation

koalo
Copy link
Collaborator

@koalo koalo commented Jan 9, 2024

To enable building for other distributions or without
installing the build dependencies locally, provide a
Dockerfile and the corresponding usage guide.

Also fix a few issues with the current Debian build script.

koalo added 6 commits May 10, 2023 05:05
Before, if the initialization of the service fails, the
lock file was not removed and thus a second attempt to start
detd fails. This is fixed by catching the exception and
cleaning up the lock file.

Signed-off-by: Florian Kauer <[email protected]>
This creates the directory for the socket file if it
does not yet exists.

Signed-off-by: Florian Kauer <[email protected]>
Currently, even when an error occurs, the package_debian.sh
runs until completion and falsely reports a success.

By adding set -e this can be avoided.

Signed-off-by: Florian Kauer <[email protected]>
The current package_debian.sh circumvents to print the
full filename of the Debian package by using wildcards.

However, this is not very user-friendly and can lead to
confusion or bugs. Especially when you do a remote or
Docker build, the filename should be explictly printed,
otherwise it can be difficult to find the result.

Therefore, assemble the full filename.

Signed-off-by: Florian Kauer <[email protected]>
override_dh_systemd_start is deprecated and thus
it does no longer build successfully in Debian Bookworm.

Replace it with override_dh_installsystemd.

Signed-off-by: Florian Kauer <[email protected]>
To enable building for other distributions or without
installing the build dependencies locally, provide a
Dockerfile and the corresponding usage guide.

Signed-off-by: Florian Kauer <[email protected]>
@kamber-intel kamber-intel merged commit 1a327a1 into Avnu:master Jan 12, 2024
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.

None yet

2 participants