Skip to content

Produce .deb packages #268

Open
Open

Description

@iinuwa

We have spec files written for RPM packages for Fedora and openSUSE, and there's community support for Arch in AUR, but we don't have anything for the .deb ecosystem for Debian/Ubuntu

It would be great if we could get this working for that ecosystem. We need to get it done before the Ubuntu feature freeze in February if we want to make it into the next release.

The released packages would probably wind up being built in openSUSE Build Service next to our other packages, but creating the package definition would be very helpful as starting point.

Some open questions:

  • We will need the build to support vendoring. Our build system does that already, but I don't know how different build systems integrate that for deb files.
  • I also don't know if there's any other rules we need to follow to get into the Debian or Ubuntu repositories.

Activity

  1. kpanuragh commented on Nov 13, 2026

    @kpanuragh
    Contributor

    I'd like to take this one.

    My plan is to start from the existing spec files in the OBS project and write a debian/ package definition that builds offline from the vendored crates (the dist-vendor.sh tarball), so it can be built on OBS next to the RPMs. I'll test-build it with sbuild against current Debian unstable and Ubuntu, and open a PR with what I find on the open questions (vendoring and Debian/Ubuntu archive rules).

  2. kpanuragh commented on Nov 14, 2026

    @kpanuragh
    Contributor

    I've opened #272 with packaging in distrib/debian/. It builds from the vendored meson dist tarball, which works for OBS but not for the Debian archive.

    For the archive, every crate has to be packaged as librust-*-dev. Here is where Cargo.lock stands against Debian sid. In total there are 388 crates: 336 are in sid at a compatible version, 31 only at an incompatible version, and 21 aren't packaged at all.

    Not in Debian (21)

    apdu 0.4.0, apdu-core 0.4.0, apdu-derive 0.4.0, bluer 0.17.4, bluez-async 0.8.2, bluez-generated 0.4.0, btleplug 0.11.8, cbor-smol 0.5.1, cosey 0.4.0, ctap-types 0.5.0, dbus-tokio 0.7.6, delog 0.1.8, heapless-bytes 0.5.0, iso7816 0.2.2, libwebauthn 0.11.0, nfc1 0.7.1, nfc1-sys 0.3.13, pxp 0.1.0, serde-indexed 0.1.1 and 0.2.0, text_io 0.1.13

    Debian has an incompatible version (31)
    Crate Cargo.lock Debian sid
    async-channel 1.9.0 2.5.0
    async-global-executor 2.4.1 3.1.0
    base16ct 0.2.0 1.0.0
    event-listener 2.5.3 5.4.2
    getrandom 0.2.17, 0.3.4 0.4.2
    gettext-sys 0.26.0 0.21.3
    hashbrown 0.17.1 0.16.1
    heapless 0.9.3 0.8.0
    itertools 0.13.0 0.14.0
    memoffset 0.9.1 0.8.0
    miniz_oxide 0.8.9 0.9.1
    nix 0.29.0 0.30.1
    pem-rfc7468 0.7.0 1.0.0
    prettyplease 0.2.37 0.3.0
    rand / rand_chacha / rand_core 0.9 0.10
    serde-xml-rs 0.8.2 0.5.1
    shlex 2.0.1 1.3.0
    snow 0.10.0 0.9.6
    strum / strum_macros 0.26 0.28.0
    synstructure 0.13.2 0.14.0
    system-deps 7.0.8 9.0.0
    temp-dir 0.1.16 0.2.0
    tokio-tungstenite / tungstenite 0.26.2 0.28.0
    winnow 1.0.4 0.7.13
    x509-parser 0.17.0 0.18.1
    zvariant_utils 3.5.0 4.2.0

    Most of the missing crates belong to libwebauthn's stack (CTAP types, BlueZ, NFC). The incompatible ones are mostly older versions pulled in by dependencies, which bumps on our side or in libwebauthn could fix.

    So the archive route needs, roughly:

    1. packaging the 21 missing crates through the Debian Rust team (debcargo);
    2. moving the incompatible ones to the versions in sid where we can;
    3. an ITP bug, and a sponsor for the uploads.

    Until then, OBS Debian/Ubuntu targets can use the vendored build in #272.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions