mirror of
https://git.yoctoproject.org/poky
synced 2026-03-19 13:49:41 +01:00
Depending on the host gcc version, libdnf fails to compile due to missing cstdint inclusions. These issue have already been addressed upstream, add the patches to resolve this for older versions of the library. These commits are taken directly from the libdnf project at https://github.com/rpm-software-management/libdnf (From OE-Core rev: e1d9bc1f88bd989bafc20063938d7a70e1da104f) Signed-off-by: Abe Kohandel <abe.kohandel@gmail.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
34 lines
1.2 KiB
Diff
34 lines
1.2 KiB
Diff
From f8af6399c4f6a65a35d33ecc191bb14094dc9e18 Mon Sep 17 00:00:00 2001
|
|
From: Sergei Trofimovich <slyich@gmail.com>
|
|
Date: Fri, 27 May 2022 22:13:48 +0100
|
|
Subject: [PATCH] libdnf/conf/OptionNumber.hpp: add missing <cstdint> include
|
|
|
|
Without the change libdnf build fails on this week's gcc-13 snapshot as:
|
|
|
|
In file included from /build/libdnf/libdnf/conf/ConfigMain.hpp:29,
|
|
from /build/libdnf/libdnf/conf/ConfigMain.cpp:21:
|
|
/build/libdnf/libdnf/conf/OptionNumber.hpp:94:41: error: 'int32_t' is not a member of 'std'; did you mean 'int32_t'?
|
|
94 | extern template class OptionNumber<std::int32_t>;
|
|
| ^~~~~~~
|
|
|
|
Upstream-Status: Backport [https://github.com/rpm-software-management/libdnf/commit/f8af6399c4f6a65a35d33ecc191bb14094dc9e18]
|
|
---
|
|
libdnf/conf/OptionNumber.hpp | 1 +
|
|
1 file changed, 1 insertion(+)
|
|
|
|
diff --git a/libdnf/conf/OptionNumber.hpp b/libdnf/conf/OptionNumber.hpp
|
|
index f7a7b3d6..a3a4dea6 100644
|
|
--- a/libdnf/conf/OptionNumber.hpp
|
|
+++ b/libdnf/conf/OptionNumber.hpp
|
|
@@ -25,6 +25,7 @@
|
|
|
|
#include "Option.hpp"
|
|
|
|
+#include <cstdint>
|
|
#include <functional>
|
|
|
|
namespace libdnf {
|
|
--
|
|
2.42.0
|
|
|