From d2793dd583041941348d5a984764160ddd48102b Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Tue, 29 Sep 2026 16:48:53 +0200 Subject: build: link Qt6::Network for the single-instance socket A unix domain socket between two copies of this program, for item 200. Not network protocol work: the rule in AGENTS.md is about IMAP and SMTP. Co-Authored-By: Claude Opus 5.5 --- CMakeLists.txt | 7 ++++++- src/CMakeLists.txt | 3 ++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 59cd578..9cb396f 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -17,7 +17,12 @@ option(QTMAILDIR_BUILD_TESTS "Build the test suite" ON) # SlackBuild builds from a tarball that carries no counter at all. option(QTMAILDIR_BUILD_NUMBER "Number each build of a dev tree" ON) -set(QTMAILDIR_QT_COMPONENTS Widgets Svg WebEngineWidgets) +# Network is for QLocalServer/QLocalSocket only, which is a unix domain socket +# between two copies of this program (item 200). It is NOT network protocol +# work: the rule in AGENTS.md is about IMAP and SMTP, and nothing here speaks +# either. Slackware ships it inside the monolithic qt6 package, so this adds no +# new build dependency. +set(QTMAILDIR_QT_COMPONENTS Widgets Svg WebEngineWidgets Network) if(QTMAILDIR_BUILD_TESTS) list(APPEND QTMAILDIR_QT_COMPONENTS Test) endif() diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 65404db..0940e4f 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -66,7 +66,8 @@ if(TARGET qtmaildir_buildnumber) endif() target_link_libraries(qtmaildir_lib - PUBLIC Qt6::Widgets Qt6::Svg Qt6::WebEngineWidgets PkgConfig::GMIME + PUBLIC Qt6::Widgets Qt6::Svg Qt6::WebEngineWidgets Qt6::Network + PkgConfig::GMIME PkgConfig::LIBICAL ${NOTMUCH_LIBRARY} PkgConfig::CMARK_GFM ${CMARK_GFM_EXTENSIONS_LIBRARY}) -- cgit v1.2.3