> > Just one thing -- some scripts under /var/db/pkg/*/ hardcode the value
> > of LOCALBASE. Would this be a problem if the directory is NFS-shared
> > between multiple hosts, each of them having different LOCALBASE setting?
>
> This is a widespread thing. Many, many software packages hardcode their
> install paths, and fixing them is a one-package-at-a-time process.
>
> That aside, you should never try to use a pkg directory in this way. Even
> if we fixed lots of packages to have a "dynamic" LOCALBASE, we rely on the
> "rpath" feature of some shared object systems (ELF in particular) to make
> shared libraries locateable properly at run time. This means that LOCALBASE
> *must not* change from install time to run time. (ld.so.conf hacks may work
> for some cases, but they definitely will not work for all of them.)
Eh, completely missed this part of the problem -- now I see it would be
Just Insane. Dind't have enough coffee in the morning... ;-)
Regards,
-- Jachym Holecek