commit:     ac20f906ca4e178bca0fc21c765282e333a83655
Author:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
AuthorDate: Wed Mar  5 13:46:42 2025 +0000
Commit:     Takuya Wakazono <pastalian46 <AT> gmail <DOT> com>
CommitDate: Wed Mar  5 14:22:04 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=ac20f906

net-misc/megasync: fix build with clang

Closes: https://bugs.gentoo.org/950311
Signed-off-by: Takuya Wakazono <pastalian46 <AT> gmail.com>

 net-misc/megasync/files/megasync-5.8.0.2-clang.patch | 17 +++++++++++++++++
 net-misc/megasync/megasync-5.8.0.2.ebuild            |  1 +
 2 files changed, 18 insertions(+)

diff --git a/net-misc/megasync/files/megasync-5.8.0.2-clang.patch 
b/net-misc/megasync/files/megasync-5.8.0.2-clang.patch
new file mode 100644
index 000000000..6ab8f59c3
--- /dev/null
+++ b/net-misc/megasync/files/megasync-5.8.0.2-clang.patch
@@ -0,0 +1,17 @@
+https://bugs.gentoo.org/950311
+https://github.com/meganz/MEGAsync/issues/1055
+Fix build with clang by removing broken and unused constructor.
+--- a/src/MEGASync/control/ProtectedQueue.h
++++ b/src/MEGASync/control/ProtectedQueue.h
+@@ -13,11 +13,6 @@ public:
+     ProtectedQueue(){}
+     virtual ~ProtectedQueue(){}
+ 
+-    ProtectedQueue(const ProtectedQueue& other)
+-    {
+-        std::lock_guard<std::mutex> guard( other.mMutex );
+-        mQueue = other.mQueue;
+-    }
+ 
+     ProtectedQueue& operator= (ProtectedQueue& other)
+     {

diff --git a/net-misc/megasync/megasync-5.8.0.2.ebuild 
b/net-misc/megasync/megasync-5.8.0.2.ebuild
index a501f051e..9e9b70b9f 100644
--- a/net-misc/megasync/megasync-5.8.0.2.ebuild
+++ b/net-misc/megasync/megasync-5.8.0.2.ebuild
@@ -83,6 +83,7 @@ PATCHES=(
        "${FILESDIR}/${PN}-5.7.0.0-fix-install-dir.patch"
        "${FILESDIR}/${PN}-5.7.0.0-link-zlib.patch"
        "${FILESDIR}/${PN}-5.7.0.0-rename-libcryptopp.patch"
+       "${FILESDIR}/${PN}-5.8.0.2-clang.patch"
 )
 
 nemo_run() {

Reply via email to