]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
test: Follow symlinks when copying with rsync
authorDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 1 May 2024 14:10:48 +0000 (16:10 +0200)
committerDaan De Meyer <daan.j.demeyer@gmail.com>
Wed, 1 May 2024 14:15:20 +0000 (16:15 +0200)
We have e.g. 25-default.link in test-network/ which becomes a broken
symlink when installed so let's not copy the symlinks but follow them
instead so they don't become broken.

test/meson.build

index 7290b98f0dce7ac74d0fcec86f523062c6ac9aec..705762d53359005cf4b4aadc6391b1182cee42f2 100644 (file)
@@ -29,7 +29,7 @@ if install_tests
                 # 'follow_symlinks' once we require Meson 1.3.0 or greater, see:
                 # https://github.com/mesonbuild/meson/commit/0af126fec798d6dbb0d1ad52168cc1f3f1758acd
                 if rsync.found()
-                        rsync_r = rsync.full_path() + ' -rlpt --exclude .gitattributes -- "@0@" "${DESTDIR:-}@1@"'
+                        rsync_r = rsync.full_path() + ' -rLpt --exclude .gitattributes -- "@0@" "${DESTDIR:-}@1@"'
                         meson.add_install_script(sh, '-c',
                                                  rsync_r.format(meson.current_source_dir() / subdir, testdata_dir))
                 else