]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
systemtap: Fix build with gcc-12
authorKhem Raj <raj.khem@gmail.com>
Tue, 12 Apr 2022 00:39:17 +0000 (17:39 -0700)
committerSteve Sakoman <steve@sakoman.com>
Thu, 25 Jan 2024 13:58:24 +0000 (03:58 -1000)
commit18ae4fea4bf8681f9138d21124589918e336ff6b
treee752aba017b275648ebb73aee2e6aae3c19e2b2b
parent32e3618891295cec1ee5d4195998aa97f93b2207
systemtap: Fix build with gcc-12

Backport a patch to fix
| ../git/util.cxx:1766:56: error: 'std::pointer_to_unary_function<_Arg, _Result> std::ptr_fun(_Result (*)(_Arg)) [with _Arg = int; _Result = int]' is deprecated: use 'std::function' instea
d [-Werror=deprecated-declarations]
|  1766 |                        std::not1(std::ptr_fun<int, int>(std::isspace))));
|       |                                  ~~~~~~~~~~~~~~~~~~~~~~^~~~~~~~~~~~~~

Signed-off-by: Khem Raj <raj.khem@gmail.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 0b360d12203aafd8bf96433d11221a6ed910a11f)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-kernel/systemtap/systemtap/0001-gcc12-c-compatibility-re-tweak-for-rhel6-use-functio.patch [new file with mode: 0644]
meta/recipes-kernel/systemtap/systemtap_git.bb