regression in meson build, AC_PATH_PROG lost

Olaf Hering olaf at aepfle.de
Thu Nov 19 21:31:00 UTC 2020


Am Thu, 19 Nov 2020 22:15:27 +0100
schrieb Martin Kletzander <mkletzan at redhat.com>:

> Libvirt needs to be able to handle that missing binary at runtime anyway

It also needs to handle an existing binary. Just how is it supposed to handle it?

Right now with meson it is either a full path, or just the name in case it was missing at build time (I have not checked if the launcher actually consults $PATH).

Anyway, what would be the desired approach to tell libvirt the runtime path?

I was thinking about something like:
  option('runtime_path_exe', type: 'string', value: 'exe', description: 'runtime path of exe')
  runtime_path_exe = get_option('runtime_path_exe')
  if not get_option('runtime_path_exe').enabled()
    runtime_path_exe = find_program(runtime_path_exe, required: true).path()
  conf.set_quoted('EXE', runtime_path_exe)

Olaf
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 833 bytes
Desc: Digitale Signatur von OpenPGP
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20201119/a3181f08/attachment-0001.sig>


More information about the libvir-list mailing list