From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1267B158074 for ; Fri, 04 Jul 2025 18:37:09 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id F2A2E3420DE for ; Fri, 04 Jul 2025 18:37:08 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 8E11C11055D; Fri, 04 Jul 2025 18:37:02 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 842D411055D for ; Fri, 04 Jul 2025 18:37:02 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 3990F341EF3 for ; Fri, 04 Jul 2025 18:37:02 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id CBEA02D3F for ; Fri, 04 Jul 2025 18:37:00 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1751654109.279662795d75124e563076418e6d40fe9175c8ae.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-misc/seafile-client/files/, net-misc/seafile-client/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-misc/seafile-client/files/seafile-client-9.0.13-CMakeLists.patch net-misc/seafile-client/files/seafile-client-9.0.13-QJsonValue.patch net-misc/seafile-client/seafile-client-9.0.13.ebuild X-VCS-Directories: net-misc/seafile-client/files/ net-misc/seafile-client/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 279662795d75124e563076418e6d40fe9175c8ae X-VCS-Branch: master Date: Fri, 04 Jul 2025 18:37:00 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: f0761ff9-141e-4e9d-9f7e-74d0ecd29120 X-Archives-Hash: 840d72fdbdd8fa9f2e303d2a14633c8d commit: 279662795d75124e563076418e6d40fe9175c8ae Author: Z. Liu gmail com> AuthorDate: Fri Jul 4 11:22:45 2025 +0000 Commit: Sam James gentoo org> CommitDate: Fri Jul 4 18:35:09 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=27966279 net-misc/seafile-client: fix building with Qt 6.9 & update cmake minimum required to 3.20 Closes: https://bugs.gentoo.org/959311 Closes: https://bugs.gentoo.org/959347 Signed-off-by: Z. Liu gmail.com> Part-of: https://github.com/gentoo/gentoo/pull/42860 Closes: https://github.com/gentoo/gentoo/pull/42860 Signed-off-by: Sam James gentoo.org> .../files/seafile-client-9.0.13-CMakeLists.patch | 13 ++++ .../files/seafile-client-9.0.13-QJsonValue.patch | 81 ++++++++++++++++++++++ .../seafile-client/seafile-client-9.0.13.ebuild | 2 + 3 files changed, 96 insertions(+) diff --git a/net-misc/seafile-client/files/seafile-client-9.0.13-CMakeLists.patch b/net-misc/seafile-client/files/seafile-client-9.0.13-CMakeLists.patch new file mode 100644 index 000000000000..32ed2b55fa35 --- /dev/null +++ b/net-misc/seafile-client/files/seafile-client-9.0.13-CMakeLists.patch @@ -0,0 +1,13 @@ +https://github.com/haiwen/seafile-client/issues/1615 + +upstream won't change the minimum version soon +diff --git a/CMakeLists.txt b/CMakeLists.txt +index 3bb58761..58af8e15 100644 +--- a/CMakeLists.txt ++++ b/CMakeLists.txt +@@ -1,4 +1,4 @@ +-CMAKE_MINIMUM_REQUIRED(VERSION 2.8.9) ++CMAKE_MINIMUM_REQUIRED(VERSION 3.20) + + PROJECT(seafile-client) + SET(SEAFILE_CLIENT_VERSION_MAJOR 9) diff --git a/net-misc/seafile-client/files/seafile-client-9.0.13-QJsonValue.patch b/net-misc/seafile-client/files/seafile-client-9.0.13-QJsonValue.patch new file mode 100644 index 000000000000..ddd709a0d01b --- /dev/null +++ b/net-misc/seafile-client/files/seafile-client-9.0.13-QJsonValue.patch @@ -0,0 +1,81 @@ +https://github.com/haiwen/seafile-client/pull/1634 + +From 2d98f6b91b50f12e7908623cbb0ddc0c76022655 Mon Sep 17 00:00:00 2001 +From: "Z. Liu" +Date: Thu, 3 Jul 2025 23:29:00 +0800 +Subject: [PATCH] QJsonValue is required since Qt 6.9 + +otherwise, build will fail with: + +src/message-poller.cpp:247:28: error: variable has incomplete type 'QRegularExpression' + 247 | QRegularExpression re("Deleted \"(.+)\" and (.+) more files."); + | ^ +/usr/include/qt6/QtCore/qstringfwd.h:44:7: note: forward declaration of 'QRegularExpression' + 44 | class QRegularExpression; + | ^ +src/message-poller.cpp:248:34: error: calling 'operator[]' with incomplete return type 'const QJsonValue' + 248 | auto match = re.match(doc["delete_files"].toString().trimmed()); + | ~~~^~~~~~~~~~~~~~~~ +/usr/include/qt6/QtCore/qjsondocument.h:89:22: note: 'operator[]' declared here + 89 | const QJsonValue operator[](const QString &key) const; + | ^ +/usr/include/qt6/QtCore/qmetatype.h:1544:1: note: forward declaration of 'QJsonValue' + 1544 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER) + | ^ +/usr/include/qt6/QtCore/qmetatype.h:126:23: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS' + 126 | F(QJsonValue, 45, QJsonValue) \ + | ^ +src/message-poller.cpp:255:35: error: calling 'operator[]' with incomplete return type 'const QJsonValue' + 255 | .arg(doc["repo_name"].toString().trimmed()); + | ~~~^~~~~~~~~~~~~ +/usr/include/qt6/QtCore/qjsondocument.h:89:22: note: 'operator[]' declared here + 89 | const QJsonValue operator[](const QString &key) const; + | ^ +/usr/include/qt6/QtCore/qmetatype.h:1544:1: note: forward declaration of 'QJsonValue' + 1544 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER) + | ^ +/usr/include/qt6/QtCore/qmetatype.h:126:23: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS' + 126 | F(QJsonValue, 45, QJsonValue) \ + | ^ +src/message-poller.cpp:258:48: error: calling 'operator[]' with incomplete return type 'const QJsonValue' + 258 | rpc_client_->addDelConfirmation(doc["confirmation_id"].toString(), false); + | ~~~^~~~~~~~~~~~~~~~~~~ +/usr/include/qt6/QtCore/qjsondocument.h:89:22: note: 'operator[]' declared here + 89 | const QJsonValue operator[](const QString &key) const; + | ^ +/usr/include/qt6/QtCore/qmetatype.h:1544:1: note: forward declaration of 'QJsonValue' + 1544 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER) + | ^ +/usr/include/qt6/QtCore/qmetatype.h:126:23: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS' + 126 | F(QJsonValue, 45, QJsonValue) \ + | ^ +src/message-poller.cpp:260:48: error: calling 'operator[]' with incomplete return type 'const QJsonValue' + 260 | rpc_client_->addDelConfirmation(doc["confirmation_id"].toString(), true); + | ~~~^~~~~~~~~~~~~~~~~~~ +/usr/include/qt6/QtCore/qjsondocument.h:89:22: note: 'operator[]' declared here + 89 | const QJsonValue operator[](const QString &key) const; + | ^ +/usr/include/qt6/QtCore/qmetatype.h:1544:1: note: forward declaration of 'QJsonValue' + 1544 | QT_FOR_EACH_STATIC_CORE_CLASS(QT_FORWARD_DECLARE_STATIC_TYPES_ITER) + | ^ +/usr/include/qt6/QtCore/qmetatype.h:126:23: note: expanded from macro 'QT_FOR_EACH_STATIC_CORE_CLASS' + 126 | F(QJsonValue, 45, QJsonValue) \ + | ^ + +Signed-off-by: Z. Liu + +diff --git a/src/message-poller.cpp b/src/message-poller.cpp +index 2ab32c50..2392bfba 100644 +--- a/src/message-poller.cpp ++++ b/src/message-poller.cpp +@@ -1,6 +1,7 @@ + #include + #include + #include ++#include + + #include "utils/utils.h" + #include "utils/translate-commit-desc.h" +-- +2.45.2 + diff --git a/net-misc/seafile-client/seafile-client-9.0.13.ebuild b/net-misc/seafile-client/seafile-client-9.0.13.ebuild index 39c21d632ce3..f0332eb4cea8 100644 --- a/net-misc/seafile-client/seafile-client-9.0.13.ebuild +++ b/net-misc/seafile-client/seafile-client-9.0.13.ebuild @@ -36,6 +36,8 @@ BDEPEND="dev-qt/qttools:6[linguist]" PATCHES=( "${FILESDIR}/${PN}-9.0.11-select-qt6.patch" "${FILESDIR}/${PN}-9.0.13-remove-qtwebengine.patch" + "${FILESDIR}/${PN}-9.0.13-QJsonValue.patch" + "${FILESDIR}/${PN}-9.0.13-CMakeLists.patch" ) src_configure() {