summaryrefslogtreecommitdiffstats
path: root/external/poky/meta/recipes-devtools/libdnf/libdnf/0001-include-stdexcept-for-runtime_error.patch
blob: cedf539243002d0e834284e438114d40cf2107f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
From 5f8eee5040d7074710cd542fc50f7a40918321fc Mon Sep 17 00:00:00 2001
From: Khem Raj <raj.khem@gmail.com>
Date: Mon, 23 Dec 2019 14:30:22 -0800
Subject: [PATCH] include <stdexcept> for runtime_error

Fixes

error: class 'libdnf::ModulePackageContainer::Exception' does not have any field named 'runtime_error'
         explicit Exception(const std::string &what) : runtime_error(what) {}
                                                       ^~~~~~~~~~~~~

Upstream-Status: Submitted [https://github.com/rpm-software-management/libdnf/pull/867]
Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 libdnf/goal/Goal.hpp                     | 1 +
 libdnf/module/ModulePackageContainer.hpp | 1 +
 libdnf/repo/solvable/Dependency.cpp      | 3 ++-
 3 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/libdnf/goal/Goal.hpp b/libdnf/goal/Goal.hpp
index f33dfa24..7b8d822c 100644
--- a/libdnf/goal/Goal.hpp
+++ b/libdnf/goal/Goal.hpp
@@ -22,6 +22,7 @@
 #define __GOAL_HPP
 
 #include <memory>
+#include <stdexcept>
 
 #include "../dnf-types.h"
 #include "../hy-goal.h"
diff --git a/libdnf/module/ModulePackageContainer.hpp b/libdnf/module/ModulePackageContainer.hpp
index 1f815fda..37a8832d 100644
--- a/libdnf/module/ModulePackageContainer.hpp
+++ b/libdnf/module/ModulePackageContainer.hpp
@@ -30,6 +30,7 @@
 #include <string>
 #include <vector>
 #include <set>
+#include <stdexcept>
 
 //class ModulePackageContainer;
 //typedef std::shared_ptr<ModulePackageContainer> ModulePackageContainerPtr;
diff --git a/libdnf/repo/solvable/Dependency.cpp b/libdnf/repo/solvable/Dependency.cpp
index 6682b729..0fc8b5cd 100644
--- a/libdnf/repo/solvable/Dependency.cpp
+++ b/libdnf/repo/solvable/Dependency.cpp
@@ -18,6 +18,7 @@
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
  */
 
+#include <stdexcept>
 #include "Dependency.hpp"
 #include "libdnf/utils/utils.hpp"
 #include "libdnf/repo/DependencySplitter.hpp"
@@ -106,4 +107,4 @@ Dependency::getReldepId(DnfSack *sack, const char * reldepStr)
     }
 }
 
-}
\ No newline at end of file
+}
-- 
2.24.1