app-text/libmwaw: Add upstream buildfix
authorAndreas Sturmlechner <asturm@gentoo.org>
Sat, 18 Nov 2017 10:51:53 +0000 (11:51 +0100)
committerAndreas Sturmlechner <asturm@gentoo.org>
Sat, 18 Nov 2017 10:51:53 +0000 (11:51 +0100)
Reported-by: Coacher <itumaykin+gentoo@gmail.com>
Thanks-to: Shannon <roamingangel@gmail.com>
Closes: https://bugs.gentoo.org/637692
Package-Manager: Portage-2.3.14, Repoman-2.3.6

app-text/libmwaw/files/libmwaw-0.3.13-buildfix.patch [new file with mode: 0644]
app-text/libmwaw/libmwaw-0.3.13.ebuild

diff --git a/app-text/libmwaw/files/libmwaw-0.3.13-buildfix.patch b/app-text/libmwaw/files/libmwaw-0.3.13-buildfix.patch
new file mode 100644 (file)
index 0000000..5c9940e
--- /dev/null
@@ -0,0 +1,19 @@
+commit 4bc8ec0481f89b989b0c34236c9d5d9b8038d4a9
+Author: David Tardon <dtardon@redhat.com>
+Date:   Wed Nov 15 13:15:44 2017 +0100
+
+    fix call of explicit ctor
+
+diff --git a/src/lib/libmwaw_internal.hxx b/src/lib/libmwaw_internal.hxx
+index 2875a0fb..b844a9d5 100644
+--- a/src/lib/libmwaw_internal.hxx
++++ b/src/lib/libmwaw_internal.hxx
+@@ -1027,7 +1027,7 @@ public:
+   }
+   //! generic constructor
+   template <class U> explicit MWAWBox2(MWAWBox2<U> const &p)
+-    : m_data(p.min(), p.max())
++    : m_data(MWAWVec2<T>(p.min()), MWAWVec2<T>(p.max()))
+   {
+   }
index 0b26fe70b8236461e6e7acbd9aeab966b95cd27b..bd2d4558930122fd7df59957d3b73368754172b6 100644 (file)
@@ -28,6 +28,8 @@ DEPEND="${RDEPEND}
        doc? ( app-doc/doxygen )
 "
 
+PATCHES=( "${FILESDIR}/${P}-buildfix.patch" )
+
 src_prepare() {
        default
        [[ ${PV} == 9999 ]] && eautoreconf