From b85d771e1f90e56008be5a0f2d9f986648c689f4 Mon Sep 17 00:00:00 2001 From: Adam Duskett Date: Tue, 10 Oct 2023 10:00:24 +0200 Subject: Force symlinking of openrc-init to init When building on embedded SDKs such as Buildroot or Yocto, if OpenRC has a previous installation, the package will fail the installation step as the openrc-init is already a symlink to "${DESTDIR}/${sbindir}"/init. Force symlinking to prevent errors when reinstalling the package. --- tools/meson_final.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/meson_final.sh b/tools/meson_final.sh index ecec6eaa..ef91f9e3 100755 --- a/tools/meson_final.sh +++ b/tools/meson_final.sh @@ -13,5 +13,5 @@ if [ "${os}" != Linux ]; then fi install -m 644 "${MESON_BUILD_ROOT}/src/shared/version" "${DESTDIR}/${rc_libexecdir}" if [ "${os}" = Linux ] && [ "${sysvinit}" = yes ]; then - ln -s openrc-init "${DESTDIR}/${sbindir}"/init + ln -sf openrc-init "${DESTDIR}/${sbindir}"/init fi -- cgit v1.2.3