mirror of
https://github.com/LibreELEC/LibreELEC.tv.git
synced 2025-07-28 13:16:41 +00:00
glibc: install localedef because the installer needs it
Looks like I cocked this up first with #1616 and then #1686.
This commit is contained in:
parent
ab60ac71fc
commit
d6626b2f48
@ -101,13 +101,21 @@ libc_cv_ssp_strong=no
|
|||||||
libc_cv_slibdir=/usr/lib
|
libc_cv_slibdir=/usr/lib
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "libdir=/usr/lib" >> configparms
|
cat >configparms <<EOF
|
||||||
echo "slibdir=/usr/lib" >> configparms
|
libdir=/usr/lib
|
||||||
echo "sbindir=/usr/bin" >> configparms
|
slibdir=/usr/lib
|
||||||
echo "rootsbindir=/usr/bin" >> configparms
|
sbindir=/usr/bin
|
||||||
echo "build-programs=yes" >> configparms
|
rootsbindir=/usr/bin
|
||||||
|
build-programs=yes
|
||||||
|
EOF
|
||||||
|
|
||||||
|
# binaries to install into target
|
||||||
GLIBC_INCLUDE_BIN="getent ldd locale"
|
GLIBC_INCLUDE_BIN="getent ldd locale"
|
||||||
|
|
||||||
|
# Generic "installer" needs localedef to define drawing chars
|
||||||
|
if [ "$PROJECT" = "Generic" ]; then
|
||||||
|
GLIBC_INCLUDE_BIN+=" localedef"
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
post_makeinstall_target() {
|
post_makeinstall_target() {
|
||||||
@ -117,14 +125,7 @@ post_makeinstall_target() {
|
|||||||
# cleanup
|
# cleanup
|
||||||
# remove any programs we don't want/need, keeping only those we want
|
# remove any programs we don't want/need, keeping only those we want
|
||||||
for f in $(find $INSTALL/usr/bin -type f); do
|
for f in $(find $INSTALL/usr/bin -type f); do
|
||||||
fb="$(basename "${f}")"
|
listcontains "${GLIBC_INCLUDE_BIN}" "$(basename "${f}")" || rm -fr "${f}"
|
||||||
for ib in $GLIBC_INCLUDE_BIN; do
|
|
||||||
if [ "${ib}" == "${fb}" ]; then
|
|
||||||
fb=
|
|
||||||
break
|
|
||||||
fi
|
|
||||||
done
|
|
||||||
[ -n "${fb}" ] && rm -rf ${f}
|
|
||||||
done
|
done
|
||||||
|
|
||||||
rm -rf $INSTALL/usr/lib/audit
|
rm -rf $INSTALL/usr/lib/audit
|
||||||
|
Loading…
x
Reference in New Issue
Block a user