Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Sep 2016 10:00:39 -0600
From:      Reid Linnemann <linnemannr@gmail.com>
To:        Mathieu Arnold <mat@freebsd.org>
Cc:        freebsd-ports@freebsd.org
Subject:   Re: Using bsd.prog.mk in source Makefile
Message-ID:  <CA%2B0MdpO-FwTq-B4SiyGqWvMsrhttMaisqxd-sYVV164%2BnWgGDQ@mail.gmail.com>
In-Reply-To: <fae65ea1-eeeb-bd1c-bfd5-0d229f7042f0@FreeBSD.org>
References:  <CA%2B0MdpNvvzUhWJDc46w7U5QZfLO_rSPSZ5wJeC5DFFP79y3LGQ@mail.gmail.com> <fae65ea1-eeeb-bd1c-bfd5-0d229f7042f0@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
I really don't want to use autotools for this project, as it is only for a
freebsd product, and bsd.prog.mk and bsd.lib.mk make things very easy,
especially when I want to build and install the project outside of the
context of a port. What alternatives would you suggest? Others in my group
have overridden the do-install port target to avoid invoking the source
install target, but I think that's a little kludgey.

On Thu, Sep 8, 2016 at 9:50 AM, Mathieu Arnold <mat@freebsd.org> wrote:

> Le 08/09/2016 =C3=A0 17:38, Reid Linnemann a =C3=A9crit :
> > All,
> >
> > I'm having issues with an internal port in which the source tree makefi=
le
> > uses bsd.prog.mk. Using poudriere to build packages as a non-root user,
> any
> > targets in the source makefiles which use *OWN and *GRP (such as the
> > install target) will fail during staging because of an attempt to
> > chown/chgrp that the non-privileged build user cannot perform. I'm
> > wondering what the proper resolution for this problem is?
> >
> > I've tried setting WITH_INSTALL_AS_USER=3Dyes to my port's MAKE_ENV and
> > BUILD_ENV, and that did not appear to have any effect.
>
> First, let me say that a port should really not use the base system
> bsd.prog.mk bsd.lib.mk, and such, because they are moving targets, and
> can break your port in no time.
>
> Now, you need to remove all user/groups from the software's Makefile so
> that it does not try to chown/grp things, and you must put all the
> user/group things in the pkg-plist file using @owner and @group.
>
> --
> Mathieu Arnold
>
>
>



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CA%2B0MdpO-FwTq-B4SiyGqWvMsrhttMaisqxd-sYVV164%2BnWgGDQ>