From d4be429339732fb52f90c76cc94e713a3a7e8958 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Mon, 7 Nov 2011 19:39:32 +0100 Subject: [PATCH] Fix bug #1774 Incorrect symlink created by version 5.2.1 when using DESTDIR to build a package. Instead of creating a absolute symlink create a releative one. --- bacula/src/cats/install-default-backend.in | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bacula/src/cats/install-default-backend.in b/bacula/src/cats/install-default-backend.in index 34fea4ce39..54bc3d092f 100755 --- a/bacula/src/cats/install-default-backend.in +++ b/bacula/src/cats/install-default-backend.in @@ -27,7 +27,13 @@ if [ -f ${install_dir}/libbaccats-${default_backend}-${library_version}${SHLIB_E # Create a default catalog library pointing to one of the shared libs. # rm -f ${install_dir}/libbaccats-${library_version}${SHLIB_EXT} - ln -s ${install_dir}/libbaccats-${default_backend}-${library_version}${SHLIB_EXT} \ + + # + # Create a relative symlink to the default backend + # As all backends are in the same directory anyhow this should + # always work. + # + ln -s libbaccats-${default_backend}-${library_version}${SHLIB_EXT} \ ${install_dir}/libbaccats-${library_version}${SHLIB_EXT} fi -- 2.39.5