Gentoo Archives: gentoo-commits

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: src_install.eblit
Date: Mon, 01 Apr 2013 04:23:00
Message-Id: 20130401042255.B1A312171D@flycatcher.gentoo.org
1 vapier 13/04/01 04:22:55
2
3 Modified: src_install.eblit
4 Log:
5 Do not install nscd config files when USE=-nscd #463786 by Harris Landgarten.
6
7 (Portage version: 2.2.0_alpha169/cvs/Linux x86_64, signed Manifest commit with key FB7C4156)
8
9 Revision Changes Path
10 1.27 sys-libs/glibc/files/eblits/src_install.eblit
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/src_install.eblit?rev=1.27&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/src_install.eblit?rev=1.27&content-type=text/plain
14 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/sys-libs/glibc/files/eblits/src_install.eblit?r1=1.26&r2=1.27
15
16 Index: src_install.eblit
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_install.eblit,v
19 retrieving revision 1.26
20 retrieving revision 1.27
21 diff -u -r1.26 -r1.27
22 --- src_install.eblit 28 Mar 2013 05:03:16 -0000 1.26
23 +++ src_install.eblit 1 Apr 2013 04:22:55 -0000 1.27
24 @@ -1,6 +1,6 @@
25 # Copyright 1999-2013 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/src_install.eblit,v 1.26 2013/03/28 05:03:16 vapier Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/sys-libs/glibc/files/eblits/src_install.eblit,v 1.27 2013/04/01 04:22:55 vapier Exp $
29
30 toolchain-glibc_src_install() {
31 local GBUILDDIR
32 @@ -171,13 +171,19 @@
33 insinto /etc
34 doins nscd/nscd.conf posix/gai.conf nss/nsswitch.conf || die
35 doins "${WORKDIR}"/extra/etc/*.conf || die
36 - doinitd "${WORKDIR}"/extra/etc/nscd || die
37
38 - local nscd_args=(
39 - -e "s:@PIDFILE@:$(strings "${D}"/usr/sbin/nscd | grep nscd.pid):"
40 - )
41 - version_is_at_least 2.16 || nscd_args+=( -e 's: --foreground : :' )
42 - sed -i "${nscd_args[@]}" "${D}"/etc/init.d/nscd
43 + if ! in_iuse nscd || use nscd ; then
44 + doinitd "${WORKDIR}"/extra/etc/nscd || die
45 +
46 + local nscd_args=(
47 + -e "s:@PIDFILE@:$(strings "${D}"/usr/sbin/nscd | grep nscd.pid):"
48 + )
49 + version_is_at_least 2.16 || nscd_args+=( -e 's: --foreground : :' )
50 + sed -i "${nscd_args[@]}" "${D}"/etc/init.d/nscd
51 + else
52 + # Do this since extra/etc/*.conf above might have nscd.conf.
53 + rm -f "${D}"/etc/nscd.conf
54 + fi
55
56 echo 'LDPATH="include ld.so.conf.d/*.conf"' > "${T}"/00glibc
57 doenvd "${T}"/00glibc || die