summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFilip Kobierski <fkobi@pm.me>2024-11-25 20:44:27 +0100
committerJoonas Niilola <juippis@gentoo.org>2025-01-03 18:55:35 +0200
commitde321b8b2d7039960c0725e8efb87cec1dcccd1c (patch)
treed8a2fedfb1aca6593a40d9f4942b0824a2eaaf8c /net-p2p/retroshare/files
parentnet-p2p/retroshare: drop 0.6.7-r1 (diff)
downloadgentoo-de321b8b2d7039960c0725e8efb87cec1dcccd1c.tar.gz
gentoo-de321b8b2d7039960c0725e8efb87cec1dcccd1c.tar.bz2
gentoo-de321b8b2d7039960c0725e8efb87cec1dcccd1c.zip
net-p2p/retroshare: Patch bundled libraries, improve ebuild
- port a patch from bundled rapidjson - use upstream .desktop file - avoid evaluating `uselibupnp` if USE=miniupnp (default) Signed-off-by: Filip Kobierski <fkobi@pm.me> Closes: https://github.com/gentoo/gentoo/pull/39471 Signed-off-by: Joonas Niilola <juippis@gentoo.org>
Diffstat (limited to 'net-p2p/retroshare/files')
-rw-r--r--net-p2p/retroshare/files/retroshare-0.6.7_fix-old-rapidjson.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/net-p2p/retroshare/files/retroshare-0.6.7_fix-old-rapidjson.patch b/net-p2p/retroshare/files/retroshare-0.6.7_fix-old-rapidjson.patch
new file mode 100644
index 000000000000..90c973c53493
--- /dev/null
+++ b/net-p2p/retroshare/files/retroshare-0.6.7_fix-old-rapidjson.patch
@@ -0,0 +1,24 @@
+This fixes a c23 issue in the rapidjson library:
+
+ error: assignment of read-only member 'rapidjson::GenericStringRef::length'
+
+This was fixed upstream in 2016 and this patch combines two commit from PR
+https://github.com/Tencent/rapidjson/pull/719
+We are using OpenBuildService as the tarball source and it bundles libraries that old.
+
+For Gentoo details see https://bugs.gentoo.org/945721
+--- a/supportlibs/rapidjson/include/rapidjson/document.h
++++ b/supportlibs/rapidjson/include/rapidjson/document.h
+@@ -316,10 +316,10 @@
+
+ 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; }
++ //! Copy assignment operator not permitted - immutable type
++ GenericStringRef& operator=(const GenericStringRef& rhs) /* = delete */;
+
+ const Ch* const s; //!< plain CharType pointer
+ const SizeType length; //!< length of the string (excluding the trailing NULL terminator)