libvirt/docs
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
..
css meson: Work around configure_file(copy:true) deprecation 2023-04-20 15:30:18 +02:00
fonts meson: Work around configure_file(copy:true) deprecation 2023-04-20 15:30:18 +02:00
gitdm
go
html docs|access: Don't build the ACL flags into a separate XML 2023-03-06 13:09:16 +01:00
images meson: Work around configure_file(copy:true) deprecation 2023-04-20 15:30:18 +02:00
js meson: Work around configure_file(copy:true) deprecation 2023-04-20 15:30:18 +02:00
kbase kbase: debuglogs: Add a 'TL;DR' section for enabling logging in most common case 2023-04-17 16:09:50 +02:00
logos meson: Work around configure_file(copy:true) deprecation 2023-04-20 15:30:18 +02:00
manpages virsh: Introduce --xpath and --wrap to domcapabilities 2023-04-18 09:06:08 +02:00
404.rst docs: Convert 404 page to rST 2023-02-21 10:58:59 +01:00
acl.html.in docs: ACL: Show which permissions are allowed for unauthenticated connections 2023-02-20 09:22:51 +01:00
aclpolkit.rst
advanced-tests.rst
android-chrome-192x192.png
android-chrome-256x256.png
api_extension.rst
api.rst docs: Remove extra leading slash in 'api' and 'formatdomaincaps' pages 2022-06-01 12:27:10 +02:00
apple-touch-icon.png
apps.rst docs: apps: Add a new section for backup utilities and mention 'virtnbdbackup' 2023-04-03 11:09:39 +02:00
auditlog.rst
auth.rst
best-practices.rst
bindings.rst docs: Update links to the libvirt-ruby bindings project webpage 2023-04-03 09:19:06 +02:00
browserconfig.xml
bugs.rst
cgroups.rst
ci-dashboard.rst
ci-runners.rst
ci.rst
coding-style.rst coding style: Follow our own rule on comment style 2023-04-04 12:16:09 +02:00
committer-guidelines.rst
compiling.rst
contact.rst
contribute.rst
csharp.rst
daemons.rst
dbus.rst
docs.rst docs: Update links to the libvirt-ruby bindings project webpage 2023-04-03 09:19:06 +02:00
downloads.rst docs: downloads: Update link to 'Changes' of the libvirt-perl project 2023-04-03 09:19:05 +02:00
drivers.rst
drvbhyve.rst
drvch.rst
drvesx.rst
drvhyperv.rst
drvlxc.rst
drvnodedev.rst
drvopenvz.rst
drvqemu.rst
drvsecret.rst
drvtest.rst docs: Convert 'drvtest' page to rST 2022-04-01 16:33:19 +02:00
drvvbox.rst vbox: Drop support for virtualbox-6.0.0 2023-01-24 10:24:07 +01:00
drvvirtuozzo.rst
drvvmware.rst
drvxen.rst docs: Convert 'drvxen' page to rST 2022-04-01 16:33:19 +02:00
errors.rst
favicon-16x16.png
favicon-32x32.png
favicon.ico
firewall.rst
format.rst
formatbackup.rst
formatcaps.rst
formatcheckpoint.rst
formatdomain.rst docs: Clarify restrictive numatune mode 2023-04-20 12:39:50 +02:00
formatdomaincaps.rst
formatnetwork.rst
formatnetworkport.rst
formatnode.rst
formatnwfilter.rst
formatsecret.rst
formatsnapshot.rst
formatstorage.rst
formatstoragecaps.rst
formatstorageencryption.rst qemu: add luks-any encryption support for RBD images 2023-03-16 15:19:36 +01:00
glib-adoption.rst
goals.rst
golang.rst docs: Add sub-page for all golang modules 2023-02-15 12:38:45 +01:00
governance.rst
hacking.rst
hooks.rst docs: Recommend better python3 shebang 2023-02-20 18:33:01 +01:00
index.html.in
issue-handling.rst
java.rst docs: java: Use new hostname for the sub-project 2023-04-03 09:19:06 +02:00
libvirt-go-xml.rst
libvirt-go.rst
logging.rst
macos.rst
manifest.json
meson.build meson: Work around configure_file(copy:true) deprecation 2023-04-20 15:30:18 +02:00
migration.rst
mstile-150x150.png
newapi.xsl docs/newapi.xsl: Take API flag data from libvirt-api.xml rather than access/libvirt-access.xml 2023-03-06 13:09:16 +01:00
newreposetup.rst
nss.rst
page.xsl docs: XSL: Add source document name as custom data attribute for <html> 2023-02-15 12:38:45 +01:00
pci-addresses.rst
pci-hotplug.rst
platforms.rst
programming-languages.rst
python.rst
remote.rst
securityprocess.rst
site.xsl
storage.rst
strategy.rst
styleguide.rst Use 'libvirt.org' instead of 'www.libvirt.org' 2023-04-03 09:19:05 +02:00
submitting-patches.rst
support.rst
testapi.rst docs: Update link to the php bindings project webpage 2023-04-03 09:19:05 +02:00
testing.rst
testtck.rst
uri.rst
windows.rst