From 2b3b25a7dcfb4d0dbd99cadd8d898e3b7ecc790f Mon Sep 17 00:00:00 2001 From: Peter Korsgaard Date: Sat, 7 Feb 2026 18:07:53 +0100 Subject: [PATCH] package/swig: swig-wrapper.in: handle symlinks Fixes https://autobuild.buildroot.net/results/e656684298b0462f8044667e7384c64d6508f22f/ Use realpath when constructing the path to the real swig so the wrapper works even if it is called through a symlink (E.G. the swig symlinks). Reported-by: Bernd Kuhls Signed-off-by: Peter Korsgaard --- package/swig/swig-wrapper.in | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package/swig/swig-wrapper.in b/package/swig/swig-wrapper.in index 61c885fc90..e6cf2df134 100644 --- a/package/swig/swig-wrapper.in +++ b/package/swig/swig-wrapper.in @@ -5,4 +5,4 @@ if [ -z "${SWIG_LIB}" ]; then export SWIG_LIB="${0%/*}/../share/swig/@SWIG_VERSION@" fi -exec "${0}.br_real" "$@" +exec "$(realpath "${0}").br_real" "$@"