diff --git a/sdk_container/src/third_party/coreos-overlay/sys-libs/glibc/glibc-2.19-r1.ebuild b/sdk_container/src/third_party/coreos-overlay/sys-libs/glibc/glibc-2.19-r1.ebuild index df31e72091..d93ba66ae2 100644 --- a/sdk_container/src/third_party/coreos-overlay/sys-libs/glibc/glibc-2.19-r1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/sys-libs/glibc/glibc-2.19-r1.ebuild @@ -157,6 +157,9 @@ eblit-src_unpack-pre() { } eblit-src_unpack-post() { + cd "${WORKDIR}" + epatch "${FILESDIR}"/locale-default-en_US.patch + if use hardened ; then cd "${S}" einfo "Patching to get working PIE binaries on PIE (hardened) platforms" @@ -207,3 +210,10 @@ eblit-pkg_preinst-post() { 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 +}