pcp
[Top] [All Lists]

Re: --prefix does not work.

To: Mark Goodwin <markgw@xxxxxxx>
Subject: Re: --prefix does not work.
From: Brian Harvell <harvell@xxxxxxx>
Date: Thu, 23 Aug 2001 22:57:20 -0400 (EDT)
Cc: Ken McDonell <kenmcd@xxxxxxxxxxxxxxxxx>, <pcp@xxxxxxxxxxx>
In-reply-to: <Pine.LNX.4.21.0108201008320.24453-100000@xxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: owner-pcp@xxxxxxxxxxx
On Mon, 20 Aug 2001, Mark Goodwin wrote:
>
> Perhaps we weren't clear enough: PCP does not use --prefix in the
> configure part of the build because PCP requires multiple points of
> relocation but --prefix only provides one, rendering --prefix useless.
>
> The correct way to relocate PCP directories is to change
> src/include/pcp.conf.in. If you still disagree, then you must know
> something about --prefix that we are missing, so fix it and send me
> a patch!
>

If you just use prefix it uses the defaults and you can't split it. However,
you can have a more fine grained control by specifying libdir localstatedir
etc. I've attached a patch that will allow you to do this. It's a little bit of
a kludge but it works. If you don't specify anything it works as before. This
patch also fixes a few typos that prevent even modifying pcp.conf.in from
working correctly (hard coded paths and pulling the wrong config var)

Personally I think the old directory structure could just go away. I didn't
like it in the Irix day and it's even worse in a gnu environment.

On another note anyone know if there are any hardware monitoring pmdas? I'm
looking to be able to detect when things like disk, memory, cpus etc go bad.


Brian



-- 

Brian Harvell                harvell@xxxxxxx             http://ToolBoy.com/
echo '[q]sa[ln0=aln256%Pln256/snlbx]sb3135071790101768542287578439snlbxq'|dc



Attachment: pcp-2.2.1.patch
Description: Text document

<Prev in Thread] Current Thread [Next in Thread>