sys-apps/systemd: simplify gnutls handling
authorMike Gilbert <floppym@gentoo.org>
Wed, 10 Jul 2019 17:37:13 +0000 (13:37 -0400)
committerMike Gilbert <floppym@gentoo.org>
Wed, 10 Jul 2019 17:58:02 +0000 (13:58 -0400)
Drop gnutls USE flag. Instead, depend on gnutls whenever dns-over-tls or
http is enabled.

This also drops support for using openssl for dns-over-tls.

Package-Manager: Portage-2.3.68, Repoman-2.3.16_p2
Signed-off-by: Mike Gilbert <floppym@gentoo.org>
sys-apps/systemd/systemd-242-r5.ebuild
sys-apps/systemd/systemd-9999.ebuild

index 50b6ad640b262130ba5b133e220d91fdfe464249..ec26fa49f5053ca4804bdd22e48818b54bd92162 100644 (file)
@@ -23,7 +23,7 @@ HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd"
 
 LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
 SLOT="0/2"
-IUSE="acl apparmor audit build cryptsetup curl dns-over-tls elfutils +gcrypt gnuefi gnutls http idn importd +kmod libidn2 +lz4 lzma nat pam pcre policykit qrcode +resolvconf +seccomp selinux +split-usr +sysv-utils test vanilla xkb"
+IUSE="acl apparmor audit build cryptsetup curl dns-over-tls elfutils +gcrypt gnuefi http idn importd +kmod libidn2 +lz4 lzma nat pam pcre policykit qrcode +resolvconf +seccomp selinux +split-usr +sysv-utils test vanilla xkb"
 
 REQUIRED_USE="importd? ( curl gcrypt lzma )"
 RESTRICT="!test? ( test )"
@@ -38,15 +38,12 @@ COMMON_DEPEND=">=sys-apps/util-linux-2.30:0=[${MULTILIB_USEDEP}]
        audit? ( >=sys-process/audit-2:0= )
        cryptsetup? ( >=sys-fs/cryptsetup-1.6:0= )
        curl? ( net-misc/curl:0= )
-       dns-over-tls? (
-               gnutls? ( >=net-libs/gnutls-3.5.3:0= )
-               !gnutls? ( >=dev-libs/openssl-1.1.0:0= )
-       )
+       dns-over-tls? ( >=net-libs/gnutls-3.5.3:0= )
        elfutils? ( >=dev-libs/elfutils-0.158:0= )
        gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0=[${MULTILIB_USEDEP}] )
        http? (
                >=net-libs/libmicrohttpd-0.9.33:0=
-               gnutls? ( >=net-libs/gnutls-3.1.4:0= )
+               >=net-libs/gnutls-3.1.4:0=
        )
        idn? (
                libidn2? ( net-dns/libidn2:= )
@@ -242,10 +239,10 @@ multilib_src_configure() {
                -Daudit=$(meson_multilib_native_use audit)
                -Dlibcryptsetup=$(meson_multilib_native_use cryptsetup)
                -Dlibcurl=$(meson_multilib_native_use curl)
+               -Ddns-over-tls=$(meson_multilib_native_use dns-over-tls)
                -Delfutils=$(meson_multilib_native_use elfutils)
                -Dgcrypt=$(meson_use gcrypt)
                -Dgnu-efi=$(meson_multilib_native_use gnuefi)
-               -Dgnutls=$(meson_multilib_native_use gnutls)
                -Defi-libdir="${EPREFIX}/usr/$(get_libdir)"
                -Dmicrohttpd=$(meson_multilib_native_use http)
                -Dimportd=$(meson_multilib_native_use importd)
@@ -304,15 +301,6 @@ multilib_src_configure() {
                )
        fi
 
-       if multilib_is_native_abi && use dns-over-tls; then
-               myconf+=(
-                       -Ddns-over-tls=true
-                       -Dopenssl=$(usex !gnutls true false)
-               )
-       else
-               myconf+=( -Ddns-over-tls=false -Dopenssl=false )
-       fi
-
        meson_src_configure "${myconf[@]}"
 }
 
index a3857fb18666eb2c085d58d8e95ce0af1bf46d3e..96e41bb68653d4a29631adb06fbf22f03397f3bd 100644 (file)
@@ -23,7 +23,7 @@ HOMEPAGE="https://www.freedesktop.org/wiki/Software/systemd"
 
 LICENSE="GPL-2 LGPL-2.1 MIT public-domain"
 SLOT="0/2"
-IUSE="acl apparmor audit build cryptsetup curl dns-over-tls elfutils +gcrypt gnuefi gnutls http idn importd +kmod libidn2 +lz4 lzma nat pam pcre policykit qrcode +resolvconf +seccomp selinux +split-usr +sysv-utils test vanilla xkb"
+IUSE="acl apparmor audit build cryptsetup curl dns-over-tls elfutils +gcrypt gnuefi http idn importd +kmod libidn2 +lz4 lzma nat pam pcre policykit qrcode +resolvconf +seccomp selinux +split-usr +sysv-utils test vanilla xkb"
 
 REQUIRED_USE="importd? ( curl gcrypt lzma )"
 RESTRICT="!test? ( test )"
@@ -38,15 +38,12 @@ COMMON_DEPEND=">=sys-apps/util-linux-2.30:0=[${MULTILIB_USEDEP}]
        audit? ( >=sys-process/audit-2:0= )
        cryptsetup? ( >=sys-fs/cryptsetup-1.6:0= )
        curl? ( net-misc/curl:0= )
-       dns-over-tls? (
-               gnutls? ( >=net-libs/gnutls-3.5.3:0= )
-               !gnutls? ( >=dev-libs/openssl-1.1.0:0= )
-       )
+       dns-over-tls? ( >=net-libs/gnutls-3.5.3:0= )
        elfutils? ( >=dev-libs/elfutils-0.158:0= )
        gcrypt? ( >=dev-libs/libgcrypt-1.4.5:0=[${MULTILIB_USEDEP}] )
        http? (
                >=net-libs/libmicrohttpd-0.9.33:0=
-               gnutls? ( >=net-libs/gnutls-3.1.4:0= )
+               >=net-libs/gnutls-3.1.4:0=
        )
        idn? (
                libidn2? ( net-dns/libidn2:= )
@@ -236,10 +233,10 @@ multilib_src_configure() {
                -Daudit=$(meson_multilib_native_use audit)
                -Dlibcryptsetup=$(meson_multilib_native_use cryptsetup)
                -Dlibcurl=$(meson_multilib_native_use curl)
+               -Ddns-over-tls=$(meson_multilib_native_use dns-over-tls)
                -Delfutils=$(meson_multilib_native_use elfutils)
                -Dgcrypt=$(meson_use gcrypt)
                -Dgnu-efi=$(meson_multilib_native_use gnuefi)
-               -Dgnutls=$(meson_multilib_native_use gnutls)
                -Defi-libdir="${EPREFIX}/usr/$(get_libdir)"
                -Dmicrohttpd=$(meson_multilib_native_use http)
                -Dimportd=$(meson_multilib_native_use importd)
@@ -298,15 +295,6 @@ multilib_src_configure() {
                )
        fi
 
-       if multilib_is_native_abi && use dns-over-tls; then
-               myconf+=(
-                       -Ddns-over-tls=true
-                       -Dopenssl=$(usex !gnutls true false)
-               )
-       else
-               myconf+=( -Ddns-over-tls=false -Dopenssl=false )
-       fi
-
        meson_src_configure "${myconf[@]}"
 }