Skip to content

Commit bc1d6ec

Browse files
Fix saithrift build issue for Bookworm SONiC (#1974)
saithrift package is getting installed at different location for bookworm. Taking care it using copy_installer.sh script. This change fixes build issue for both saithriftv1 and saithriftv2 Signed-off-by: Keshav Gupta <[email protected]>
1 parent f7389ba commit bc1d6ec

File tree

2 files changed

+16
-4
lines changed

2 files changed

+16
-4
lines changed

debian/copy_installer.sh

+14-4
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,21 @@
11
if [[ x"$1" =~ x"v2" ]]
22
then
3-
echo "Copy python3-saithrift.install as python-saithrift.install"
4-
cp ./debian/installerFiles/python3-saithrift.install ./debian/python-saithrift.install
3+
if [ $(lsb_release -sr) -ge 12 ]
4+
then
5+
echo "Copy python3-saithrift-bookworm.install as python-saithrift.install after Ver.12 releases"
6+
cp ./debian/installerFiles/python3-saithrift-bookworm.install ./debian/python-saithrift.install
7+
else
8+
echo "Copy python3-saithrift.install as python-saithrift.install"
9+
cp ./debian/installerFiles/python3-saithrift.install ./debian/python-saithrift.install
10+
fi
511
else
6-
if [ $(lsb_release -sr) -ge 11 ]
12+
if [ $(lsb_release -sr) -ge 12 ]
13+
then
14+
echo "Copy python3-saithrift-bookworm.install as python-saithrift.install after Ver.12 releases"
15+
cp ./debian/installerFiles/python3-saithrift-bookworm.install ./debian/python-saithrift.install
16+
elif [ $(lsb_release -sr) -eq 11 ]
717
then
8-
echo "Copy python3-saithrift.install as python-saithrift.install after Ver.11 releases"
18+
echo "Copy python3-saithrift.install as python-saithrift.install for Ver.11 releases"
919
cp ./debian/installerFiles/python3-saithrift.install ./debian/python-saithrift.install
1020
else
1121
echo "Copy python2.7-saithrift.install as python-saithrift.install"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#compatiable with bookworm python 3.11 environment and build with python3
2+
debian/usr/local/local/lib/python3*/dist-packages/* /usr/lib/python3/dist-packages/

0 commit comments

Comments
 (0)