Skip to content

Commit f1ce5aa

Browse files
committed
No need for 32bit libs on V5.45+
1 parent 2a7b4ad commit f1ce5aa

File tree

1 file changed

+14
-9
lines changed

1 file changed

+14
-9
lines changed

Diff for: scripts/mplabx/init.bash

+14-9
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,20 @@ apt-get -qq install --yes --no-install-recommends \
3232
xz-utils \
3333
x11-utils &> /dev/null
3434

35-
echo 'Installing 32bit libraries'
36-
dpkg --add-architecture i386
37-
apt-get update &> /dev/null
38-
apt-get -qq install --yes --no-install-recommends \
39-
libc6:i386 \
40-
libx11-6:i386 \
41-
libxext6:i386 \
42-
libstdc++6:i386 \
43-
libexpat1:i386 &> /dev/null
35+
if [ "$MPLABX_VERSION" -ne 0 ];then
36+
V540MINUS=$(bc -l <<< "$MPLABX_VERSION <= 5.40")
37+
if [ "$V540MINUS" -eq 1 ];then
38+
echo 'Installing 32bit libraries'
39+
dpkg --add-architecture i386
40+
apt-get update &> /dev/null
41+
apt-get -qq install --yes --no-install-recommends \
42+
libc6:i386 \
43+
libx11-6:i386 \
44+
libxext6:i386 \
45+
libstdc++6:i386 \
46+
libexpat1:i386 &> /dev/null
47+
fi
48+
fi
4449

4550
V530MINUS=0
4651
if perl -e "if ($MPLABX_VERSION > 0){ exit 0 } else { exit 1 }";then

0 commit comments

Comments
 (0)