sys-libs/glibc: Add libidn2 dependency.
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 17 Jun 2018 17:22:24 +0000 (19:22 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sun, 17 Jun 2018 17:22:38 +0000 (19:22 +0200)
The getaddrinfo function, when called with the AI_IDN or AI_CANONIDN flags,
will use the system libidn2 library to perform IDNA encoding. Version 2.0.5
or later is recommended, otherwise there will be some failures in the glibc
test suite.

Bug: https://bugs.gentoo.org/635012
Package-Manager: Portage-2.3.40, Repoman-2.3.9

sys-libs/glibc/glibc-9999.ebuild

index 4b2e7331da980f6e6c0ee7f703bffd110267b566..941eb7862828906d7f52ba42ab59bcf085c01f28 100644 (file)
@@ -33,7 +33,7 @@ PATCH_VER=6
 SRC_URI+=" https://dev.gentoo.org/~dilfridge/distfiles/${P}-patches-${PATCH_VER}.tar.bz2"
 SRC_URI+=" multilib? ( https://dev.gentoo.org/~dilfridge/distfiles/gcc-multilib-bootstrap-${GCC_BOOTSTRAP_VER}.tar.xz )"
 
-IUSE="audit caps compile-locales doc gd hardened headers-only multilib nscd profile selinux suid systemtap vanilla"
+IUSE="audit caps compile-locales doc gd hardened headers-only multilib nscd profile selinux suid systemtap test vanilla"
 
 # Minimum kernel version that glibc requires
 MIN_KERN_VER="3.2.0"
@@ -77,8 +77,10 @@ DEPEND="${COMMON_DEPEND}
        !<sys-apps/portage-2.1.2
        !<sys-devel/bison-2.7
        doc? ( sys-apps/texinfo )
+       test? ( >=net-dns/libidn2-2.0.5 )
 "
 RDEPEND="${COMMON_DEPEND}
+       >=net-dns/libidn2-2.0.5
        sys-apps/gentoo-functions
        !sys-kernel/ps3-sources
        !sys-libs/nss-db