sys-libs/glibc: Remove only unversioned libnsl binaries
authorAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 16 Sep 2017 18:26:35 +0000 (20:26 +0200)
committerAndreas K. Hüttel <dilfridge@gentoo.org>
Sat, 16 Sep 2017 18:27:46 +0000 (20:27 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

sys-libs/glibc/glibc-2.26-r1.ebuild

index ac72e47377ae96a0b8f6d642732de21a9d04b364..99126e75c9e99bf195fc865321ee71244713072d 100644 (file)
@@ -569,10 +569,10 @@ glibc_do_src_install() {
 
        emake install_root="${D}$(alt_prefix)" install || die
 
-       # This version (2.26) provides some "compatibility libraries" for the NIS/NIS+ support
-       # which come without headers etc. So, for us completely useless. Use
-       # net-libs/libnsl instead.
-       find "${D}" -name "libnsl*" -delete
+       # This version (2.26) provides some compatibility libraries for the NIS/NIS+ support
+       # which come without headers etc. Only needed for binary packages since the
+       # external net-libs/libnsl has increased soversion. Keep only versioned libraries.
+       find "${D}" -name "libnsl.a" -o -name "libnsl.so" -delete
 
        # Normally real_pv is ${PV}. Live ebuilds are exception, there we need
        # to infer upstream version: