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.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user