@cryptotaxi247 / netdata-1 / commits / 5b8142526

Use bundled protobuf for openSUSE packages. (#17827)

* Use bundled protobuf for openSUSE packages. Since their system copy seems to have major issues. * Force vendored Abseil to be a static build. Without this, we end up with linking issues if there’s an existing copy of Abseil on the system.

Austin S. Hemmelgarn committed Jun 7, 2024 at 03:58 UTC 5b8142526c2449c1120c418a1905734ff2275310
2 files changed +5
netdata.spec.in
+4
@@ -360,8 +360,12 @@ happened, on your systems and applications.
360 -DENABLE_BUNDLED_PROTOBUF=Off \
361 %endif
362 %else
363 + %if 0%{?suse_version:1}
364 + -DENABLE_BUNDLED_PROTOBUF=On \
365 + %else
366 -DENABLE_BUNDLED_PROTOBUF=Off \
367 %endif
368 + %endif
369 %if %{_have_ml}
370 -DENABLE_ML=On \
371 %else
packaging/cmake/Modules/NetdataProtobuf.cmake
+1
@@ -28,6 +28,7 @@ function(netdata_bundle_protobuf)
28 if(NEED_ABSL)
29 set(ABSL_PROPAGATE_CXX_STD On)
30 set(ABSL_ENABLE_INSTALL Off)
31 + set(BUILD_SHARED_LIBS Off)
32
33 message(STATUS "Preparing bundled Abseil (required by bundled Protobuf)")
34 FetchContent_Declare(absl