Xymon Mailing List Archive search

BBTOPDIR and BBHOME

3 messages in this thread

list Stef Coene · Tue, 9 Oct 2007 12:30:34 +0200 ·
Hi,

I wanted to build a client and put in a directory.  But all files are placed in a subdirectiry called client.  This is hardcoded in the confgure and Makefile scripts.
In the Makefile are 2 vaiabele defined: BBTOPDIR and BBHOME.  BBHOME = $BBTOPDIR/client.
Changing these variabele is not enough because the client subdirectory is also hardcoded in other places.  So in some places (for instance the clientlaunch.cfg) BBTOPDIR/client is used, this should be BBHOME.

I changed all files and removed the client directory dependency.  It's working now.  But maybe it's a better idea to change the configure and install scripts and use the variabele BBHOME and BBTOPDIR.


Stef
list Galen Johnson · Tue, 9 Oct 2007 07:29:13 -0400 ·
yes, client is a subdirectory and when you install the server it is put in a subdirectory called server.  How are you going to handle that when you install the server and client on the same machine?.   After all, it's just one level... 
=G=
quoted from Stef Coene

-----Original Message-----
From: Stef Coene [mailto:user-dbffe946c0f4@xymon.invalid]
Sent: Tue 10/9/2007 6:30 AM
To: user-ae9b8668bcde@xymon.invalid
Subject: [hobbit] BBTOPDIR and BBHOME
 Hi,

I wanted to build a client and put in a directory.  But all files are placed in a subdirectiry called client.  This is hardcoded in the confgure and Makefile scripts.
In the Makefile are 2 vaiabele defined: BBTOPDIR and BBHOME.  BBHOME = $BBTOPDIR/client.
Changing these variabele is not enough because the client subdirectory is also hardcoded in other places.  So in some places (for instance the clientlaunch.cfg) BBTOPDIR/client is used, this should be BBHOME.

I changed all files and removed the client directory dependency.  It's working now.  But maybe it's a better idea to change the configure and install scripts and use the variabele BBHOME and BBTOPDIR.


Stef
list Stef Coene · Tue, 9 Oct 2007 13:45:13 +0200 ·
quoted from Galen Johnson
On Tuesday 09 October 2007, Galen Johnson wrote:
yes, client is a subdirectory and when you install the server it is put in
a subdirectory called server.  How are you going to handle that when you
install the server and client on the same machine?.   After all, it's just
one level...
I install the hobbit client together with other tools and perl stuff in the same directory.  So I put the hobbit client in a directory called hobbit-client, not client.

But anyway, I still find it not correct to define 2 variables in the Makefile and not use them.  A fix is easy, remove all references to the client subdirectory and replace them with $BBHOME.


Stef