net-misc/megasync: fix build with clang

Closes: https://bugs.gentoo.org/950311
Signed-off-by: Takuya Wakazono <pastalian46@gmail.com>
This commit is contained in:
Takuya Wakazono 2025-03-05 22:46:42 +09:00
parent 6ff30a00d2
commit ac20f906ca
No known key found for this signature in database
GPG Key ID: 91CA2604719DDA61
2 changed files with 18 additions and 0 deletions

View File

@ -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)
{

View File

@ -83,6 +83,7 @@ PATCHES=(
"${FILESDIR}/${PN}-5.7.0.0-fix-install-dir.patch" "${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-link-zlib.patch"
"${FILESDIR}/${PN}-5.7.0.0-rename-libcryptopp.patch" "${FILESDIR}/${PN}-5.7.0.0-rename-libcryptopp.patch"
"${FILESDIR}/${PN}-5.8.0.2-clang.patch"
) )
nemo_run() { nemo_run() {