Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit ab4778f0 authored by Robert Nelson's avatar Robert Nelson
Browse files

host: simplify finding libncurses.so on multiarch systems

Reported by, Timothy Middelkoop https://github.com/RobertCNelson/linux-dev/issues/4



Signed-off-by: default avatarRobert Nelson <robertcnelson@gmail.com>
parent 85ad3806
Branches
Tags 4.6-rc6-bone1
No related merge requests found
......@@ -95,6 +95,13 @@ function debian_regs
unset PACKAGE
unset APT
if [ ! $(dpkg -l | grep build-essential | awk '{print $2}') ] ; then
echo "Missing build-essential"
UPACKAGE="build-essential "
DPACKAGE="build-essential "
APT=1
fi
if [ ! $(which mkimage) ];then
echo "Missing uboot-mkimage"
UPACKAGE="u-boot-tools "
......@@ -109,17 +116,13 @@ if [ ! $(which ccache) ];then
APT=1
fi
if [ ! -f /usr/lib/libncurses.so ] ; then
ARCH=$(uname -m)
if [ "-${ARCH}-" == "-i686-" ] ; then
ARCH="i386"
fi
if [ ! -f /usr/lib/${ARCH}-linux-gnu/libncurses.so ] ; then
echo "Missing ncurses"
UPACKAGE+="libncurses5-dev "
DPACKAGE+="libncurses5-dev "
APT=1
fi
#Note: Without dpkg-dev from build-essential, this can be a false positive
MULTIARCHLIB="/usr/lib/`dpkg-architecture -qDEB_HOST_MULTIARCH 2>/dev/null`"
if [ ! -f ${MULTIARCHLIB}/libncurses.so ] ; then
echo "Missing ncurses"
UPACKAGE+="libncurses5-dev "
DPACKAGE+="libncurses5-dev "
APT=1
fi
if [ "${APT}" ];then
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment