diff options
Diffstat (limited to 'sys-libs/glibc/files/eblits/pkg_preinst.eblit')
-rw-r--r-- | sys-libs/glibc/files/eblits/pkg_preinst.eblit | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/sys-libs/glibc/files/eblits/pkg_preinst.eblit b/sys-libs/glibc/files/eblits/pkg_preinst.eblit index ec87806699ad..bb1032ddcb03 100644 --- a/sys-libs/glibc/files/eblits/pkg_preinst.eblit +++ b/sys-libs/glibc/files/eblits/pkg_preinst.eblit @@ -1,6 +1,6 @@ # Copyright 1999-2012 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_preinst.eblit,v 1.5 2012/10/02 04:58:30 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_preinst.eblit,v 1.6 2012/10/02 07:12:17 vapier Exp $ eblit-glibc-pkg_preinst() { # nothing to do if just installing headers @@ -9,6 +9,12 @@ eblit-glibc-pkg_preinst() { # prepare /etc/ld.so.conf.d/ for files mkdir -p "${ROOT}"/etc/ld.so.conf.d + # Default /etc/hosts.conf:multi to on for systems with small dbs. + if [[ $(wc -l < "${ROOT}"/etc/hosts) -lt 1000 ]] ; then + sed -i '/^multi off/s:off:on:' "${D}"/etc/host.conf + elog "Defaulting /etc/host.conf:multi to on" + fi + # simple test to make sure our new glibc isnt completely broken. # make sure we don't test with statically built binaries since # they will fail. also, skip if this glibc is a cross compiler. |