mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-21 06:21:08 +02:00
glibc: apply CoreOS tweaks to 2.19
This commit is contained in:
parent
ccc27e9b15
commit
0dcdd4b2dd
@ -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
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user