From 302d3c8f576bbc219327943cc4fd1e7ee97ca2aa Mon Sep 17 00:00:00 2001 From: Stepan Blyshchak <38952541+stepanblyschak@users.noreply.github.com> Date: Sat, 4 Jun 2022 09:43:48 +0300 Subject: [PATCH] [sonic-sairedis] don't try to build python-pysairedis (python2) on bullseye (#10950) To not try to build python2 bindings for sairedis for bullseye. The same solution was done for swss-common package. Releated changes Azure/sonic-sairedis#1050 Signed-off-by: Stepan Blyschak --- rules/sairedis.mk | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rules/sairedis.mk b/rules/sairedis.mk index 1d38a74b1433..fe77c98b86ab 100644 --- a/rules/sairedis.mk +++ b/rules/sairedis.mk @@ -45,6 +45,10 @@ $(LIBSAIMETADATA_DBG)_DEPENDS += $(LIBSAIMETADATA) $(LIBSAIMETADATA_DBG)_RDEPENDS += $(LIBSAIMETADATA) $(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIMETADATA_DBG))) +ifeq ($(ENABLE_PY2_MODULES), n) + $(LIBSWSSCOMMON)_BUILD_ENV += DEB_BUILD_PROFILES=nopython2 +endif + # The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list} # are archived into debug one image to facilitate debugging. #