Subject: Re: pkgsrc as non-root?
To: Pierre Bourgin <>
From: Hubert Feyrer <>
List: tech-pkg
Date: 10/07/2003 18:22:18
On Tue, 7 Oct 2003, Pierre Bourgin wrote:
> If I build a foo package as normal user "bourgin" in my $HOME directory and
> so create a foo-1.0.tgz binary package, will I be able to install this
> foo-1.0.tgz binary package on a another machine in the "regular" way, I mean
> as root ?
> No problem of who owning files and dir. for instance ?

As frequently paths are compiled into binaries, this can not be answered
with "yes" in general. Also, as binary pkgs are usually just tar'ed up,
there's the permission problem too. The latter may be solved by adding the
right @owner and @group statements to PLIST, but for compiled in paths
(and paths in general), you can't safely install the package into a
different location then where you built/compiled it into.

I.e. if you install (as non-root) into /home/joe/pkg, you'll most safely
put it into that path again with pkg_add. Something else may work, but
doesn't have to. (Thinking about rpath, shared libs/depends are another

User-owned /usr/pkg may be a way out of the paths problem though. ;)

 - Hubert