Skip to content

Commit

Permalink
Debian sid has OpenSSL legacy providers in an optional package
Browse files Browse the repository at this point in the history
  • Loading branch information
ndptech committed Aug 14, 2024
1 parent 2bc20db commit 21307a0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion debian/rules
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,12 @@ endif
ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes)
SUBSTVARS = -Vdist:Depends="libssl1.0.0 (>= 1.0.2) | libssl1.1 | libssl3"
else
SUBSTVARS = -Vdist:Depends="libssl1.0.0 (>= 1.0.2) | libssl1.0.2 | libssl1.1 | libssl3"
# Later Debian versions have the legacy OpenSSL provider in a separate package
ifeq ($(shell apt-cache show openssl-provider-legacy &>/dev/null && echo yes),yes)
SUBSTVARS = -Vdist:Depends="libssl3, openssl-provider-legacy"
else
SUBSTVARS = -Vdist:Depends="libssl1.0.0 (>= 1.0.1e-2+deb7u5) | libssl1.0.2 | libssl1.1 | libssl3"
endif
endif

# Add libsystemd-dev as a Build-Depends to debian/control if it is known to this system
Expand Down

0 comments on commit 21307a0

Please sign in to comment.