-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
[FRR]: Use stg instead of patch #3480
Conversation
why this message above? |
This Makefile works for my build machine
|
The latest change will not help for #3407 |
looks like you fixed this issue. is the pr ready to merge? |
@lguohan I've fixed stg issue, but don't 'second rebuild' issue. I've added new patch. Let's wait. But the new patch works for everything on my system |
@@ -4,17 +4,18 @@ SHELL = /bin/bash | |||
|
|||
MAIN_TARGET = $(FRR) | |||
DERIVED_TARGET = $(FRR_PYTHONTOOLS) $(FRR_DBG) $(FRR_SNMP) $(FRR_SNMP_DBG) | |||
BRANCH = $(shell date +%Y%m%d\.%H%M%S) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will checkout a different branch each time FRR is built. Why is this necessary? The stg undo
and git clean -xfdf
should be enough to reset the repo, is it not?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Otherwise I'll get
stg init: work: branch already initialized
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you not just delete the branch during the cleanup?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That doesn't help.
stg creates work.stgit branch and something else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@pavel-shirshov @lguohan Will this fix work with private changes? Will they be preserved? Can you explain how it will work if someone has modified frr code and wants to re-build with the patches as well as their changes?
@nikos-github When I need introduce some changes I'm
|
@pavel-shirshov @lguohan This approach is very limiting and I don't believe it addresses the issue in a generic way. If a developer has changes in frr, they still won't be able to compile. You seem to be suggesting that people should be generating a patch every time they change something, put it into the patchset, change the series, undo or stage their changes so that the checkout can work and then compile? Why are we preferring such an inflexible workflow in comparison to #3483 solution? (cc @ben-gale @sudhanshukumar22 @gpaussabrcm) |
@nikos-github You always can develop in another branch and generate patches for the build system. |
- What I did
- How I did it
- How to verify it
- Description for the changelog
- A picture of a cute animal (not mandatory but encouraged)