From 2767fbdbbd20a52831f62f1a69e741afc10f7e75 Mon Sep 17 00:00:00 2001 From: Carlos Santos Date: Wed, 18 Sep 2019 20:50:44 -0300 Subject: [PATCH] install: fix reinstallation of driverless and foomatic-rip Use "ln -s -r -f" to ensure that existing symlinks are overritten. Signed-off-by: Carlos Santos --- m4/ac_ln_srf.m4 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/m4/ac_ln_srf.m4 b/m4/ac_ln_srf.m4 index 03191400e..204b34397 100644 --- a/m4/ac_ln_srf.m4 +++ b/m4/ac_ln_srf.m4 @@ -57,7 +57,7 @@ else fi if (echo >conf$$.file) 2>/dev/null; then if ln -s -r conf$$.file conf$$ 2>/dev/null; then - as_ln_srf='ln -s -r' + as_ln_srf='ln -s -r -f' elif ln -s conf$$.file conf$$ 2>/dev/null; then as_ln_srf='./ln-srf' # ... but there are two gotchas: @@ -81,9 +81,9 @@ rmdir conf$$.dir 2>/dev/null # AC_PROG_LN_SRF # -------------------------------- AC_DEFUN([AC_PROG_LN_SRF], -[AC_MSG_CHECKING([whether ln -s -r works]) +[AC_MSG_CHECKING([whether ln -s -r -f works]) AC_SUBST([LN_SRF], [$as_ln_srf])dnl -if test "$LN_SRF" = "ln -s -r"; then +if test "$LN_SRF" = "ln -s -r -f"; then AC_MSG_RESULT([yes]) else AC_MSG_RESULT([no, using $LN_SRF]) -- 2.47.2