[Midnightbsd-cvs] mports [24128] trunk/textproc/libxml++26: add patch
laffer1 at midnightbsd.org
laffer1 at midnightbsd.org
Mon Sep 3 12:25:08 EDT 2018
Revision: 24128
http://svnweb.midnightbsd.org/mports/?rev=24128
Author: laffer1
Date: 2018-09-03 12:25:08 -0400 (Mon, 03 Sep 2018)
Log Message:
-----------
add patch
Modified Paths:
--------------
trunk/textproc/libxml++26/Makefile
Added Paths:
-----------
trunk/textproc/libxml++26/files/
trunk/textproc/libxml++26/files/patch-c++11
Modified: trunk/textproc/libxml++26/Makefile
===================================================================
--- trunk/textproc/libxml++26/Makefile 2018-09-03 16:20:32 UTC (rev 24127)
+++ trunk/textproc/libxml++26/Makefile 2018-09-03 16:25:08 UTC (rev 24128)
@@ -18,7 +18,6 @@
BUILD_DEPENDS= gm4:${PORTSDIR}/devel/m4
-USE_GCC= any
USES+= gmake libtool pathfix pkgconfig
USE_GNOME= glibmm libxml2
USE_LDCONFIG= yes
Added: trunk/textproc/libxml++26/files/patch-c++11
===================================================================
--- trunk/textproc/libxml++26/files/patch-c++11 (rev 0)
+++ trunk/textproc/libxml++26/files/patch-c++11 2018-09-03 16:25:08 UTC (rev 24128)
@@ -0,0 +1,46 @@
+From 7dbfb0aed508451e8237c34472815e44925a545c Mon Sep 17 00:00:00 2001
+From: Mikhail Titov <mlt at gmx.us>
+Date: Thu, 30 Apr 2015 17:51:20 +0200
+Subject: Fix the build with C++11 compilers, such as MS Visual C++ 2013.
+
+Implicit conversions from streams to bool are no longer allowed.
+---
+ libxml++/io/istreamparserinputbuffer.cc | 2 +-
+ libxml++/io/ostreamoutputbuffer.cc | 4 ++--
+ 2 files changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/libxml++/io/istreamparserinputbuffer.cc b/libxml++/io/istreamparserinputbuffer.cc
+index b1d6e5b..7a7f283 100644
+--- libxml++/io/istreamparserinputbuffer.cc
++++ libxml++/io/istreamparserinputbuffer.cc
+@@ -39,6 +39,6 @@ namespace xmlpp
+
+ bool IStreamParserInputBuffer::do_close()
+ {
+- return input_;
++ return input_.good();
+ }
+ }
+diff --git a/libxml++/io/ostreamoutputbuffer.cc b/libxml++/io/ostreamoutputbuffer.cc
+index 0a3e6db..b23a8b6 100644
+--- libxml++/io/ostreamoutputbuffer.cc
++++ libxml++/io/ostreamoutputbuffer.cc
+@@ -29,13 +29,13 @@ namespace xmlpp
+ // here we rely on the ostream implicit conversion to boolean, to know if the stream can be used and/or if the write succeded.
+ if(output_)
+ output_.write(buffer, len);
+- return output_;
++ return output_.good();
+ }
+
+ bool OStreamOutputBuffer::do_close()
+ {
+ if(output_)
+ output_.flush();
+- return output_;
++ return output_.good();
+ }
+ }
+--
+cgit v0.12
+
Property changes on: trunk/textproc/libxml++26/files/patch-c++11
___________________________________________________________________
Added: svn:eol-style
## -0,0 +1 ##
+native
\ No newline at end of property
Added: svn:mime-type
## -0,0 +1 ##
+text/plain
\ No newline at end of property
More information about the Midnightbsd-cvs
mailing list