summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2012-10-02 07:12:17 +0000
committerMike Frysinger <vapier@gentoo.org>2012-10-02 07:12:17 +0000
commitae77510804f875925c9277ea191149c50bf51683 (patch)
treeb6033adc56d4060b58dc24663a4804670ce74b86 /sys-libs/glibc/files
parentRe-enable NaCl. Build with system speex (bug #432748 by floppym). Remove old. (diff)
downloadhistorical-ae77510804f875925c9277ea191149c50bf51683.tar.gz
historical-ae77510804f875925c9277ea191149c50bf51683.tar.bz2
historical-ae77510804f875925c9277ea191149c50bf51683.zip
Default host.conf:multi to on when /etc/hosts is small #436530 by Eray Aslan.
Package-Manager: portage-2.2.0_alpha131/cvs/Linux x86_64
Diffstat (limited to 'sys-libs/glibc/files')
-rw-r--r--sys-libs/glibc/files/eblits/pkg_preinst.eblit8
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.