commit:     f6f1a18114dae011613b5bf4c2ab5eaf7b004397
Author:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
AuthorDate: Sun Mar 10 18:03:59 2024 +0000
Commit:     Guilherme Amadio <amadio <AT> gentoo <DOT> org>
CommitDate: Sun Mar 10 18:03:59 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f6f1a181

net-libs/davix: fix build with GCC 14, bug 919374

Closes: https://bugs.gentoo.org/919374

Signed-off-by: Guilherme Amadio <amadio <AT> gentoo.org>

 net-libs/davix/davix-0.8.5.ebuild            |  4 ++++
 net-libs/davix/files/davix-0.8.5-gcc14.patch | 12 ++++++++++++
 2 files changed, 16 insertions(+)

diff --git a/net-libs/davix/davix-0.8.5.ebuild 
b/net-libs/davix/davix-0.8.5.ebuild
index 3db5aa1aa72f..61e8ecd0f6ec 100644
--- a/net-libs/davix/davix-0.8.5.ebuild
+++ b/net-libs/davix/davix-0.8.5.ebuild
@@ -39,6 +39,10 @@ RDEPEND="${CDEPEND}"
 
 REQUIRED_USE="test? ( tools )"
 
+PATCHES=(
+               "${FILESDIR}/${P}-gcc14.patch"
+)
+
 src_prepare() {
        cmake_src_prepare
 

diff --git a/net-libs/davix/files/davix-0.8.5-gcc14.patch 
b/net-libs/davix/files/davix-0.8.5-gcc14.patch
new file mode 100644
index 000000000000..2e2c8bd663ac
--- /dev/null
+++ b/net-libs/davix/files/davix-0.8.5-gcc14.patch
@@ -0,0 +1,12 @@
+Fix bundled rapidjson build with GCC 14.
+
+--- a/src/libs/rapidjson/document.h
++++ b/src/libs/rapidjson/document.h
+@@ -316,8 +316,6 @@ struct GenericStringRef {
+ 
+     GenericStringRef(const GenericStringRef& rhs) : s(rhs.s), 
length(rhs.length) {}
+ 
+-    GenericStringRef& operator=(const GenericStringRef& rhs) { s = rhs.s; 
length = rhs.length; }
+-
+     //! implicit conversion to plain CharType pointer
+     operator const Ch *() const { return s; }

Reply via email to