]> git.sur5r.net Git - bacula/bacula/commitdiff
Fix bug #1774
authorMarco van Wieringen <mvw@planets.elm.net>
Mon, 7 Nov 2011 18:39:32 +0000 (19:39 +0100)
committerKern Sibbald <kern@sibbald.com>
Sat, 20 Apr 2013 12:50:12 +0000 (14:50 +0200)
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

index 34fea4ce39d4cc786180496a606ec26f80b41c51..54bc3d092fd6724eb8c8fb410ed0e2a214dfef9c 100755 (executable)
@@ -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