aboutsummaryrefslogtreecommitdiffstats
path: root/community/libkml/10-fix-mistaken-use-of-std-cerr-instead-of-std-endl.patch
diff options
context:
space:
mode:
authorHolger Jaekel <holger.jaekel@gmx.de>2020-05-08 21:33:33 +0200
committerRasmus Thomsen <oss@cogitri.dev>2020-05-15 14:04:03 +0200
commit45c6d85825576650dc848aea1d1cb880072f3457 (patch)
treed50a47027ce9d37f5951d416cb90552a33480a3d /community/libkml/10-fix-mistaken-use-of-std-cerr-instead-of-std-endl.patch
parent5a2e18dc13dd178a8c4e09e09e02df952e464b28 (diff)
downloadaports-45c6d85825576650dc848aea1d1cb880072f3457.tar.gz
aports-45c6d85825576650dc848aea1d1cb880072f3457.tar.bz2
aports-45c6d85825576650dc848aea1d1cb880072f3457.tar.xz
community/libkml: move from testing
Diffstat (limited to 'community/libkml/10-fix-mistaken-use-of-std-cerr-instead-of-std-endl.patch')
-rw-r--r--community/libkml/10-fix-mistaken-use-of-std-cerr-instead-of-std-endl.patch72
1 files changed, 72 insertions, 0 deletions
diff --git a/community/libkml/10-fix-mistaken-use-of-std-cerr-instead-of-std-endl.patch b/community/libkml/10-fix-mistaken-use-of-std-cerr-instead-of-std-endl.patch
new file mode 100644
index 0000000000..ceb82ce5a2
--- /dev/null
+++ b/community/libkml/10-fix-mistaken-use-of-std-cerr-instead-of-std-endl.patch
@@ -0,0 +1,72 @@
+From 77cf351a61f3683b74e07857ca77b5580d1cedf0 Mon Sep 17 00:00:00 2001
+From: Sandro Mani <manisandro@gmail.com>
+Date: Fri, 8 Apr 2016 23:21:26 +0200
+Subject: [PATCH 2/4] Fix mistaken use of std::cerr instead of std::endl
+Source: https://src.fedoraproject.org/rpms/libkml/tree/master
+
+---
+ examples/engine/inlinestyles.cc | 8 ++++----
+ examples/engine/splitstyles.cc | 8 ++++----
+ 2 files changed, 8 insertions(+), 8 deletions(-)
+
+diff --git a/examples/engine/inlinestyles.cc b/examples/engine/inlinestyles.cc
+index 1cb4755..8ad1f57 100644
+--- a/examples/engine/inlinestyles.cc
++++ b/examples/engine/inlinestyles.cc
+@@ -35,20 +35,20 @@
+ bool InlineStyles(const char* input_filename, const char* output_filename) {
+ std::string kml_input;
+ if (!kmlbase::File::ReadFileToString(input_filename, &kml_input)) {
+- std::cerr << "read failed: " << input_filename << std::cerr;
++ std::cerr << "read failed: " << input_filename << std::endl;
+ return false;
+ }
+ std::string errors;
+ kmldom::ElementPtr root = kmlengine::InlineStyles(kml_input, &errors);
+ if (!root) {
+- std::cerr << "parse failed: " << input_filename << std::cerr;
+- std::cerr << "parse failed: " << errors << std::cerr;
++ std::cerr << "parse failed: " << input_filename << std::endl;
++ std::cerr << "parse failed: " << errors << std::endl;
+ return false;
+ }
+
+ std::string kml_output = kmldom::SerializePretty(root);
+ if (!kmlbase::File::WriteStringToFile(kml_output, output_filename)) {
+- std::cerr << "write failed: " << output_filename << std::cerr;
++ std::cerr << "write failed: " << output_filename << std::endl;
+ return false;
+ }
+ return true;
+diff --git a/examples/engine/splitstyles.cc b/examples/engine/splitstyles.cc
+index a3b190a..56203c9 100644
+--- a/examples/engine/splitstyles.cc
++++ b/examples/engine/splitstyles.cc
+@@ -35,20 +35,20 @@
+ bool SplitStyles(const char* input_filename, const char* output_filename) {
+ std::string kml_input;
+ if (!kmlbase::File::ReadFileToString(input_filename, &kml_input)) {
+- std::cerr << "read failed: " << input_filename << std::cerr;
++ std::cerr << "read failed: " << input_filename << std::endl;
+ return false;
+ }
+ std::string errors;
+ kmldom::ElementPtr root = kmlengine::SplitStyles(kml_input, &errors);
+ if (!root) {
+- std::cerr << "parse failed: " << input_filename << std::cerr;
+- std::cerr << "parse failed: " << errors << std::cerr;
++ std::cerr << "parse failed: " << input_filename << std::endl;
++ std::cerr << "parse failed: " << errors << std::endl;
+ return false;
+ }
+
+ std::string kml_output = kmldom::SerializePretty(root);
+ if (!kmlbase::File::WriteStringToFile(kml_output, output_filename)) {
+- std::cerr << "write failed: " << output_filename << std::cerr;
++ std::cerr << "write failed: " << output_filename << std::endl;
+ return false;
+ }
+ return true;
+--
+2.8.1
+