From: Marco van Wieringen Date: Mon, 7 Nov 2011 18:39:32 +0000 (+0100) Subject: Fix bug #1774 X-Git-Tag: Release-7.0.0~472 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=d4be429339732fb52f90c76cc94e713a3a7e8958;p=bacula%2Fbacula 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. --- 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