This patch allows to select the depedencies for different distributions by switch --variant. A unique package version and name is chosen, which is different for each distribution.
examples
cargo deb or cargo deb --variant focal builds package t-rex_0.14.0-1~focal_amd64.deb with depencencies: libssl1.1, libgdal26
cargo deb --variant buster builds package t-rex_0.14.0-1~buster_amd64.deb with depencencies: libssl1.1, libgdal20
cargo deb --variant bullseye builds package t-rex_0.14.0-1~bullseye_amd64.deb with depencencies: libssl1.1, libgdal28
notes
The naming schema doesn't suite the official Debian Packaging Guide. The version suffix ~bullseye is usually quicker to recognize than ~deb11u1.
Currently supported distributions: Ubuntu Focal Fossa (20.04, LTS), Debian Buster (10) and Debian Bullseye (11). Focal is the default (by the author's design).
Tasks still need to be created in the GitHub actions, which builds and packages t-rex under the different distributions.
summary
This patch allows to select the depedencies for different distributions by switch
--variant
. A unique package version and name is chosen, which is different for each distribution.examples
cargo deb
orcargo deb --variant focal
builds packaget-rex_0.14.0-1~focal_amd64.deb
with depencencies:libssl1.1, libgdal26
cargo deb --variant buster
builds packaget-rex_0.14.0-1~buster_amd64.deb
with depencencies:libssl1.1, libgdal20
cargo deb --variant bullseye
builds packaget-rex_0.14.0-1~bullseye_amd64.deb
with depencencies:libssl1.1, libgdal28
notes
~bullseye
is usually quicker to recognize than~deb11u1
.t-rex
under the different distributions.