From f93e63cc26ebdf501e3f84bd0019f19b98b0bb21 Mon Sep 17 00:00:00 2001 From: Kalimuthu-Velappan <53821802+Kalimuthu-Velappan@users.noreply.github.com> Date: Thu, 3 Dec 2020 16:05:21 +0530 Subject: [PATCH] [frr]: Fix for missing dependency in frr module (#6094) The soinc-frr module has src/sonic-frr/frr submodule. The FRR sub module dependency files are not added to the DPKG file tracking. The patch includes the following. - Included the submodule dependency files - Removes the symbolic files. --- rules/frr.dep | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/rules/frr.dep b/rules/frr.dep index c6bd41aca58a..e263cb8e881e 100644 --- a/rules/frr.dep +++ b/rules/frr.dep @@ -2,9 +2,24 @@ SPATH := $($(FRR)_SRC_PATH) DEP_FILES := $(SONIC_COMMON_FILES_LIST) rules/frr.mk rules/frr.dep DEP_FILES += $(SONIC_COMMON_BASE_FILES_LIST) -SMDEP_FILES := $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files)) +DEP_FILES += $(addprefix $(SPATH)/,$(shell cd $(SPATH) && git ls-files |grep -Ev '^frr$$$$')) + +# Account for source files under the frr submodule directory as well. +# Remove all the symbolic link files +FRR_SPATH := $(SPATH)/frr +SMDEP_FILES := $(addprefix $(FRR_SPATH)/,$(shell cd $(FRR_SPATH) && git ls-files \ + | grep -Ev -e 'debian/changelog$$$$' \ + -e '^tests/topotests/bgp_instance_del_test/ce[0-9]$$$$' \ + -e '^tests/topotests/bgp_instance_del_test/r[0-9]$$$$' \ + -e '^tests/topotests/bgp_instance_del_test/scripts$$$$' \ + -e '^tests/topotests/bgp_instance_del_test/customize.py$$$$' \ + -e '^tests/topotests/bgp_rfapi_basic_sanity_config2/customize.py$$$$' \ + -e '^tests/topotests/bgp_rfapi_basic_sanity_config2/scripts$$$$' \ + -e '^tests/topotests/bgp_rfapi_basic_sanity_config2/test_bgp_rfapi_basic_sanity_config2.py$$$$' \ + )) $(FRR)_CACHE_MODE := GIT_CONTENT_SHA $(FRR)_DEP_FLAGS := $(SONIC_COMMON_FLAGS_LIST) $(FRR)_DEP_FILES := $(DEP_FILES) - +$(FRR)_SMDEP_FILES := $(SMDEP_FILES) +$(FRR)_SMDEP_PATHS := $(FRR_SPATH)