mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 10:27:00 +02:00
fix(sys-libs/glibc): Fix cross compile builds
Cross compile builds don't include nsswitch.conf
This commit is contained in:
parent
aa0cd52fb8
commit
0b8060ef70
@ -213,15 +213,19 @@ eblit-pkg_preinst-post() {
|
|||||||
# These are moving to baselayout+usrfiles and glibc shouldn't conflict
|
# These are moving to baselayout+usrfiles and glibc shouldn't conflict
|
||||||
eblit-src_install-post() {
|
eblit-src_install-post() {
|
||||||
dodir /usr/share/glibc
|
dodir /usr/share/glibc
|
||||||
mv "${D}"/etc/{nsswitch.conf,rpc} "${D}"/usr/share/glibc || die
|
local move
|
||||||
rm "${D}"/etc/{gai.conf,host.conf} || die
|
for move in nsswitch.conf rpc ; do
|
||||||
|
[ -f "${D}/etc/${move}" ] || continue
|
||||||
|
mv "${D}/etc/${move}" "${D}"/usr/share/glibc || die
|
||||||
|
done
|
||||||
|
rm -f "${D}"/etc/{gai.conf,host.conf} || die
|
||||||
}
|
}
|
||||||
|
|
||||||
eblit-pkg_postinst-post() {
|
eblit-pkg_postinst-post() {
|
||||||
local sym
|
local sym
|
||||||
for sym in nsswitch.conf rpc ; do
|
for sym in nsswitch.conf rpc ; do
|
||||||
if [ ! -f "${ROOT}/etc/${sym}" ]; then
|
[ ! -f "${ROOT}/etc/${sym}" ] || continue
|
||||||
ln -s "../usr/share/glibc/${sym}" "${ROOT}/etc/${sym}" || die
|
[ -f "${ROOT}/usr/share/glibc/${sym}" ] || continue
|
||||||
fi
|
ln -sf "../usr/share/glibc/${sym}" "${ROOT}/etc/${sym}" || die
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user