POV-Ray : Newsgroups : povray.beta-test : --prefix ignored? Server Time
28 Jul 2024 18:16:22 EDT (-0400)
  --prefix ignored? (Message 1 to 2 of 2)  
From: Warp
Subject: --prefix ignored?
Date: 1 Apr 2008 14:29:03
Message: <47f28cfe@news.povray.org>
Someone reported that the unix version of povray 3.7 always uses
/usr/local/share/povray-3.7 regardless of what was specified with
--prefix.

  I haven't tested the veracity of this myself, though.

-- 
                                                          - Warp


Post a reply to this message

From: Joe Peterson
Subject: Re: --prefix ignored?
Date: 4 Apr 2008 10:30:07
Message: <47F6497E.6050802@gentoo.thisnotpartofaddr.org>
Warp wrote:
>   Someone reported that the unix version of povray 3.7 always uses
> /usr/local/share/povray-3.7 regardless of what was specified with
> --prefix.
> 
>   I haven't tested the veracity of this myself, though.

Yes, I just ran into this myself.  I maintain povray for Gentoo Linux,
and I just released a new ebuild for beta25, and I had to add a hack to
get the paths working.  It seems (well, I assume this is the culprit)
that POVCONFDIR and POVLIBDIR are not set during the build, even when
the config files get installed to the desired location, so they take on
the default values set in vfe/unix/unixoptions.h (which is
/usr/local...).  In Gentoo's case, we have the conf files, e.g., install
to /etc/povray/...  The following code in our new ebuild fixes this for us:

        MY_MAIN_VER=$(get_version_component_range 1-2)
        append-flags -DPOVLIBDIR=\\\"/usr/share/${PN}-${MY_MAIN_VER}\\\"
        append-flags -DPOVCONFDIR=\\\"/etc/${PN}/${MY_MAIN_VER}\\\"

POVCONFDIR evaluates to "/etc/povray/3.7" in this case, which is where
the conf files are.

					-Joe


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.