Re: regression in meson build, AC_PATH_PROG lost

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Am Thu, 19 Nov 2020 22:15:27 +0100
schrieb Martin Kletzander <mkletzan@xxxxxxxxxx>:

> 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

Attachment: pgp0kZZ9k28bC.pgp
Description: Digitale Signatur von OpenPGP


[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux