summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2014-10-21 01:15:28 +0000
committerAnthony G. Basile <blueness@gentoo.org>2014-10-21 01:15:28 +0000
commit302fb2a26fee1aa57e2bc64c8fbd981262aa8c68 (patch)
treef1d412872a93eb91c0242055ac4dc752a8f4453f /sys-libs
parentAdd 2.4.0 without keywords to match dev-python/pypy. (diff)
downloadhistorical-302fb2a26fee1aa57e2bc64c8fbd981262aa8c68.tar.gz
historical-302fb2a26fee1aa57e2bc64c8fbd981262aa8c68.tar.bz2
historical-302fb2a26fee1aa57e2bc64c8fbd981262aa8c68.zip
Add live ebuild for 0.9.33 branch, bug #510082
Package-Manager: portage-2.2.8-r2/cvs/Linux x86_64 Manifest-Sign-Key: 0xF52D4BBA
Diffstat (limited to 'sys-libs')
-rw-r--r--sys-libs/uclibc/ChangeLog8
-rw-r--r--sys-libs/uclibc/Manifest29
-rw-r--r--sys-libs/uclibc/uclibc-0.9.33.9999.ebuild349
3 files changed, 371 insertions, 15 deletions
diff --git a/sys-libs/uclibc/ChangeLog b/sys-libs/uclibc/ChangeLog
index c0478c9581ad..4c9e25524f8a 100644
--- a/sys-libs/uclibc/ChangeLog
+++ b/sys-libs/uclibc/ChangeLog
@@ -1,6 +1,12 @@
# ChangeLog for sys-libs/uclibc
# Copyright 1999-2014 Gentoo Foundation; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/ChangeLog,v 1.93 2014/08/12 06:47:41 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/ChangeLog,v 1.94 2014/10/21 01:15:17 blueness Exp $
+
+*uclibc-0.9.33.9999 (21 Oct 2014)
+
+ 21 Oct 2014; Anthony G. Basile <blueness@gentoo.org>
+ +uclibc-0.9.33.9999.ebuild:
+ Add live ebuild for 0.9.33 branch, bug #510082
12 Aug 2014; Mike Frysinger <vapier@gentoo.org> uclibc-0.9.33.2-r12.ebuild,
uclibc-9999.ebuild:
diff --git a/sys-libs/uclibc/Manifest b/sys-libs/uclibc/Manifest
index 59d3dc531123..e908b45d66be 100644
--- a/sys-libs/uclibc/Manifest
+++ b/sys-libs/uclibc/Manifest
@@ -28,23 +28,24 @@ EBUILD uclibc-0.9.33.2-r7.ebuild 9116 SHA256 8fbbd90b84cb26e1e6a1e3ff0f86c86f8a9
EBUILD uclibc-0.9.33.2-r8.ebuild 9110 SHA256 f5c2e6f7053997fbaa2dd537cacd3776e49f6f4c57ee0ce62bf0a19abde700f8 SHA512 eea382c406cc3f8f4c8d97d296497fb8e56f3d3180c6d2df0c4cd690a127cad0e58f235fad8e758f5bba433afaf0d3ac45c33adf389a5a224331971e0a9e93a9 WHIRLPOOL 306130ca8f3cddb65886831eb9556378fc8d7c3a311ba614a696fff0d3fb2cdcc372009860aae28541e6c11deeb94f2769791d1ac36fdb5b21e366755790a9b9
EBUILD uclibc-0.9.33.2-r9.ebuild 9117 SHA256 c7fd2c6d1979dee89dc827486e6322dd22325f6b015c84647121f8f54eff2dad SHA512 cfee7dea57e3c579eddae1fd45f3ae8606ee25cee1560f62c8d4a50cfdddec3284d621053385e6849f3a6b2a33476ea91bc6f8ca093492cb287db8c7a05e0a6a WHIRLPOOL 8a3b541a7e70c02f86b471caf1bf6e9d5afff734d0340295f898eb9ff4913c32d6a30d2ab4cc886a21d2429f472be488589e008ad9021316982d0651c089d55c
EBUILD uclibc-0.9.33.2.ebuild 10630 SHA256 db49c741a424d2433ec3978184c979b2a9fcb903f83eeb110adcec76940b342e SHA512 75e974586c57662f2f39d6a80a1162ec611b31b4dfa881a2ab2094f6b35c6b9375c98a53c957580395b4754cc8c27b4a53737b6d9a0f099ab4a3c45ae1169125 WHIRLPOOL 9f8f01465c556c372d926e701abef49770c1772b40ad83325439343d22561a4b1f4cf6c9bcdba78815f2e8af11d3455deee3dd81225c54b83de3dd132e2462c9
+EBUILD uclibc-0.9.33.9999.ebuild 9249 SHA256 85c82e7421216252005ca0e92b804620ec6f05d1c2b56848dce1cd04613ddd56 SHA512 650de1e1ac2afe557f2eae0b3ae9e1dcbdc818908b963bb6486f6f13f82be25ea859a039e7f6ca0c78c3ad8d0be685195da3238c94860a521b8d184f5a998eea WHIRLPOOL a6018478e4b4ada31a1ebe1db02cb5c5744f2f8a24adbcee6cbf4320c4e5433668af879cbd867c0b3d873077e93a8a3ec83b877bdae00ba7cc7b2370c3c36cfb
EBUILD uclibc-9999.ebuild 9221 SHA256 35be1c605d8371ed9db7528899eaaa3c393d877342c6f9214f7eb873d4b63cbd SHA512 e88f3bc14e75f59ef48162cd6173c8464d4edff48d13f852efa499eb88ddc7744be5511d766abfb07e70b64c22722f0024adcb18a516bc63d5109e65f4accd58 WHIRLPOOL 8b49f9e71178d5d3dbb48df7c2d659ef723a57d226360cc4878f2c6d105c67a0315e34dafeee7b99df482be2a2b1114914a4f2a4841b5faf83748d5826869d11
-MISC ChangeLog 24304 SHA256 fb631fd116d73361001cc9fbe53ef88f72afba7263e8577fc6c85091f3b91f0b SHA512 121e3658a64d772d8afacb04b9d8162aa6d3f0b1e79d8ae765b807deb1306f673c6a01f5a7ad1e5c02ea4f9c549c07503d59851f7a5ee780e8b0a50ae07268da WHIRLPOOL 2dad2af3dc54f51f3cadeed29d998b3321cedf4ef1e277b875cbbfb791fb0f58c5b973f15b9fac9146da2ccf649613c20ebffc6bbacd9c714a4b403bacb90b60
+MISC ChangeLog 24476 SHA256 110225d00e92454b4fa7f54656802930e7e63e23ac0f6fb7ab7ccf5d82df4fb2 SHA512 21361058e8da7dd230b5bcf33698b8edf9730dd264b43ffc9113ecad558a81bf0350effebda72cf46545e8d4846e3c5cb7359198511ad7b75947addca3fe3f4c WHIRLPOOL 1b19785b9440d53cb146f108cc6da008f1b72a3a653ccb8fa23c348c303b76a0e58db04515dd3cf7404192f0eddd63e04a51b42163dc1ffdae9a7fb361dacde6
MISC metadata.xml 1292 SHA256 b4bdcfd7ab17ae024dcd8c22acab27dd02fbb6232fad9f9f2e266bed316b726e SHA512 c6f18ed33a662a22c8ea24342ab604cbf63009360f6f7ca25560f64876fa5fc81b21f6791fb0f3b7e9205171577334b00e8d81d05953dfd3b02e7304f504424e WHIRLPOOL 29c8024561257c0f36af0a107d891358039ae4631f3218527b30b490abe8cb409e91112945c4ff371cecbf43978b0946d64d873a5a914d025093b4e407ac5687
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2
-iQIcBAEBCAAGBQJT6biVAAoJEPGu1DbS6WIADpoQAI7Z6jAhGa4jdacX6x89FaRX
-Y9F1fYJmJenxj4LcGd0rVm0YFlyVQbNjJsp1IjAFgog1kkIv/4rtsyZ+KWGiyL3s
-enim+JksrFPVuRfQdrmOetsQVK8eM8uUPuB/1xxxelQpxcP0pTe07/BMi63N8j9u
-AIIhRHn2sEKS/JHdei1l+Dd2gauEg0JS9/g/PGNvEZTVhUxkZltG+ukNEXKrzQjd
-Mu7Ns4XgmSMd8c9xoD0l8Y4PH/HoUeEcysM+JKMls0cOOL+LeeeGMQOdqAVgFVb7
-wgleCJmi4+e9Gzt+BmodF3+beQ2DZvW2v+a2SdqpE3L1ApTy81JJ/HPL3C2xheYh
-ah1owEZIUizpLkrIicuxE4k2uuXjyPUHYOtri1qSVexag2aiF1RjjIPeM93t5fQY
-yF6iy8C7xMvy/4M8cuEoL06x727O7TGydz/BPaCuCVFWq+CntdGjcJ3Ws83w1msz
-KkbvWTahWyIqk02yC5k0rkxzcH3+DPwQTxfF+z9O0gEN1HIuDLYkaYBJ8x7UDWcH
-5cXbcLfKFoPGpGhZOatu5ySUie3ZRPt1vbk4vExwG+ij5MW+XacfeP2evl2O+ywP
-ELVc7aQMerkRBPh9RY7z7gCQzj7ocMCX0PJVL0zCa9Rym73j4XvcvgIw5/n8VkGR
-AqVaq4Jk2AN6UXgwHy3K
-=SH52
+iQIcBAEBCAAGBQJURbP2AAoJEJOE+m71LUu6JR8P/iNPZjiz3CVle7ie72XGNc2l
+YXYHGJOzIdqudkbvyeUv46yyPj7qdgf5G68vRiJgxObZ0SoMcn39nJLRy7sX2ZxO
+qb2Z4XtK0Xw+0hl7IHXPhidXAxi13AQypta7f/QngSFbAXmGHFOGaIb5Lmmbl2Qe
+bEYUuOi70a4z4sdwrgnxSqWWGB+y+WZ6JLZ7Lq6tC6dJ+lgNDmzKmZzABqlpI24k
+9Wh9dsA1pCR2IHMYFxjKOEePXb+3W2Lowfg0+I7wXTVC6kkH2XOIKl3oNcp9TA5+
+RALhHCxdSuEiCLiWYVo94UU/7q0ekhPuPig0dQ7YfbKqGVtG4VhHtsmIJfyrvpFa
+ohifTOUj4wLnpVKOB9mtYw/L2FJlGOTo3Jqff3dInI7EBt5hQVmWWO02HySvewo6
+DF6JCXHJ+kLf2m+kXYt8ypRJj7lyoS/YImzbhC2xXqGfeXJ0X8kyZTN6mI224xZ2
+pZRNWbSvGY4VjjLJ82Tj86kLm+Tty+byUKYxWgfag3+to1DPgdBzrGNUj21/4gPQ
+GgdQmAz/J3TO4/Q+sfEw199HgwApoZ5w4D8inp9YoSGYXxmymNQMQHxLyTG7D1Bz
+1x31imDjl41ER3WCA7vTC6hM5vn31btLQ6mjJ8VzZ6pgKQwTUxYZNg5wdHcqT7mh
+Ckrt/lo+BBfafw7ZaoK0
+=EnfZ
-----END PGP SIGNATURE-----
diff --git a/sys-libs/uclibc/uclibc-0.9.33.9999.ebuild b/sys-libs/uclibc/uclibc-0.9.33.9999.ebuild
new file mode 100644
index 000000000000..da87b62d23c3
--- /dev/null
+++ b/sys-libs/uclibc/uclibc-0.9.33.9999.ebuild
@@ -0,0 +1,349 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/sys-libs/uclibc/uclibc-0.9.33.9999.ebuild,v 1.1 2014/10/21 01:15:17 blueness Exp $
+
+inherit eutils flag-o-matic multilib toolchain-funcs savedconfig
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_BRANCH="0.9.33"
+ EGIT_REPO_URI="git://git.busybox.net/uClibc"
+ inherit git-2
+fi
+
+export CBUILD=${CBUILD:-${CHOST}}
+export CTARGET=${CTARGET:-${CHOST}}
+if [[ ${CTARGET} == ${CHOST} ]] ; then
+ if [[ ${CATEGORY/cross-} != ${CATEGORY} ]] ; then
+ export CTARGET=${CATEGORY/cross-}
+ fi
+fi
+
+MY_P=uClibc-${PV}
+DESCRIPTION="C library for developing embedded Linux systems"
+HOMEPAGE="http://www.uclibc.org/"
+if [[ ${PV} != *9999 ]] ; then
+ PATCH_VER=""
+ SRC_URI="http://uclibc.org/downloads/${MY_P}.tar.bz2
+ ${PATCH_VER:+mirror://gentoo/${MY_P}-patches-${PATCH_VER}.tar.bz2}"
+ KEYWORDS="-* ~amd64 ~arm ~m68k ~mips ~ppc ~sh ~sparc ~x86"
+fi
+
+LICENSE="LGPL-2"
+SLOT="0"
+IUSE="debug hardened iconv ipv6 nptl rpc ssp uclibc-compat wordexp crosscompile_opts_headers-only"
+RESTRICT="strip"
+
+S=${WORKDIR}/${MY_P}
+
+is_crosscompile() {
+ [[ ${CHOST} != ${CTARGET} ]]
+}
+alt_build_kprefix() {
+ if [[ ${CBUILD} == ${CHOST} && ${CTARGET} == ${CHOST} ]] ; then
+ echo /usr/include
+ else
+ echo /usr/${CTARGET}/usr/include
+ fi
+}
+
+just_headers() {
+ use crosscompile_opts_headers-only && is_crosscompile
+}
+
+uclibc_endian() {
+ # XXX: this wont work for a toolchain which is bi-endian, but we
+ # dont have any such thing at the moment, so not a big deal
+ touch "${T}"/endian.s
+ $(tc-getAS ${CTARGET}) "${T}"/endian.s -o "${T}"/endian.o
+ case $(file "${T}"/endian.o) in
+ *" MSB "*) echo "BIG";;
+ *" LSB "*) echo "LITTLE";;
+ *) echo "NFC";;
+ esac
+ rm -f "${T}"/endian.{s,o}
+}
+
+pkg_setup() {
+ if [ ${CTARGET} = ${CHOST} ] ; then
+ case ${CHOST} in
+ *-uclinux*|*-uclibc*) ;;
+ *) die "Use sys-devel/crossdev to build a uclibc toolchain" ;;
+ esac
+ fi
+}
+
+check_cpu_opts() {
+ case ${CTARGET} in
+ # Need to handle $ABI here w/mips.
+ mips[1234]*) export UCLIBC_CPU="MIPS_ISA_${CTARGET:4:1}";;
+ sh[2345]*) export UCLIBC_CPU="SH${CTARGET:2:1}";;
+ i[3456]86*) export UCLIBC_CPU="${CTARGET:1:1}86";;
+ # XXX: Should figure out how to handle sparc.
+ esac
+
+ if use nptl ; then
+ case ${CTARGET} in
+ i386*)
+ die "Your target has no support for NPTL"
+ ;;
+ esac
+ fi
+}
+
+kconfig_q_opt() {
+ local flag=$1; shift
+ case ${flag} in
+ y|n) ;;
+ *) flag=$(usex ${flag} y n) ;;
+ esac
+
+ local var="defs_${flag}"
+ eval "${var}+=( $* )"
+}
+
+get_opt() {
+ (
+ unset ${1}
+ . ${2:-"${S}"/.config}
+ echo ${!1}
+ )
+}
+
+src_oldconfig() {
+ yes "" 2>/dev/null | emake -s oldconfig >/dev/null
+}
+src_config() {
+ restore_config .config
+ if [ -f .config ]; then
+ src_oldconfig
+ return 0
+ else
+ ewarn "Could not locate user configfile, so we will save a default one"
+ fi
+
+ emake ARCH=${target} defconfig >/dev/null || die
+
+ local defs_{y,n} defs
+
+ defs=(
+ DO{DEBUG_PT,ASSERTS}
+ SUPPORT_LD_DEBUG_EARLY
+ UCLIBC_HAS_PROFILING
+ )
+ kconfig_q_opt n "${defs[@]}"
+ kconfig_q_opt debug DODEBUG SUPPORT_LD_DEBUG
+
+ sed -i -e '/ARCH_.*_ENDIAN/d' .config
+ kconfig_q_opt y "ARCH_WANTS_$(uclibc_endian)_ENDIAN"
+
+ if [[ ${CTARGET} == arm* ]] ; then
+ kconfig_q_opt n CONFIG_ARM_OABI
+ kconfig_q_opt y CONFIG_ARM_EABI
+ fi
+
+ defs=(
+ MALLOC_GLIBC_COMPAT
+ DO_C99_MATH
+ UCLIBC_HAS_{CTYPE_CHECKED,WCHAR,HEXADECIMAL_FLOATS,GLIBC_CUSTOM_PRINTF,FOPEN_EXCLUSIVE_MODE,GLIBC_CUSTOM_STREAMS,PRINTF_M_SPEC}
+ UCLIBC_HAS_FENV
+ UCLIBC_HAS_{N,}FTW
+ UCLIBC_HAS_GNU_GLOB
+ UCLIBC_HAS_LIBUTIL
+ UCLIBC_HAS_PROGRAM_INVOCATION_NAME
+ UCLIBC_HAS_RESOLVER_SUPPORT
+ UCLIBC_HAS_TZ_FILE_READ_MANY
+ UCLIBC_HAS_UTMPX
+ UCLIBC_SUPPORT_AI_ADDRCONFIG
+ UCLIBC_SUSV3_LEGACY
+ UCLIBC_SUSV3_LEGACY_MACROS
+ UCLIBC_SUSV4_LEGACY
+ UCLIBC_USE_NETLINK
+ PTHREADS_DEBUG_SUPPORT
+ )
+ kconfig_q_opt y "${defs[@]}"
+ kconfig_q_opt n UCLIBC_HAS_CTYPE_UNSAFE
+ kconfig_q_opt n UCLIBC_HAS_LOCALE
+ kconfig_q_opt n HAS_NO_THREADS
+ kconfig_q_opt ipv6 UCLIBC_HAS_IPV6
+ kconfig_q_opt nptl UCLIBC_HAS_THREADS_NATIVE
+ kconfig_q_opt !nptl LINUXTHREADS_OLD
+ kconfig_q_opt rpc UCLIBC_HAS_{,{FULL,REENTRANT}_}RPC
+ kconfig_q_opt wordexp UCLIBC_HAS_WORDEXP
+ kconfig_q_opt uclibc-compat UCLIBC_HAS_LIB{NSL,RESOLV}_STUB COMPAT_ATEXIT
+
+ # we need to do it independently of hardened to get ssp.c built into libc
+ kconfig_q_opt y UCLIBC_HAS_SSP
+ kconfig_q_opt n UCLIBC_HAS_SSP_COMPAT
+ kconfig_q_opt y UCLIBC_HAS_ARC4RANDOM
+ kconfig_q_opt n PROPOLICE_BLOCK_ABRT
+ kconfig_q_opt y PROPOLICE_BLOCK_SEGV
+
+ # arm/mips do not emit PT_GNU_STACK, but if we enable this here
+ # it will be emitted as RWE, ppc has to be checked, x86 needs it
+ # this option should be used independently of hardened
+ if has $(tc-arch) x86 || has $(tc-arch) ppc ; then
+ kconfig_q_opt y UCLIBC_BUILD_NOEXECSTACK
+ else
+ kconfig_q_opt n UCLIBC_BUILD_NOEXECSTACK
+ fi
+ kconfig_q_opt y UCLIBC_BUILD_RELRO
+ kconfig_q_opt hardened UCLIBC_BUILD_PIE
+ kconfig_q_opt hardened UCLIBC_BUILD_NOW
+ kconfig_q_opt !ssp SSP_QUICK_CANARY
+ kconfig_q_opt ssp UCLIBC_BUILD_SSP
+
+ local def
+ for def in 1 2 ; do
+ # Run twice as some config opts depend on others being enabled first.
+ for def in ${defs_y[@]} ; do
+ sed -i -e "s:.*\<${def}\>.*set:${def}=y:g" .config
+ done
+ for def in ${defs_n[@]} ; do
+ sed -i -e "s:${def}=y:# ${def} is not set:g" .config
+ done
+ src_oldconfig
+ done
+
+ einfo "Enabled options:"
+ for def in ${defs_y[@]} ; do
+ einfo " " $(grep "^${def}=y" .config || echo "could not find ${def}")
+ done
+ einfo "Disabled options:"
+ for def in ${defs_n[@]} ; do
+ einfo " " $(grep "^# ${def} is not set" .config || echo "could not find ${def}")
+ done
+
+ # setup build and run paths
+ sed -i \
+ -e "/^CROSS_COMPILER_PREFIX/s:=.*:=\"${CTARGET}-\":" \
+ -e "/^KERNEL_HEADERS/s:=.*:=\"$(alt_build_kprefix)\":" \
+ -e "/^SHARED_LIB_LOADER_PREFIX/s:=.*:=\"/$(get_libdir)\":" \
+ -e "/^DEVEL_PREFIX/s:=.*:=\"/usr\":" \
+ -e "/^RUNTIME_PREFIX/s:=.*:=\"/\":" \
+ -e "/^UCLIBC_EXTRA_CFLAGS/s:=.*:=\"${UCLIBC_EXTRA_CFLAGS}\":" \
+ .config || die
+
+ src_oldconfig
+}
+
+src_unpack() {
+ if [[ ${PV} == *9999 ]] ; then
+ git-2_src_unpack
+ else
+ unpack ${A}
+ fi
+ cd "${S}"
+ if [[ -n ${PATCH_VER} ]] ; then
+ EPATCH_SUFFIX="patch" epatch "${WORKDIR}"/patch
+ fi
+
+ epatch_user
+
+ check_cpu_opts
+
+ echo
+ einfo "Runtime Prefix: /"
+ einfo "Devel Prefix: /usr"
+ einfo "Kernel Prefix: $(alt_build_kprefix)"
+ einfo "CBUILD: ${CBUILD}"
+ einfo "CHOST: ${CHOST}"
+ einfo "CTARGET: ${CTARGET}"
+ einfo "CPU: ${UCLIBC_CPU:-default}"
+ einfo "ENDIAN: $(uclibc_endian)"
+ echo
+
+ ########## CPU SELECTION ##########
+
+ local target=$(tc-arch) config_target
+ case ${target} in
+ amd64) target="x86_64";;
+ arm) target="arm"; config_target="GENERIC_ARM";;
+ avr) target="avr32";;
+ mips) target="mips"; config_target="MIPS_ISA_1";;
+ ppc) target="powerpc";;
+ sh) target="sh"; config_target="SH4";;
+ x86) target="i386"; config_target="486";;
+ esac
+ if [[ -n ${config_target} ]] ; then
+ sed -i -e "s:default CONFIG_${config_target}:default CONFIG_${UCLIBC_CPU:-${config_target}}:" \
+ extra/Configs/Config.${target} || die
+ fi
+ sed -i -e "s:^HOSTCC.*=.*:HOSTCC=$(tc-getBUILD_CC):" Rules.mak
+
+ src_config
+
+ if use iconv ; then
+ # Run after make clean, otherwise files removed
+ find ./extra/locale/charmaps -name "*.pairs" > extra/locale/codesets.txt
+ if [[ ! -f /etc/locale.gen ]] ; then
+ # See ./extra/locale/LOCALES for examples
+ die "Please create an appropriate /etc/locale.gen for locale support"
+ fi
+ echo -e "@euro e\n@cyrillic c\n#---\nUTF-8 yes\n8-BIT yes\n#---\n\n" > ./extra/locale/locales.txt
+ cat /etc/locale.gen >> ./extra/locale/locales.txt
+ fi
+}
+
+src_compile() {
+ emake headers || die
+ just_headers && return 0
+
+ emake || die
+ if is_crosscompile ; then
+ emake -C utils hostutils || die
+ else
+ emake utils || die
+ fi
+}
+
+src_test() {
+ is_crosscompile && return 0
+
+ # assert test fails on pax/grsec enabled kernels - normal
+ # vfork test fails in sandbox (both glibc/uclibc)
+ emake UCLIBC_ONLY=1 check || die
+}
+
+src_install() {
+ local sysroot=${D}
+ is_crosscompile && sysroot+="/usr/${CTARGET}"
+
+ local target="install"
+ just_headers && target="install_headers"
+ emake DESTDIR="${sysroot}" ${target} || die
+
+ save_config .config
+
+ # remove files coming from kernel-headers
+ rm -rf "${sysroot}"/usr/include/{linux,asm*}
+
+ # Make sure we install the sys-include symlink so that when
+ # we build a 2nd stage cross-compiler, gcc finds the target
+ # system headers correctly. See gcc/doc/gccinstall.info
+ if is_crosscompile ; then
+ dosym usr/include /usr/${CTARGET}/sys-include
+ if ! just_headers && [[ -n $(get_opt HAVE_SHARED) ]] ; then
+ newbin utils/ldconfig.host ${CTARGET}-ldconfig || die
+ newbin utils/ldd.host ${CTARGET}-ldd || die
+ fi
+ return 0
+ fi
+
+ emake DESTDIR="${D}" install_utils || die
+ dobin extra/scripts/getent
+ dodoc Changelog* README TODO docs/*.txt DEDICATION.mjn3
+}
+
+pkg_postinst() {
+ is_crosscompile && return 0
+
+ if [ ! -e "${ROOT}"/etc/TZ ] ; then
+ ewarn "Please remember to set your timezone in /etc/TZ"
+ mkdir -p "${ROOT}"/etc
+ echo "UTC" > "${ROOT}"/etc/TZ
+ fi
+ [ "${ROOT}" != "/" ] && return 0
+ # update cache before reloading init
+ ldconfig
+ # reload init ...
+ /sbin/telinit U 2>/dev/null
+}