From: Nick Porter Date: Mon, 4 Aug 2025 16:38:32 +0000 (+0100) Subject: Simplify .deb ssl dependency logic X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7e5e388f36cd066d1e548bc66fc15bc220c0088d;p=thirdparty%2Ffreeradius-server.git Simplify .deb ssl dependency logic since we require OpenSSL >= 3.0 --- diff --git a/debian/rules b/debian/rules index 0df73145a5..a5e6abff9d 100755 --- a/debian/rules +++ b/debian/rules @@ -53,16 +53,11 @@ else confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE) endif -# Add dependency on distribution specific version of openssl that fixes Heartbleed (CVE-2014-0160). -ifeq ($(shell dpkg-vendor --derives-from Ubuntu && echo yes),yes) - SUBSTVARS = -Vdist:Depends="libssl1.0.0 (>= 1.0.1f-1ubuntu2) | 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 - # 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 + SUBSTVARS = -Vdist:Depends="libssl3" endif # Add libsystemd-dev as a Build-Depends to debian/control if it is known to this system