Skip to contentSkip to conversation

docs: don't install corresponding man page if guest agent is disabled

PATCH Applied Stefan Reiter 2 participants 2 messages Jan 28, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 docs: don't install corresponding man page if guest agent is disabled

No sense outputting the qemu-ga and qemu-ga-ref man pages when the guest agent binary itself is disabled. This mirrors behaviour from before the meson switch.

---
 docs/meson.build | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
docs/meson.build +4 -2
index bb14eaebd3..f84306ba7e 100644
@@ -46,9 +46,11 @@ if build_docs
                           meson.source_root() / 'docs/sphinx/qmp_lexer.py',
                           qapi_gen_depends ]
 
+  have_ga = have_tools and config_host.has_key('CONFIG_GUEST_AGENT')
+
   man_pages = {
-        'qemu-ga.8': (have_tools ? 'man8' : ''),
-        'qemu-ga-ref.7': 'man7',
+        'qemu-ga.8': (have_ga ? 'man8' : ''),
+        'qemu-ga-ref.7': (have_ga ? 'man7' : ''),
         'qemu-qmp-ref.7': 'man7',
         'qemu-storage-daemon-qmp-ref.7': (have_tools ? 'man7' : ''),
         'qemu-img.1': (have_tools ? 'man1' : ''),
Signature · 1 line
2.20.1
#1 lore raw
Quoted 18 lines · Stefan Reiter

No sense outputting the qemu-ga and qemu-ga-ref man pages when the guest agent binary itself is disabled. This mirrors behaviour from before the meson switch.

---
  docs/meson.build | 6 ++++--
  1 file changed, 4 insertions(+), 2 deletions(-)
docs/meson.build +0 -0
index bb14eaebd3..f84306ba7e 100644
@@ -46,9 +46,11 @@ if build_docs
                            meson.source_root() / 'docs/sphinx/qmp_lexer.py',
                            qapi_gen_depends ]
 

docs/meson.build if build_docs · line 56

Quoted 10 lines
docs/meson.build +4 -2
+  have_ga = have_tools and config_host.has_key('CONFIG_GUEST_AGENT')
+
    man_pages = {
-        'qemu-ga.8': (have_tools ? 'man8' : ''),
-        'qemu-ga-ref.7': 'man7',
+        'qemu-ga.8': (have_ga ? 'man8' : ''),
+        'qemu-ga-ref.7': (have_ga ? 'man7' : ''),
          'qemu-qmp-ref.7': 'man7',
          'qemu-storage-daemon-qmp-ref.7': (have_tools ? 'man7' : ''),
          'qemu-img.1': (have_tools ? 'man1' : ''),

Queued, thanks.

Paolo