Skip to content

Commit 5bb41db

Browse files
committed
fix for mqtt common dependency package build on bullseye
Signed-off-by: Praveen Garg <[email protected]>
1 parent bdcd6f3 commit 5bb41db

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

others/make_deb

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -127,14 +127,23 @@ if [[ ${branch_name} = "main" ]] || [[ ${branch_name} =~ ^[0-9]+\.[0-9]+\.[0-9]+
127127
# Debian file structure
128128
mkdir -p usr/local/lib
129129
if [ "${ADDITIONAL_LIB_NAME}" == "mqtt" ]; then
130-
cp -R --preserve=links /usr/local/lib/libpaho* usr/local/lib
130+
# For Raspperry Pi OS Bullseye
131+
if [[ ${os_name} == *"Raspbian"* && ${os_version} == *"11"* ]]; then
132+
if [[ ${architecture} == *"armv7l"* ]]; then
133+
cp -R --preserve=links /usr/local/lib/arm-linux-gnueabihf/libpaho* usr/local/lib
134+
else # aarch64
135+
cp -R --preserve=links /usr/local/lib/aarch64-linux-gnu/libpaho* usr/local/lib
136+
fi
137+
else
138+
cp -R --preserve=links /usr/local/lib/libpaho* usr/local/lib
139+
fi
131140
fi
132141
if [ "${ADDITIONAL_LIB_NAME}" == "gcp" ]; then
133142
cp -R --preserve=links /usr/local/lib/libjwt* usr/local/lib
134143
cp -R --preserve=links /usr/local/lib/libjansson* usr/local/lib
135144
fi
136145
if [ "${ADDITIONAL_LIB_NAME}" == "iec" ]; then
137-
# For Raspbian bullseye
146+
# For Raspperry Pi OS Bullseye
138147
if [[ ${os_name} == *"Raspbian"* && ${os_version} == *"11"* ]]; then
139148
cp -R --preserve=links /usr/local/lib/arm-linux-gnueabihf/libiec61850* usr/local/lib
140149
else

0 commit comments

Comments
 (0)