Skip to content

Commit 78e4008

Browse files
stepanblyschakskbarista
authored andcommitted
[202205][sonic-sairedis] don't try to build python-pysairedis (python2) on bullseye (sonic-net#11308)
This PR is a backport of sonic-net#10950 and a fix for it sonic-net#11227 - Why I did it To not build python2 pysairedis on bullseye - How I did it Cherry-picked above PRs from master - How to verify it Build Signed-off-by: Stepan Blyschak <[email protected]>
1 parent 746a895 commit 78e4008

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

rules/sairedis.mk

+4
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@ $(LIBSAIMETADATA_DBG)_DEPENDS += $(LIBSAIMETADATA)
4545
$(LIBSAIMETADATA_DBG)_RDEPENDS += $(LIBSAIMETADATA)
4646
$(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIMETADATA_DBG)))
4747

48+
ifeq ($(ENABLE_PY2_MODULES), n)
49+
$(LIBSAIREDIS)_BUILD_ENV += DEB_BUILD_PROFILES=nopython2
50+
endif
51+
4852
# The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list}
4953
# are archived into debug one image to facilitate debugging.
5054
#

rules/syncd.mk

+4
Original file line numberDiff line numberDiff line change
@@ -33,4 +33,8 @@ $(SYNCD_RPC_DBG)_RDEPENDS += $(SYNCD_RPC)
3333
$(eval $(call add_derived_package,$(SYNCD),$(SYNCD_RPC_DBG)))
3434
endif
3535

36+
ifeq ($(ENABLE_PY2_MODULES), n)
37+
$(SYNCD)_BUILD_ENV += DEB_BUILD_PROFILES=nopython2
38+
endif
39+
3640
endif

0 commit comments

Comments
 (0)