From a04ea032ec46ae77d858e655407eeb34e600f7d0 Mon Sep 17 00:00:00 2001 From: Hendrik Donner Date: Mon, 3 Mar 2025 16:13:01 +0100 Subject: [PATCH] meson: Use short options for ln everywhere Some implementations of ln (toybox, busybox) typically only support the short option format, so use it consistently. The short options are already used in other places and it's usually supported on more implementations: -s and -f are POSIX and the few ln that support --relative understand -r. Which are GNU coreutils, the Rust uutils coreutils, toybox (-r only) and there is an old patch for busybox (-r only). The BSDs and MacOS don't seem to support --relative at all. Signed-off-by: Hendrik Donner Link: https://github.com/kmod-project/kmod/pull/303 Signed-off-by: Lucas De Marchi --- meson.build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meson.build b/meson.build index f8f26aee..4c4c878d 100644 --- a/meson.build +++ b/meson.build @@ -513,7 +513,7 @@ if get_option('tools') mkdir_p = 'mkdir -p "$DESTDIR@0@"' meson.add_install_script('sh', '-c', mkdir_p.format(sbindir)) - ln_s = 'ln --symbolic --force --relative "$DESTDIR@0@/kmod" "$DESTDIR@1@"' + ln_s = 'ln -sfr "$DESTDIR@0@/kmod" "$DESTDIR@1@"' foreach tool : _tools meson.add_install_script('sh', '-c', ln_s.format(bindir, sbindir / tool)) endforeach -- 2.47.3