Codebase list facter / f40fc5b
Convert patch queue to gbp-pq Git-Dch: ignore Apollon Oikonomopoulos 3 years ago
6 changed file(s) with 40 addition(s) and 18 deletion(s). Raw diff Collapse all Expand all
66 cmake/FindCPPHOCON.cmake | 2 +-
77 1 file changed, 1 insertion(+), 1 deletion(-)
88
9 diff --git a/cmake/FindCPPHOCON.cmake b/cmake/FindCPPHOCON.cmake
10 index 00ba8bd..0df0a51 100644
911 --- a/cmake/FindCPPHOCON.cmake
1012 +++ b/cmake/FindCPPHOCON.cmake
1113 @@ -1,5 +1,5 @@
77 lib/facter.rb.in | 12 +-----------
88 1 file changed, 1 insertion(+), 11 deletions(-)
99
10 diff --git a/lib/facter.rb.in b/lib/facter.rb.in
11 index ce55c8e..b820c7a 100644
1012 --- a/lib/facter.rb.in
1113 +++ b/lib/facter.rb.in
12 @@ -31,17 +31,7 @@
14 @@ -31,17 +31,7 @@ module Facter
1315 else
1416 # Simply require libfacter.so; this will define all of the Facter API
1517 begin
99 CMakeLists.txt | 4 +++-
1010 1 file changed, 3 insertions(+), 1 deletion(-)
1111
12 diff --git a/CMakeLists.txt b/CMakeLists.txt
13 index d0c0366..4d27ea0 100644
1214 --- a/CMakeLists.txt
1315 +++ b/CMakeLists.txt
14 @@ -214,7 +214,9 @@
16 @@ -230,7 +230,9 @@ if (RUBY_FOUND)
1517 add_test(NAME "libfacter\\ specs" COMMAND ${BUNDLER_PATH} exec rspec WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}/lib")
1618 endif()
1719 endif()
1515 lib/src/facts/resolvers/gce_resolver.cc | 2 +-
1616 3 files changed, 3 insertions(+), 2 deletions(-)
1717
18 diff --git a/lib/inc/facter/facts/collection.hpp b/lib/inc/facter/facts/collection.hpp
19 index d5da4c1..11c845f 100644
1820 --- a/lib/inc/facter/facts/collection.hpp
1921 +++ b/lib/inc/facter/facts/collection.hpp
20 @@ -46,6 +46,7 @@
22 @@ -48,6 +48,7 @@ namespace facter { namespace facts {
2123 */
2224 struct stream_adapter
2325 {
2527 /**
2628 * Constructs an adapter for use with rapidjson around the given stream.
2729 * @param stream an output stream to which JSON will be written
30 diff --git a/lib/src/facts/external/json_resolver.cc b/lib/src/facts/external/json_resolver.cc
31 index 7fa9f40..db5aebe 100644
2832 --- a/lib/src/facts/external/json_resolver.cc
2933 +++ b/lib/src/facts/external/json_resolver.cc
30 @@ -24,7 +24,7 @@
34 @@ -24,7 +24,7 @@ using namespace rapidjson;
3135 namespace facter { namespace facts { namespace external {
3236
3337 // Helper event handler for parsing JSON data
3640 {
3741 explicit json_event_handler(collection& facts, vector<string>& names) :
3842 _initialized(false),
43 diff --git a/lib/src/facts/resolvers/gce_resolver.cc b/lib/src/facts/resolvers/gce_resolver.cc
44 index e2bf689..85d0fa6 100644
3945 --- a/lib/src/facts/resolvers/gce_resolver.cc
4046 +++ b/lib/src/facts/resolvers/gce_resolver.cc
41 @@ -35,7 +35,7 @@
47 @@ -35,7 +35,7 @@ namespace facter { namespace facts { namespace resolvers {
4248 #endif
4349
4450 // Helper event handler for parsing JSON data
33
44 Closes: #956300
55 ---
6 CMakeLists.txt | 6 +++---
7 1 file changed, 3 insertions(+), 3 deletions(-)
6 CMakeLists.txt | 8 +++-----
7 1 file changed, 3 insertions(+), 5 deletions(-)
88
9 diff --git a/CMakeLists.txt b/CMakeLists.txt
10 index 4d27ea0..9315fda 100644
911 --- a/CMakeLists.txt
1012 +++ b/CMakeLists.txt
11 @@ -223,11 +223,9 @@
13 @@ -223,11 +223,9 @@ add_subdirectory(locales)
1214 # Add test executables for unit testing
1315 add_test(NAME "libfacter\\ tests" COMMAND libfacter_test)
1416 if (RUBY_FOUND)
0 Description: Fix yaml tests with double values.
1 As of yaml-cpp 0.6.3, the maximal precision for serializing floating
2 point values is used. See
3 https://github.com/jbeder/yaml-cpp/commit/abf941b20d21342cd207df0f8ffe09f41a4d3042
4 .
5 This changes the output of the YAML serializer slightly and breaks the tests.
6 Fix this by using approximate matching while checking the YAML output, as is
7 done for JSON.
8 Author: Sebastian Ramacher <sramacher@debian.org>
0 From: Sebastian Ramacher <sramacher@debian.org>
1 Date: Tue, 25 Aug 2020 16:36:43 +0300
2 Subject: Fix yaml tests with double values.
3
94 Bug-Debian: https://bugs.debian.org/959573
105 Updated-By: Apollon Oikonomopoulos <apoikos@debian.org>
116 Last-Update: 2020-08-25
127
8 As of yaml-cpp 0.6.3, the maximal precision for serializing floating
9 point values is used. See
10 https://github.com/jbeder/yaml-cpp/commit/abf941b20d21342cd207df0f8ffe09f41a4d3042
11
12 This changes the output of the YAML serializer slightly and breaks the tests.
13 Fix this by using approximate matching while checking the YAML output, as is
14 done for JSON.
15 ---
16 lib/tests/facts/double_value.cc | 3 ++-
17 1 file changed, 2 insertions(+), 1 deletion(-)
18
19 diff --git a/lib/tests/facts/double_value.cc b/lib/tests/facts/double_value.cc
20 index cd740a6..e3ce842 100644
1321 --- a/lib/tests/facts/double_value.cc
1422 +++ b/lib/tests/facts/double_value.cc
1523 @@ -3,6 +3,7 @@
2028 #include <cmath>
2129 #include <limits>
2230
23 @@ -27,7 +28,7 @@
31 @@ -27,7 +28,7 @@ SCENARIO("using a double fact value") {
2432 THEN("it should have the same value") {
2533 Emitter emitter;
2634 value.write(emitter);