Skip to content

Commit c943a2f

Browse files
committed
kdePackages.libquotient: add patch to fix library consumers
NeoChat currently fails to build fails without this. <quotient-im/libQuotient#932>
1 parent 57e8128 commit c943a2f

File tree

2 files changed

+44
-0
lines changed

2 files changed

+44
-0
lines changed

pkgs/development/libraries/libquotient/default.nix

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,11 @@ stdenv.mkDerivation rec {
2626
hash = "sha256-wdIE5LI4l3WUvpGfoJBL8sjBl2k8NfZTh9CjfJc9FIA=";
2727
};
2828

29+
patches = [
30+
# <https://github.com/quotient-im/libQuotient/pull/932>
31+
./fix-cmake-dependencies.patch
32+
];
33+
2934
nativeBuildInputs = [ cmake ];
3035

3136
propagatedBuildInputs = [
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
From ea83157eed37ff97ab275a5d14c971f0a5a70595 Mon Sep 17 00:00:00 2001
2+
From: Martin Joerg <[email protected]>
3+
Date: Thu, 23 Oct 2025 08:18:33 +0000
4+
Subject: [PATCH] QuotientConfig.cmake: add missing find_dependency commands
5+
6+
This adds all dependencies configured in CMakeLists.txt.
7+
8+
In particular, for Qt >= 6.10, this avoids downstreams having to manually configure the component
9+
CorePrivate of dependency Qt6. Otherwise, this might result in the following message:
10+
11+
The link interface of target "QuotientQt6" contains:
12+
13+
Qt6::CorePrivate
14+
15+
but the target was not found. Possible reasons include:
16+
17+
* There is a typo in the target name.
18+
* A find_package call is missing for an IMPORTED target.
19+
* An ALIAS target is missing.
20+
21+
See also 861f520092c9c915356234e85c0744097a155822, https://bugreports.qt.io/browse/QTBUG-87776.
22+
---
23+
cmake/QuotientConfig.cmake.in | 4 ++++
24+
1 file changed, 4 insertions(+)
25+
26+
diff --git a/cmake/QuotientConfig.cmake.in b/cmake/QuotientConfig.cmake.in
27+
index 6f92d54ce..ac219576c 100644
28+
--- a/cmake/QuotientConfig.cmake.in
29+
+++ b/cmake/QuotientConfig.cmake.in
30+
@@ -1,5 +1,9 @@
31+
include(CMakeFindDependencyMacro)
32+
33+
+find_dependency(@Qt@Core)
34+
+if (@Qt@Core_VERSION VERSION_GREATER_EQUAL 6.10)
35+
+ find_dependency(@Qt@CorePrivate)
36+
+endif()
37+
find_dependency(@Qt@Gui)
38+
find_dependency(@Qt@Network)
39+
find_dependency(@Qt@Keychain)

0 commit comments

Comments
 (0)