-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
DRAFT: Always enable Protobuf in packages and add Protobuf files to distro #18308
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Protobuf is now required for Mgmtd anyway, so we can just build with protobuf support at all times. There is no additional dependency Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Install mgmtd_testc and fpm_listener with the test tools Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Protobuf is now required for Mgmtd anyway, so we can just build with protobuf support at all times. There is no additional dependency Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Make/Make Install needs to install the proto files. We install them into the main /usr/lib/frr directory (or similar as configured). Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
Adding an additional search path for the topotests to look for proto files. This allows topotest to run protobuf tests with an installed package. Signed-off-by: Martin Winter <mwinter@opensourcerouting.org>
--disable-zeromq \ | ||
--enable-ospfapi \ | ||
--enable-bgp-vnc \ | ||
--enable-multipath=256 \ | ||
--enable-pcre2posix \ | ||
\ | ||
--enable-mgmtd-test-be-client \ | ||
--enable-fpm-listener \ |
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.
fpm-listener probably should be it's own commit or spelled out the reason for the inclusion here. Since it is not related to protobuf changes at all.
@@ -96,6 +97,12 @@ override_dh_auto_install: | |||
cp -r tools/etc/* debian/tmp/etc/ | |||
-rm debian/tmp/etc/frr/daemons.conf | |||
|
|||
# install proto files to /usr/lib/frr | |||
#ifneq ($(filter pkg.frr.grpc,$(DEB_BUILD_PROFILES)),) | |||
# cp usr/lib/x86_64-linux-gnu/frr/frr/mgmt.proto debian/tmp/usr/lib/frr/ |
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.
How would this handle arm?
@@ -835,9 +841,19 @@ sed -i 's/ -M rpki//' %{_sysconfdir}/frr/daemons | |||
%endif | |||
|
|||
|
|||
%files test-tools | |||
%{_sbindir}/mgmtd_testc | |||
%{_sbindir}/fpm_listener |
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.
fpm_listener change should be separate or called out in the commit message
Modulus the couple of comments/nits I have this seems pretty reasonable. |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
Opening this as a s draft to get some comments. Personally, I'm not convinced that this is the right way to do it, but can't get an idea for some better solution. Comments are appreciated.
Main feedback initially would be appreciated on what I did (so we can agree there) and I can work on potentially cleaning up the work after we agreed there
The main motivation which started this was to get Topotests working for the protobuf tests with package builds.
Changes done:
Signed-off-by: Martin Winter mwinter@opensourcerouting.org