On Mon, Mar 21, 2016 at 03:03:15PM GMT, Karl O. Pinc wrote:
> Hello,

Hi Karl,

> This is something of an FYI.
> 
> OpenBSD 5.8-stable.
> 
> I tried following the instructions in ports(7)
> and the FAQ to build ports as an ordinary user.
> I added to /etc/mk.conf:
> 
> WRKOBJDIR=/usr/obj/ports
> DISTDIR=/usr/distfiles
> PACKAGE_REPOSITORY=/usr/packages

If you leave the defaults and don't explicitly set any of the above,
all the relevant directories will be under /usr/ports, which can
make your life easier (see below):

PORTSDIR=/usr/ports
DISTDIR=${PORTSDIR}/distfiles
WRKOBJDIR=${PORTSDIR}/pobj
PACKAGE_REPOSITORY=${PORTSDIR}/packages

Available disk space will obviously play a part here.

> I then tried to build a port with:
> 
> make package LOCKDIR= BULK=Yes
> 
> I got permission errors writing the package list
> since my user does not have permissions to write
> in /usr/ports/.  Apologies, I did not copy the
> exact error.

This is not a bug - the FAQ clearly states[0] what you need to do.

Next time, it might be worth asking on ports@ :^)

Regard,

Raf

[0] http://www.openbsd.org/faq/faq15.html#PortsConfig

> I also found a similar problem related to cookies.
> 
> I found that setting
> 
> BULK_COOKIES_DIR=${PACKAGE_REPOSITORY}/bulk/${MACHINE_ARCH}
> PLIST_DB=${PACKAGE_REPOSITORY}/plist/${MACHINE_ARCH}/
> 
> Allowed me to succeed.  I could be wrong but didn't see
> anything in the FAQ regards this.
> 
> Perhaps BULK_COOKIES_DIR, UPDATE_COOKIES_DIR, and
> PLIST_DB in bsd.port.mk should all be based off of
> PACKAGE_REPOSITORY rather than PORTSDIR, or something, to better
> support building as a regular user?
> 
> I hope this feedback is helpful.  Otherwise, ignore it.
> 
> Regards,
> 
> Karl <[email protected]>
> Free Software:  "You don't pay back, you pay forward."
>                  -- Robert A. Heinlein
> 

Reply via email to