glibc: apply CoreOS tweaks to 2.19

This commit is contained in:
Michael Marineau 2015-01-28 15:58:26 -08:00
parent ccc27e9b15
commit 0dcdd4b2dd

View File

@ -157,6 +157,9 @@ eblit-src_unpack-pre() {
} }
eblit-src_unpack-post() { eblit-src_unpack-post() {
cd "${WORKDIR}"
epatch "${FILESDIR}"/locale-default-en_US.patch
if use hardened ; then if use hardened ; then
cd "${S}" cd "${S}"
einfo "Patching to get working PIE binaries on PIE (hardened) platforms" einfo "Patching to get working PIE binaries on PIE (hardened) platforms"
@ -207,3 +210,10 @@ eblit-pkg_preinst-post() {
fi fi
fi fi
} }
# CoreOS tweaks:
# - drop host.conf and gai.conf
# - nsswitch.conf and rpc are provided by baselayout
eblit-src_install-post() {
rm -f "${D}"/etc/{gai.conf,host.conf,nsswitch.conf,rpc} || die
}