From: | "Mike Frysinger (vapier)" <vapier@g.o> |
---|---|
To: | gentoo-commits@l.g.o |
Subject: | [gentoo-commits] gentoo-x86 commit in sys-libs/glibc/files/eblits: pkg_preinst.eblit |
Date: | Tue, 02 Oct 2012 07:12:28 |
Message-Id: | 20121002071217.DE64721600@flycatcher.gentoo.org |
1 | vapier 12/10/02 07:12:17 |
2 | |
3 | Modified: pkg_preinst.eblit |
4 | Log: |
5 | Default host.conf:multi to on when /etc/hosts is small #436530 by Eray Aslan. |
6 | |
7 | (Portage version: 2.2.0_alpha131/cvs/Linux x86_64) |
8 | |
9 | Revision Changes Path |
10 | 1.6 sys-libs/glibc/files/eblits/pkg_preinst.eblit |
11 | |
12 | file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/pkg_preinst.eblit?rev=1.6&view=markup |
13 | plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/pkg_preinst.eblit?rev=1.6&content-type=text/plain |
14 | diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/pkg_preinst.eblit?r1=1.5&r2=1.6 |
15 | |
16 | Index: pkg_preinst.eblit |
17 | =================================================================== |
18 | RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_preinst.eblit,v |
19 | retrieving revision 1.5 |
20 | retrieving revision 1.6 |
21 | diff -u -r1.5 -r1.6 |
22 | --- pkg_preinst.eblit 2 Oct 2012 04:58:30 -0000 1.5 |
23 | +++ pkg_preinst.eblit 2 Oct 2012 07:12:17 -0000 1.6 |
24 | @@ -1,6 +1,6 @@ |
25 | # Copyright 1999-2012 Gentoo Foundation |
26 | # Distributed under the terms of the GNU General Public License v2 |
27 | -# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_preinst.eblit,v 1.5 2012/10/02 04:58:30 vapier Exp $ |
28 | +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/pkg_preinst.eblit,v 1.6 2012/10/02 07:12:17 vapier Exp $ |
29 | |
30 | eblit-glibc-pkg_preinst() { |
31 | # nothing to do if just installing headers |
32 | @@ -9,6 +9,12 @@ |
33 | # prepare /etc/ld.so.conf.d/ for files |
34 | mkdir -p "${ROOT}"/etc/ld.so.conf.d |
35 | |
36 | + # Default /etc/hosts.conf:multi to on for systems with small dbs. |
37 | + if [[ $(wc -l < "${ROOT}"/etc/hosts) -lt 1000 ]] ; then |
38 | + sed -i '/^multi off/s:off:on:' "${D}"/etc/host.conf |
39 | + elog "Defaulting /etc/host.conf:multi to on" |
40 | + fi |
41 | + |
42 | # simple test to make sure our new glibc isnt completely broken. |
43 | # make sure we don't test with statically built binaries since |
44 | # they will fail. also, skip if this glibc is a cross compiler. |