Unverified Commit fd05cc68 authored by Philip Taron's avatar Philip Taron
Browse files

srsran: fix build with boost 1.89

Boost 1.89 removed the boost_system stub library. Remove boost_system
references from FindUHD.cmake, the hardcoded .so path, and the
BOOST_REQUIRED_COMPONENTS list.
parent 056b3646
Loading
Loading
Loading
Loading
+11 −0
Original line number Diff line number Diff line
@@ -55,6 +55,17 @@ stdenv.mkDerivation (finalAttrs: {
    zeromq
  ];

  # boost 1.89 removed the boost_system stub library
  postPatch = ''
    substituteInPlace cmake/modules/FindUHD.cmake --replace-fail \
      'set(CMAKE_REQUIRED_LIBRARIES uhd boost_program_options boost_system)' \
      'set(CMAKE_REQUIRED_LIBRARIES uhd boost_program_options)'
    substituteInPlace lib/src/phy/rf/CMakeLists.txt --replace-fail \
      '/usr/lib/x86_64-linux-gnu/libboost_system.so' ""
    substituteInPlace CMakeLists.txt --replace-fail \
      'list(APPEND BOOST_REQUIRED_COMPONENTS "system")' ""
  '';

  cmakeFlags = [
    "-DENABLE_WERROR=OFF"
    (lib.cmakeBool "ENABLE_LTE_RATES" enableLteRates)