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

debian: Cleanup build process using more debhelper features #223

Merged
merged 28 commits into from
Feb 29, 2024

Commits on Feb 29, 2024

  1. pam/generate: Explicitly generate internal proto

    It's a dependency of the module code so it should be generated first
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    b416aca View commit details
    Browse the repository at this point in the history
  2. pam/generate.sh: Compute project root path correctly

    It has to work even if the script is called directly, not just from
    `go generate`
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    46f17ff View commit details
    Browse the repository at this point in the history
  3. pam: Fix generation of module at bootstrap

    If we generate the module without any generated file around we fail, to
    ensure this works we need to also run again the generation process but
    skipping what we've done already.
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    5642bea View commit details
    Browse the repository at this point in the history
  4. db_test: Ignore permission test when building the package

    We may run as root when building inside schroot, so ignore in such case.
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    4a98eca View commit details
    Browse the repository at this point in the history
  5. internal/daemon: Add generation script for generating grpctestservice

    So that running `go generate ./...` will also recreate this file
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    f496fa4 View commit details
    Browse the repository at this point in the history
  6. systemd: Fix path of the authd daemon

    This works for now as /sbin is linked to /usr/sbin but let's set it
    correctly
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    ee563aa View commit details
    Browse the repository at this point in the history
  7. debian/control: Do not install dbus if tests are disabled

    If building with `DEB_BUILD_OPTIONS=nocheck`, we don't need to run
    dbus-daemon at all, so mark it as such.
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    f65c9b8 View commit details
    Browse the repository at this point in the history
  8. Configuration menu
    Copy the full SHA
    8b2b502 View commit details
    Browse the repository at this point in the history
  9. Configuration menu
    Copy the full SHA
    b37306a View commit details
    Browse the repository at this point in the history
  10. debian/rules: Install files without repeating their name

    Install can be used as an advanced "mv" that makes directories too,
    so do it so that we don't have to repeat the file names on target.
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    4a649bf View commit details
    Browse the repository at this point in the history
  11. Configuration menu
    Copy the full SHA
    d08a628 View commit details
    Browse the repository at this point in the history
  12. Configuration menu
    Copy the full SHA
    429baea View commit details
    Browse the repository at this point in the history
  13. Configuration menu
    Copy the full SHA
    759452d View commit details
    Browse the repository at this point in the history
  14. Configuration menu
    Copy the full SHA
    9325b38 View commit details
    Browse the repository at this point in the history
  15. nss: Explicitly set rustix as a dependency using libc

    This is something we were forcing at package build level only but it's
    better to do it all the times
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    2a6fe1f View commit details
    Browse the repository at this point in the history
  16. debian/vendor-rust: Use a temporary CARGO_HOME unless specified

    We should not depend on developers environment when building a pacakge
    so use a temporary CARGO_HOME, unless a different one is specified
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    d9361a2 View commit details
    Browse the repository at this point in the history
  17. Configuration menu
    Copy the full SHA
    11d408a View commit details
    Browse the repository at this point in the history
  18. debian/docs: Expose the Cargo.locks file in docs

    This is what dh-cargo does by default, so follow it
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    87066ea View commit details
    Browse the repository at this point in the history
  19. Configuration menu
    Copy the full SHA
    d8c49d8 View commit details
    Browse the repository at this point in the history
  20. debian/control: Depend on pkgconf not on legacy pkg-config

    The latter was the legacy name
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    a240959 View commit details
    Browse the repository at this point in the history
  21. Configuration menu
    Copy the full SHA
    be20979 View commit details
    Browse the repository at this point in the history
  22. debian/rules: Install systemd units under /usr

    Installing outside /usr is something that debian is deprecating
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    e9abc72 View commit details
    Browse the repository at this point in the history
  23. debian: Use install file to install artifacts

    It allows more fine-grained control on what goes in the install path
    and avoids missing files
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    b8e04eb View commit details
    Browse the repository at this point in the history
  24. debian: Use dh-systemd to install systemd services

    It handles upgrades and removal properly, keeping track of the service
    state.
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    7fa5586 View commit details
    Browse the repository at this point in the history
  25. debian/tests: Use a script to launch autopkgtests

    It makes things easier to catch and at the same time we can enforce more
    things such as disable internet access and force using local go
    toolchain
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    9aae433 View commit details
    Browse the repository at this point in the history
  26. systemd, debian: Install authd in /usr/libexec

    authd is not a program that is meant to be ran by user, so there's no
    point for it being in PATH, as it's systemd running it.
    
    So move it where most daemons stay these daysystemd, debian: Install
    authd in /usr/libexec
    
    authd is not a program that is meant to be ran by user, so there's no
    point for it being in PATH, as it's systemd running it.
    
    So move it where most daemons stay these days
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    f59f9ea View commit details
    Browse the repository at this point in the history
  27. debian/rules: Explicitly set GOTOOLCHAIN=local

    This is something that also dh-golang does but for some reason it's not
    picked up during build and so we may fail if bumping the toolchain
    3v1n0 committed Feb 29, 2024
    Configuration menu
    Copy the full SHA
    bea5daa View commit details
    Browse the repository at this point in the history
  28. Configuration menu
    Copy the full SHA
    87985bd View commit details
    Browse the repository at this point in the history