aboutsummaryrefslogtreecommitdiff
path: root/srcpkgs/NetworkManager/patches/no-gtk-doc.patch
blob: 2cd7cf42b71c38fc86e56c68b9cac963f4f04dd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Reason: We only want to build man pages, not development docs
# Upstream: Patch was rejected - https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/issues/689
diff --git a/meson.build b/meson.build
index 996617f4ca..fb4a914470 100644
--- a/meson.build
+++ b/meson.build
@@ -952,10 +952,8 @@ if enable_qt
 endif
 
 if enable_docs
-  assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true')
   assert(meson.version().version_compare('>= 0.46.0'), '-Ddocs requires meson >= 0.46')
   subdir('man')
-  subdir('docs')
 endif
 
 configure_file(
diff --git a/src/libnmc-setting/meson.build b/src/libnmc-setting/meson.build
index 49314cad2e..376ec4e740 100644
--- a/src/libnmc-setting/meson.build
+++ b/src/libnmc-setting/meson.build
@@ -1,6 +1,6 @@
 # SPDX-License-Identifier: LGPL-2.1-or-later
 
-if enable_docs
+if enable_docs and enable_introspection
   assert(enable_introspection, '-Ddocs=true requires -Dintrospection=true')
   settings_docs_input_xml = custom_target(
     'settings-docs-input.xml',