summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorKhem Raj <raj.khem@gmail.com>2019-12-23 14:39:14 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-12-30 08:47:12 +0000
commitc93e95482627a69c383686da3d568c7599f98e54 (patch)
treeb8ec5ea4770bf990de9f2f4bf6779835391dc264 /meta
parent2d4b6820c19a286eab020173e58052b1483c863e (diff)
downloadpoky-c93e95482627a69c383686da3d568c7599f98e54.tar.gz
libdnf: Include mising <stdexcept>
This header is needed for runtime_error element (From OE-Core rev: 856c26f50fe0d11a22aae9adf9bf12edc6ea9e5e) Signed-off-by: Khem Raj <raj.khem@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/recipes-devtools/libdnf/libdnf/0001-include-stdexcept-for-runtime_error.patch65
-rw-r--r--meta/recipes-devtools/libdnf/libdnf_0.28.1.bb1
2 files changed, 66 insertions, 0 deletions
diff --git a/meta/recipes-devtools/libdnf/libdnf/0001-include-stdexcept-for-runtime_error.patch b/meta/recipes-devtools/libdnf/libdnf/0001-include-stdexcept-for-runtime_error.patch
new file mode 100644
index 0000000000..cedf539243
--- /dev/null
+++ b/meta/recipes-devtools/libdnf/libdnf/0001-include-stdexcept-for-runtime_error.patch
@@ -0,0 +1,65 @@
1From 5f8eee5040d7074710cd542fc50f7a40918321fc Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Mon, 23 Dec 2019 14:30:22 -0800
4Subject: [PATCH] include <stdexcept> for runtime_error
5
6Fixes
7
8error: class 'libdnf::ModulePackageContainer::Exception' does not have any field named 'runtime_error'
9 explicit Exception(const std::string &what) : runtime_error(what) {}
10 ^~~~~~~~~~~~~
11
12Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/867]
13Signed-off-by: Khem Raj <raj.khem@gmail.com>
14---
15 libdnf/goal/Goal.hpp | 1 +
16 libdnf/module/ModulePackageContainer.hpp | 1 +
17 libdnf/repo/solvable/Dependency.cpp | 3 ++-
18 3 files changed, 4 insertions(+), 1 deletion(-)
19
20diff --git a/libdnf/goal/Goal.hpp b/libdnf/goal/Goal.hpp
21index f33dfa24..7b8d822c 100644
22--- a/libdnf/goal/Goal.hpp
23+++ b/libdnf/goal/Goal.hpp
24@@ -22,6 +22,7 @@
25 #define __GOAL_HPP
26
27 #include <memory>
28+#include <stdexcept>
29
30 #include "../dnf-types.h"
31 #include "../hy-goal.h"
32diff --git a/libdnf/module/ModulePackageContainer.hpp b/libdnf/module/ModulePackageContainer.hpp
33index 1f815fda..37a8832d 100644
34--- a/libdnf/module/ModulePackageContainer.hpp
35+++ b/libdnf/module/ModulePackageContainer.hpp
36@@ -30,6 +30,7 @@
37 #include <string>
38 #include <vector>
39 #include <set>
40+#include <stdexcept>
41
42 //class ModulePackageContainer;
43 //typedef std::shared_ptr<ModulePackageContainer> ModulePackageContainerPtr;
44diff --git a/libdnf/repo/solvable/Dependency.cpp b/libdnf/repo/solvable/Dependency.cpp
45index 6682b729..0fc8b5cd 100644
46--- a/libdnf/repo/solvable/Dependency.cpp
47+++ b/libdnf/repo/solvable/Dependency.cpp
48@@ -18,6 +18,7 @@
49 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
50 */
51
52+#include <stdexcept>
53 #include "Dependency.hpp"
54 #include "libdnf/utils/utils.hpp"
55 #include "libdnf/repo/DependencySplitter.hpp"
56@@ -106,4 +107,4 @@ Dependency::getReldepId(DnfSack *sack, const char * reldepStr)
57 }
58 }
59
60-}
61\ No newline at end of file
62+}
63--
642.24.1
65
diff --git a/meta/recipes-devtools/libdnf/libdnf_0.28.1.bb b/meta/recipes-devtools/libdnf/libdnf_0.28.1.bb
index 3f11e0231f..882c435b32 100644
--- a/meta/recipes-devtools/libdnf/libdnf_0.28.1.bb
+++ b/meta/recipes-devtools/libdnf/libdnf_0.28.1.bb
@@ -7,6 +7,7 @@ SRC_URI = "git://github.com/rpm-software-management/libdnf \
7 file://0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch \ 7 file://0004-Set-libsolv-variables-with-pkg-config-cmake-s-own-mo.patch \
8 file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \ 8 file://0001-Get-parameters-for-both-libsolv-and-libsolvext-libdn.patch \
9 file://0001-Add-WITH_TESTS-option.patch \ 9 file://0001-Add-WITH_TESTS-option.patch \
10 file://0001-include-stdexcept-for-runtime_error.patch \
10 " 11 "
11 12
12SRCREV = "751f89045b80d58c0d05800f74357cf78cdf7e77" 13SRCREV = "751f89045b80d58c0d05800f74357cf78cdf7e77"