Skip to content

community/yaml-cpp: upgrade to 0.8.0 & rebuild revdeps

Celeste requested to merge Celeste/aports:upgrade-yaml-cpp into master

fix-pkgconfig-and-cmake-install-dirs.patch removed as it is upstreamed.

This test is failing on non-x86:

/builds/Celeste/aports/community/yaml-cpp/src/yaml-cpp-0.8.0/test/binary_test.cpp: In member function 'virtual void BinaryTest_DecodingNoCrashOnNegative_Test::TestBody()':
/builds/Celeste/aports/community/yaml-cpp/src/yaml-cpp-0.8.0/test/binary_test.cpp:11:38: error: narrowing conversion of '-58' from 'int' to 'char' [-Wnarrowing]
   11 |   std::string input{-58, -1, -99, 109};
      |                                      ^

On 32-bit ARM, there's this additional warning:

In file included from /usr/include/c++/13.1.1/vector:72,
                 from /builds/Celeste/aports/community/yaml-cpp/src/yaml-cpp-0.8.0/include/yaml-cpp/node/detail/iterator_fwd.h:13,
                 from /builds/Celeste/aports/community/yaml-cpp/src/yaml-cpp-0.8.0/include/yaml-cpp/node/node.h:16,
                 from /builds/Celeste/aports/community/yaml-cpp/src/yaml-cpp-0.8.0/test/node/node_test.cpp:1:
/usr/include/c++/13.1.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::_M_realloc_insert(iterator, _Args&& ...) [with _Args = {testing::Matcher<const char* const&>}; _Tp = testing::Matcher<const char* const&>; _Alloc = std::allocator<testing::Matcher<const char* const&> >]':
/usr/include/c++/13.1.1/bits/vector.tcc:445:7: note: parameter passing for argument of type 'std::vector<testing::Matcher<const char* const&>, std::allocator<testing::Matcher<const char* const&> > >::iterator' changed in GCC 7.1
  445 |       vector<_Tp, _Alloc>::
      |       ^~~~~~~~~~~~~~~~~~~
/usr/include/c++/13.1.1/bits/vector.tcc: In member function 'void std::vector<_Tp, _Alloc>::emplace_back(_Args&& ...) [with _Args = {testing::Matcher<const char* const&>}; _Tp = testing::Matcher<const char* const&>; _Alloc = std::allocator<testing::Matcher<const char* const&> >]':
/usr/include/c++/13.1.1/bits/vector.tcc:123:28: note: parameter passing for argument of type '__gnu_cxx::__normal_iterator<testing::Matcher<const char* const&>*, std::vector<testing::Matcher<const char* const&>, std::allocator<testing::Matcher<const char* const&> > > >' changed in GCC 7.1
  123 |           _M_realloc_insert(end(), std::forward<_Args>(__args)...);
      |           ~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~



Edited by Celeste

Merge request reports

Loading