Skip to contentSkip to conversation

meson.build: Do not look for VNC-related libraries if have_system is not set

PATCH Applied Thomas Huth 4 participants 4 messages Sep 6, 2021 – Sep 7, 2021 Arm/Amlogic Meson SoC support

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 meson.build: Do not look for VNC-related libraries if have_system is not set

When running "./configure --static --disable-system" there is currently a warning if the static version of libpng is missing:

WARNING: Static library 'png16' not found for dependency 'libpng', may not be statically linked

Since it does not make sense to look for the VNC-related libraries at all when we're building without system emulator binaries, let's add a check for have_system here to silence this warning.

---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +1 -1
index 7e58e6279b..f07236d947 100644
@@ -931,7 +931,7 @@ vnc = not_found
 png = not_found
 jpeg = not_found
 sasl = not_found
-if not get_option('vnc').disabled()
+if have_system and not get_option('vnc').disabled()
   vnc = declare_dependency() # dummy dependency
   png = dependency('libpng', required: get_option('vnc_png'),
                    method: 'pkg-config', kwargs: static_kwargs)
Signature · 1 line
2.27.0
Reviewed-by on v1 1/1
#1 lore raw
Quoted 20 lines · Thomas Huth

When running "./configure --static --disable-system" there is currently a warning if the static version of libpng is missing:

WARNING: Static library 'png16' not found for dependency 'libpng', may not be statically linked

Since it does not make sense to look for the VNC-related libraries at all when we're building without system emulator binaries, let's add a check for have_system here to silence this warning.

---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +0 -0
index 7e58e6279b..f07236d947 100644

meson.build vnc = not_found · line 937

Quoted 8 lines
meson.build +1 -1
@@ -931,7 +931,7 @@ vnc = not_found
 png = not_found
 jpeg = not_found
 sasl = not_found
-if not get_option('vnc').disabled()
+if have_system and not get_option('vnc').disabled()
   vnc = declare_dependency() # dummy dependency
   png = dependency('libpng', required: get_option('vnc_png'),
                    method: 'pkg-config', kwargs: static_kwargs)

Regards,
Daniel

Signature · 3 lines
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|
Reviewed-by on v1 1/1
#2 lore raw
In reply to Thomas Huth
Quoted 6 lines · Thomas Huth

When running "./configure --static --disable-system" there is currently a warning if the static version of libpng is missing:

WARNING: Static library 'png16' not found for dependency 'libpng', may not be statically linked

Quoted 8 lines

Since it does not make sense to look for the VNC-related libraries at all when we're building without system emulator binaries, let's add a check for have_system here to silence this warning.

---
 meson.build | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
#3 lore raw
In reply to Thomas Huth
Quoted 21 lines · Thomas Huth

When running "./configure --static --disable-system" there is currently a warning if the static version of libpng is missing:

WARNING: Static library 'png16' not found for dependency 'libpng', may not be statically linked

Since it does not make sense to look for the VNC-related libraries at all when we're building without system emulator binaries, let's add a check for have_system here to silence this warning.

---
  meson.build | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
meson.build +0 -0
index 7e58e6279b..f07236d947 100644

meson.build vnc = not_found · line 937

Quoted 8 lines
meson.build +1 -1
@@ -931,7 +931,7 @@ vnc = not_found
  png = not_found
  jpeg = not_found
  sasl = not_found
-if not get_option('vnc').disabled()
+if have_system and not get_option('vnc').disabled()
    vnc = declare_dependency() # dummy dependency
    png = dependency('libpng', required: get_option('vnc_png'),
                     method: 'pkg-config', kwargs: static_kwargs)

Queued, thanks.

Paolo