File tree 1 file changed +5
-0
lines changed
1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change 63
63
'37' : False ,
64
64
'38' : True ,
65
65
'39' : True ,
66
+ '40' : True ,
66
67
},
67
68
'centos' : {
68
69
'7' : False ,
@@ -1199,6 +1200,10 @@ def _install_libyang_cpp_from_sources(ignore_errors = False):
1199
1200
try :
1200
1201
execute ('git clone https://github.com/CESNET/libyang-cpp.git ~/.hammer-tmp/libyang-cpp' )
1201
1202
execute (f'git checkout { version } ' , cwd = '~/.hammer-tmp/libyang-cpp' )
1203
+ # New cpp compiler is more picky about missing headers. (ex. Fedora 40)
1204
+ return_code = execute ('sudo grep "#include <algorithm>" ~/.hammer-tmp/libyang-cpp/src/Context.cpp' , raise_error = False )
1205
+ if return_code == 1 :
1206
+ execute ('sed -i "/#include <libyang\/libyang.h>/a #include <algorithm>" ~/.hammer-tmp/libyang-cpp/src/Context.cpp' )
1202
1207
execute ('mkdir ~/.hammer-tmp/libyang-cpp/build' )
1203
1208
execute ('cmake -DBUILD_TESTING=OFF .. ' , cwd = '~/.hammer-tmp/libyang-cpp/build' )
1204
1209
execute ('make -j $(nproc || gnproc || echo 1)' , cwd = '~/.hammer-tmp/libyang-cpp/build' )
You can’t perform that action at this time.
0 commit comments