pcp
[Top] [All Lists]

developer installs outside /usr

To: pcp developers <pcp@xxxxxxxxxxx>
Subject: developer installs outside /usr
From: "Frank Ch. Eigler" <fche@xxxxxxxxxx>
Date: Thu, 5 Apr 2012 18:19:51 -0400
User-agent: Mutt/1.4.2.2i
Hi -

While hacking on pmwebapi today (yey, it can enumerate metrics now!),
I came across an apparently designed-in limitation of the autoconf
system used in pcp.  It is that unprivileged developers appear unable
to install the entire build under some random user directory for
testing: a lot of paths get hard-coded to /var or /etc or whatnot,
despite configure's --prefix option.  (I opened BZ921 about this.)

Would you welcome improving this, so that pcp's pcp.conf files etc.
all start to respect --prefix, and the various tools become willing to
run out of any particular installation tree?  Among other things, this
would involve being able to bypass stuff like this in configure.in:


pcp_var_dir=`eval echo $localstatedir`
pcp_var_dir=`eval echo $pcp_var_dir`
if test -z "`echo $pcp_var_dir | sed 's;/.*\$;;'`"
then
    if test $target_os = mingw
    then
        pcp_var_dir=
    elif test -d /var/lib
    then
        pcp_var_dir=/var/lib/pcp
    elif test -d /var
    then
        pcp_var_dir=/var/pcp
    elif test -d /usr/local
    then
        pcp_var_dir=/usr/local/pcp
    else
        pcp_var_dir=/usr
    fi
fi


- FChE

<Prev in Thread] Current Thread [Next in Thread>
  • developer installs outside /usr, Frank Ch. Eigler <=