Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 4 Dec 2013 17:20:47 +0900
From:      till plewe <till.plewe@gmail.com>
To:        FreeBSD-Questions <freebsd-questions@freebsd.org>
Subject:   Re: local ports collection
Message-ID:  <CACxAsm6tmW==_EpcvBzXxmSVNn0kS9d3G1VKxW8r5X12BNxOPA@mail.gmail.com>
In-Reply-To: <CACxAsm6fEbEduYoS=VVwXxV_YonjpHrbhdMiD_HO-bxaef+Z2A@mail.gmail.com>
References:  <CACxAsm7khsW9Gt4uC6kHGvaX5-LZ=iMw_7qaw2=u63DvSDJKBQ@mail.gmail.com> <44r49tg8uv.fsf@lowell-desk.lan> <CACxAsm6fEbEduYoS=VVwXxV_YonjpHrbhdMiD_HO-bxaef+Z2A@mail.gmail.com>

Next in thread | Previous in thread | Raw E-Mail | Index | Archive | Help
Setting LDFCONFIG as well got a bit further but now I am stuck at
ranlib complaining that it cannot open a ".a" file (when trying to
install python2.7.6). The problem seems to be that files are installed
using permissions 0444 rather than 0644 when used by a non-root user.
Is there a simple method to work around this or rather to set this
properly?

On Wed, Dec 4, 2013 at 2:46 AM, till plewe <till.plewe@gmail.com> wrote:
> Thanks for the answer. DESTDIR was supposed to be DISTDIR (typo).
> Setting SU_CMD was the hint I needed. Now it seems adjusting ldconfig
> is the only thing left to do. pkg installed without problems.
>
> On Wed, Dec 4, 2013 at 2:08 AM, Lowell Gilbert
> <freebsd-questions-local@be-well.ilk.org> wrote:
>> till plewe <till.plewe@gmail.com> writes:
>>
>>> I would like to use the ports tree to install and manage packages inside my
>>> home directory. I tried setting:
>>>
>>> PKG_DBDIR,PREFIX,PORTSDIR,LOCALBASE,PORT_DBDIR,DESTDIR
>>
>> Don't use DESTDIR; it doesn't do what you think it does.
>> [What did you think it did anyway, and why?]
>>
>>> to directories within my home directory but then I get error messages like
>>>
>>> $ make build
>>> ===>  Creating some important subdirectories
>>> mount_nullfs: Operation not permitted
>>>
>>> when trying to build/install ports.
>>>
>>> Any suggestions on how to use ports completely avoiding root?
>>> (I rented space on a server and have permission to install binaries
>>> but do not have root access)
>>
>> You'll probably have to change SU_CMD as well.
>> Something like "su $USER -c" should do it.
>> And you may need to bootstrap the pkg(8) command somehow.
>>
>> Good luck.



Want to link to this message? Use this URL: <http://docs.FreeBSD.org/cgi/mid.cgi?CACxAsm6tmW==_EpcvBzXxmSVNn0kS9d3G1VKxW8r5X12BNxOPA>