From 9d5ca72b8bc18f1d8390472e76056786984ed00e Mon Sep 17 00:00:00 2001 From: Stepan Blyshchak <38952541+stepanblyschak@users.noreply.github.com> Date: Sat, 25 Jun 2022 20:24:31 +0300 Subject: [PATCH] [sairedis] fix incorrect package specified in sairedis rules (#11227) #### Why I did it Fix the build with updated sairedis #### How I did it Specify nopython2 for syncd and fixed a copy paste mistake for libsairedis #### How to verify it Run build with updated sairedis --- rules/sairedis.mk | 2 +- rules/syncd.mk | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/rules/sairedis.mk b/rules/sairedis.mk index fe77c98b86..baa32493b3 100644 --- a/rules/sairedis.mk +++ b/rules/sairedis.mk @@ -46,7 +46,7 @@ $(LIBSAIMETADATA_DBG)_RDEPENDS += $(LIBSAIMETADATA) $(eval $(call add_derived_package,$(LIBSAIREDIS),$(LIBSAIMETADATA_DBG))) ifeq ($(ENABLE_PY2_MODULES), n) - $(LIBSWSSCOMMON)_BUILD_ENV += DEB_BUILD_PROFILES=nopython2 + $(LIBSAIREDIS)_BUILD_ENV += DEB_BUILD_PROFILES=nopython2 endif # The .c, .cpp, .h & .hpp files under src/{$DBG_SRC_ARCHIVE list} diff --git a/rules/syncd.mk b/rules/syncd.mk index 2b7007d84d..225f7ec057 100644 --- a/rules/syncd.mk +++ b/rules/syncd.mk @@ -33,4 +33,8 @@ $(SYNCD_RPC_DBG)_RDEPENDS += $(SYNCD_RPC) $(eval $(call add_derived_package,$(SYNCD),$(SYNCD_RPC_DBG))) endif +ifeq ($(ENABLE_PY2_MODULES), n) + $(SYNCD)_BUILD_ENV += DEB_BUILD_PROFILES=nopython2 +endif + endif