tech-pkg archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: Make WRKOBJDIR for py*- pkgs version specific?



On Sat, Feb 02, 2019 at 10:52:06AM +0100, Benny Siegert wrote:
> On Fri, Feb 1, 2019 at 8:47 PM Martin Husemann <martin%duskware.de@localhost> wrote:
> >
> > Can we please make the WRKOBJDIR for multi-version pkgs include the version
> > name?
> 
> OpenBSD ports uses "w-${PKGNAME}" as the work directory (instead of
> work). I think that's nice.

Not quite. We actually use

${PKGNAME}${_FLAVOR_EXT2} as the basis for wrkdir, e.g.,
PKGNAME (with version number) + flavor marker (e.g., options that tweak
the way things are built)

The work directory itself hasn't been under the  port's individual dir for
a few years by now,  hence we've dropped the w- prefix, all wrkdirs live under
WRKOBJDIR (${PORTSDIR}/pobj by default)  so that it's trivial to have a
read-only portsdir   for privilege separation.


for instance, right now, my poppler wrkdir looks like this:

$ make show=WRKDIR
/usr/obj/pobj/poppler-0.59.0-no_qt4-no_qt5-bootstrap


Home | Main Index | Thread Index | Old Index