Skip to content

[sonic-frr] Improve the command to generate dependent files for frr s… #13298

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

CharlieChenEC
Copy link
Contributor

…ubmodule in frr.dep

Why I did it

In frr.dep, it lists the dependent files for the submodules through
'git ls-files' and filter the symbolic links through 'grep' with
explicitly patterns. The patterns might need to be adjusted upon
each frr version upgrade.

How I did it

The dependent files can be found by using 'find' to list all of the
'file' under the 'frr' submodule directory and pass the file to
'git ls-files' to know whether the file is included in the git
control.

How to verify it

Compare the file 'frr_8.2.2-sonic-0_amd64.deb.smdep' before and after the change and make sure the file contains the correct list, which should include all of the files and symbolic links to file under the 'frr' submodule directory.

Which release branch to backport (provide reason below if selected)

  • 201811
  • 201911
  • 202006
  • 202012
  • 202106
  • 202111
  • 202205
  • 202211

Description for the changelog

Improve the command to generate dependent files for frr submodule in frr.dep

Ensure to add label/tag for the feature raised. example - PR#2174 under sonic-utilities repo. where, Generic Config and Update feature has been labelled as GCU.

Link to config_db schema for YANG module changes

A picture of a cute animal (not mandatory but encouraged)

…ubmodule in frr.dep

Issue Description
  In frr.dep, it lists the dependent files for the submodules through
  'git ls-files' and filter the symbolic links through 'grep' with
  explicitly patterns. The patterns might need to be adjusted upon
  each frr version upgrade.

Enhancement
  The dependent files can be found by using 'find' to list all of the
  'file' under the 'frr' submodule directory and pass the file to
  'git ls-files' to know whether the file is included in the git
  control.

Signed-off-by: Charlie Chen <[email protected]>
@linux-foundation-easycla
Copy link

linux-foundation-easycla bot commented Jan 7, 2023

CLA Signed

The committers listed above are authorized under a signed CLA.

# Use find to search the type 'symbolic to file' with git ls-files under FRR_SPATH
# to enumerate those managed by git
SMDEP_FILES += $(addprefix $(FRR_SPATH)/,$(shell cd $(FRR_SPATH) && \
find . -xtype f -exec test -h '''{}''' ';' -exec git ls-files '''{}''' ';' \
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

what files we filtered out? all symbol links?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants