Hello,
there's some redundant code on the configure script in Bacula 5.2.2.
Whn passing "--with-hostname=RESNAME" to configure, the parameter is
ignored and always gets to the output of "uname -n" on the machine
that is currently building Bacula.
Later parts of the configure script correctly set the hostname to
"uname -n" if no hostname is passed on the command line, but that is
overwritten by the redundant code anyway.
Attached is the patch which removes the redundant code in configure
and just leaves the logic already in place for determining or
overriding the hostname.
The already functioning logic is at line 23173 of the unpatched
"configure" script.
diff -Naur bacula-5.2.2.old/configure bacula-5.2.2/configure
--- bacula-5.2.2.old/configure 2011-11-26 15:08:12.000000000 +0100
+++ bacula-5.2.2/configure 2011-12-11 18:17:30.530625327 +0100
@@ -30019,15 +30019,6 @@
MACOSX=
COMPRESS_MANPAGES=yes
-hostname=`uname -n | cut -d '.' -f 1`
-if test x${hostname} = x ; then
- hostname="localhost"
-fi
-ping -c 1 $hostname 2>/dev/null 1>/dev/null
-if test ! $? = 0; then
- hostname="localhost"
-fi
-
case "$DISTNAME" in
aix)
DISTVER=`uname -r`
Thanks,
--Simone
--
You cannot discover new oceans unless you have the courage to lose
sight of the shore (R. W. Emerson).
diff -Naur bacula-5.2.2.old/configure bacula-5.2.2/configure
--- bacula-5.2.2.old/configure 2011-11-26 15:08:12.000000000 +0100
+++ bacula-5.2.2/configure 2011-12-11 18:17:30.530625327 +0100
@@ -30019,15 +30019,6 @@
MACOSX=
COMPRESS_MANPAGES=yes
-hostname=`uname -n | cut -d '.' -f 1`
-if test x${hostname} = x ; then
- hostname="localhost"
-fi
-ping -c 1 $hostname 2>/dev/null 1>/dev/null
-if test ! $? = 0; then
- hostname="localhost"
-fi
-
case "$DISTNAME" in
aix)
DISTVER=`uname -r`
------------------------------------------------------------------------------
Learn Windows Azure Live! Tuesday, Dec 13, 2011
Microsoft is holding a special Learn Windows Azure training event for
developers. It will provide a great way to learn Windows Azure and what it
provides. You can attend the event by watching it streamed LIVE online.
Learn more at http://p.sf.net/sfu/ms-windowsazure
_______________________________________________
Bacula-devel mailing list
Bacula-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bacula-devel