From 8dbafb543a184817f1ee41edff917bf87dedf65b Mon Sep 17 00:00:00 2001 From: Mike Gilbert Date: Sat, 13 May 2017 17:03:09 -0400 Subject: [PATCH] sys-apps/systemd: add libidn2 support Bug: https://bugs.gentoo.org/618384 Package-Manager: Portage-2.3.5_p32, Repoman-2.3.2_p62 --- sys-apps/systemd/metadata.xml | 1 + sys-apps/systemd/systemd-9999.ebuild | 20 +++++++++++++++++--- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/sys-apps/systemd/metadata.xml b/sys-apps/systemd/metadata.xml index 9970bd192531..922bac04c722 100644 --- a/sys-apps/systemd/metadata.xml +++ b/sys-apps/systemd/metadata.xml @@ -23,6 +23,7 @@ Enable import daemon Connect to kernel dbus (KDBUS) instead of userspace dbus if available Enable kernel module loading via sys-apps/kmod + If IDN support is enabled, use net-dns/libidn2 instead of net-dns/libidn Enable lz4 compression for the journal Enable support for network address translation in networkd Enable qrcode output support in journal diff --git a/sys-apps/systemd/systemd-9999.ebuild b/sys-apps/systemd/systemd-9999.ebuild index a4a556cd32da..4b3f649fd620 100644 --- a/sys-apps/systemd/systemd-9999.ebuild +++ b/sys-apps/systemd/systemd-9999.ebuild @@ -21,7 +21,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 elfutils +gcrypt gnuefi http - idn importd +kmod +lz4 lzma nat pam policykit + idn importd +kmod +libidn2 +lz4 lzma nat pam policykit qrcode +seccomp selinux ssl sysv-utils test vanilla xkb" REQUIRED_USE="importd? ( curl gcrypt lzma )" @@ -42,7 +42,10 @@ COMMON_DEPEND=">=sys-apps/util-linux-2.27.1:0=[${MULTILIB_USEDEP}] >=net-libs/libmicrohttpd-0.9.33:0= ssl? ( >=net-libs/gnutls-3.1.4:0= ) ) - idn? ( net-dns/libidn:0= ) + idn? ( + libidn2? ( net-dns/libidn2 ) + !libidn2? ( net-dns/libidn ) + ) importd? ( app-arch/bzip2:0= sys-libs/zlib:0= @@ -221,7 +224,6 @@ multilib_src_configure() { -Defi-libdir="/usr/$(get_libdir)" -Dmicrohttpd=$(meson_multilib_native_use http) $(usex http -Dgnutls=$(meson_multilib_native_use ssl) -Dgnutls=false) - -Dlibidn=$(meson_multilib_native_use idn) -Dimportd=$(meson_multilib_native_use importd) -Dbzip2=$(meson_multilib_native_use importd) -Dzlib=$(meson_multilib_native_use importd) @@ -266,6 +268,18 @@ multilib_src_configure() { -Dvconsole=$(meson_multilib) ) + if multilib_is_native_abi && use idn; then + myconf+=( + -Dlibidn2=$(usex libidn2 true false) + -Dlibidn=$(usex libidn2 false true) + ) + else + myconf+=( + -Dlibidn2=false + -Dlibidn=false + ) + fi + set -- meson "${myconf[@]}" "${S}" echo "$@" "$@" || die -- 2.26.2