Hello,

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


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.

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