]> git.ipfire.org Git - thirdparty/systemd.git/commit
meson: Use rsync to copy test data directories
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 16 Aug 2023 19:22:57 +0000 (21:22 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Thu, 17 Aug 2023 11:50:26 +0000 (13:50 +0200)
commitcc2a0d85d2733b0a3285e16ca8a869cad84a03ec
tree814ecca38a9c217cbc0f88f2048eb99b8e783dbd
parent45b1c015b0eaff65b1f34e0ba8d072939eaa3926
meson: Use rsync to copy test data directories

install_subdir() does not copy symlinks but copies the file they
point to. We also get a very ugly warning in the meson install
output:

"""
Warning: trying to copy a symlink that points to a file. This will copy the file,
but this will be changed in a future version of Meson to copy the symlink as is. Please update your
build definitions so that it will not break when the change happens.
"""

Let's fix both problems at once by using rsync which does the right
thing. Verified by running systemd-dissect --mtree on both the install
output before and after and all the symlinks are now correctly preserved.
test/meson.build