libvirt/src/locking
Michal Privoznik ac7f3667f2 meson: Work around configure_file(copy:true) deprecation
In our meson scripts, we use configure_file(copy:true) to copy
files from srcdir into builddir. However, as of meson-0.64.0,
this is deprecated [1] in favor of using:

  fs = import('fs')
  fs.copyfile(in, out)

Except, the submodule's new method wasn't introduced until
0.64.0. And since we can't bump the minimal meson version we
require, we have to work with both: new and old versions.

Now, the fun part: fs.copyfile() is not a drop in replacement as
it returns different type (a custom_target object). This is
incompatible with places where we store the configure_file()
retval in a variable to process it further.

While we could just replace 'copy:true' with a dummy
'configuration:...' (say 'configuration: configmake_conf') we
can't do that for binary files (like src/fonts/ or src/images/).

Therefore, places where we are not interested in the retval can
be switched to fs.copyfile() and places where we are interested
in the retval will just use a dummy 'configuration:'.

Except, src/network/meson.build. In here we not just copy the
file but also specify alternative install dir and that's not
something that fs.copyfile() can handle. Yet, using 'copy: true'
is viewed wrong [2].

1: https://mesonbuild.com/Release-notes-for-0-64-0.html#fscopyfile-to-replace-configure_filecopy-true
2: https://github.com/mesonbuild/meson/pull/10042

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
2023-04-20 15:30:18 +02:00
..
domain_lock.c locking: Remove unused includes 2022-06-16 06:43:56 +02:00
domain_lock.h locking: Remove unused includes 2022-06-16 06:43:56 +02:00
libvirt_lockd.aug src: fix word spell typos 2020-07-09 10:01:41 +02:00
libvirt_sanlock.aug src: fix word spell typos 2020-07-09 10:01:41 +02:00
lock_daemon_config.c locking: Remove unused includes 2022-06-16 06:43:56 +02:00
lock_daemon_config.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
lock_daemon_dispatch.c locking: Update format strings in translated messages 2023-04-01 11:40:33 +02:00
lock_daemon_dispatch.h
lock_daemon.c locking: Update format strings in translated messages 2023-04-01 11:40:33 +02:00
lock_daemon.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
lock_driver_lockd.c locking: Update format strings in translated messages 2023-04-01 11:40:33 +02:00
lock_driver_lockd.h
lock_driver_nop.c locking: Remove unused includes 2022-06-16 06:43:56 +02:00
lock_driver_nop.h
lock_driver_sanlock.c locking: Update format strings in translated messages 2023-04-01 11:40:33 +02:00
lock_driver.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
lock_manager.c locking: Update format strings in translated messages 2023-04-01 11:40:33 +02:00
lock_manager.h lib: Drop internal virXXXPtr typedefs 2021-04-13 17:00:38 +02:00
lock_protocol.x
lockd.conf
meson.build meson: Work around configure_file(copy:true) deprecation 2023-04-20 15:30:18 +02:00
sanlock_helper.c locking: Update format strings in translated messages 2023-04-01 11:40:33 +02:00
sanlock.conf
test_libvirt_lockd.aug.in
test_libvirt_sanlock.aug.in
test_virtlockd.aug.in
virtlockd-admin.socket.in
virtlockd.aug src: fix word spell typos 2020-07-09 10:01:41 +02:00
virtlockd.conf util: drop support for stack traces with logging 2019-10-18 16:25:17 +01:00
virtlockd.init.in Add virtlockd and virtlogd init scripts 2020-02-22 17:11:54 +01:00
virtlockd.service.in remove sysconfig files 2022-01-17 18:20:59 +01:00
virtlockd.socket.in