[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 |
|
|
||
| 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.
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.
Otherwise I'll get
stg init: work: branch already initialized
There was a problem hiding this comment.
Can you not just delete the branch during the cleanup?
There was a problem hiding this comment.
That doesn't help.
stg creates work.stgit branch and something else.
There was a problem hiding this comment.
@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)