The install-default-backend script was creating a symlink to a fully qualified target. When used with DESTDIR (eg: during packaging), the symlink was invalid as it pointed to a path that most likely would not exist on the target system.
Alter the script to create a relative symlink instead. Signed-off-by: Ben Walton <bwal...@artsci.utoronto.ca> --- bacula/src/cats/install-default-backend.in | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/bacula/src/cats/install-default-backend.in b/bacula/src/cats/install-default-backend.in index 34fea4c..0a2cec3 100755 --- a/bacula/src/cats/install-default-backend.in +++ b/bacula/src/cats/install-default-backend.in @@ -27,8 +27,9 @@ 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} \ - ${install_dir}/libbaccats-${library_version}${SHLIB_EXT} + cd "${install_dir}" + ln -s libbaccats-${default_backend}-${library_version}${SHLIB_EXT} \ + libbaccats-${library_version}${SHLIB_EXT} fi exit 0 -- 1.7.5.4 ------------------------------------------------------------------------------ RSA® Conference 2012 Save $700 by Nov 18 Register now http://p.sf.net/sfu/rsa-sfdev2dev1 _______________________________________________ Bacula-devel mailing list Bacula-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/bacula-devel