Saturday, July 31, 2021

Re: make: don't know how to make .tgz (prerequisite of: _internal-package-only)

Ciao Stuart,

Thanks for the feedback.

On 31/07/2021 17:20, Stuart Henderson wrote:
[...]
>
> Check that whatever you use for gaining privs during ports building
> is configured to pass the environment through. i.e. SUDO=sudo -E
> or if you use doas then make sure it has "keepenv".
>

I followed the bsd.port.mk(5) man page, as per PORTS_PRIVSEP variable
description, and port building is running ok since years (including
'make package' of course) for ports that don't use FLAVORS...

From my /etc/doas.conf:

> # Port/package management
> permit keepenv nopass :pkgmgr as _pfetch
> permit keepenv nopass :pkgmgr as _pbuild

and, of course, my normal user is in the 'pkgmgr' group.

This is my /etc/mk.conf:

> # Common mk.conf entries
> .include "/usr/ports/infrastructure/templates/mk.conf.template"
>
> # Use doas for tasks requiring superuser permissions
> SUDO = /usr/bin/doas
>
> # Use dedicated users for fetching/building ports
> PORTS_PRIVSEP = yes
>
> # Instead of using temp files, gcc(1) uses pipes for the temporary data
> PIPE = -pipe
>
> # Force pkg_create to save a copy of the generated packing lists
> PLIST_REPOSITORY = ${PORTSDIR}/plist
>
> # Use a separate working directory (it helps keeping ports tree clean)
> WRKOBJDIR = ${PORTSDIR}/pobj
>
> # Use packages to resolve dependencies
> FETCH_PACKAGES =
>
> # Path used by dependencies and bsd.port.subdir.mk to look up
> # package specifications
> PORTSDIR_PATH = ${PORTSDIR}/mystuff:${PORTSDIR}

Still unable to build the package as normal user (I verified that
running the target as root all is ok).

--
Alessandro De Laurenzis
[mailto:just22@atlantide.mooo.com]
Web: http://www.atlantide.mooo.com
LinkedIn: http://it.linkedin.com/in/delaurenzis

No comments:

Post a Comment