meson: add more version numbers to the summary
PATCH 1/1 meson: add more version numbers to the summary
Whenever declare_dependency is used to add some compile flags or dependent libraries to the outcome of dependency(), the version of the original dependency is dropped in the summary. Make sure that declare_dependency() has a version argument in those cases.
--- meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
meson.build +8 -4
@@ -1164,7 +1164,8 @@ if have_system and get_option('curses').allowed() curses_compile_args = ['-DNCURSES_WIDECHAR=1'] if curses.found() if cc.links(curses_test, args: curses_compile_args, dependencies: [curses]) - curses = declare_dependency(compile_args: curses_compile_args, dependencies: [curses]) + curses = declare_dependency(compile_args: curses_compile_args, dependencies: [curses], + version: curses.version()) else msg = 'curses package not usable' curses = not_found
@@ -1253,7 +1254,8 @@ endif if sdl.found() # work around 2.0.8 bug sdl = declare_dependency(compile_args: '-Wno-undef', - dependencies: sdl) + dependencies: sdl, + version: sdl.version()) sdl_image = dependency('SDL2_image', required: get_option('sdl_image'), method: 'pkg-config') else
@@ -1476,7 +1478,8 @@ if not gnutls_crypto.found() if gcrypt.found() and get_option('prefer_static') gcrypt = declare_dependency(dependencies: [ gcrypt, - cc.find_library('gpg-error', required: true)]) + cc.find_library('gpg-error', required: true)], + version: gcrypt.version()) endif endif if (not get_option('nettle').auto() or have_system) and not gcrypt.found()
@@ -1510,7 +1513,8 @@ if not get_option('gtk').auto() or have_system gtkx11 = dependency('gtk+-x11-3.0', version: '>=3.22.0', method: 'pkg-config', required: false) - gtk = declare_dependency(dependencies: [gtk, gtkx11]) + gtk = declare_dependency(dependencies: [gtk, gtkx11], + version: gtk.version()) if not get_option('vte').auto() or have_system vte = dependency('vte-2.91',
Signature · 1 line
2.39.2
Quoted 4 lines · Paolo Bonzini
Whenever
declare_dependencyis used to add some compile flags or dependent libraries to the outcome ofdependency(), the version of the original dependency is dropped in the summary. Make sure thatdeclare_dependency()has a version argument in those cases.
Hard to prevent keeping doing that in the future...
Quoted 4 lines
Signed-off-by Paolo Bonzini <[email protected]>--- meson.build | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-)
meson.build if not gnutls_crypto.found() · line 1482
Quoted 3 lines · Paolo Bonzini
meson.build +2
-1- cc.find_library('gpg-error', required: true)]) + cc.find_library('gpg-error', required: true)], + version: gcrypt.version())
Indentation.
r~
Quoted 6 lines · Richard Henderson
Quoted 3 lines · Paolo Bonzini
-
cc.find_library('gpg-error', required: true)]) +cc.find_library('gpg-error', required: true)], + version:gcrypt.version())Indentation.
Bah, mis-read the patch.
Quoted 5 lines
Reviewed-by Richard Henderson <[email protected]>r~