Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 8 Sep 2016 17:50:56 +0200
From:      Mathieu Arnold <mat@FreeBSD.org>
To:        Reid Linnemann <linnemannr@gmail.com>, freebsd-ports@freebsd.org
Subject:   Re: Using bsd.prog.mk in source Makefile
Message-ID:  <fae65ea1-eeeb-bd1c-bfd5-0d229f7042f0@FreeBSD.org>
In-Reply-To: <CA%2B0MdpNvvzUhWJDc46w7U5QZfLO_rSPSZ5wJeC5DFFP79y3LGQ@mail.gmail.com>
References:  <CA%2B0MdpNvvzUhWJDc46w7U5QZfLO_rSPSZ5wJeC5DFFP79y3LGQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--0sMi55bTlnbSSVEiwCWpXKb8ODucPLEpa
Content-Type: multipart/mixed; boundary="AMuTuwlsFpPQprLThtbMDT0Pv8sB7Iac0";
 protected-headers="v1"
From: Mathieu Arnold <mat@FreeBSD.org>
To: Reid Linnemann <linnemannr@gmail.com>, freebsd-ports@freebsd.org
Message-ID: <fae65ea1-eeeb-bd1c-bfd5-0d229f7042f0@FreeBSD.org>
Subject: Re: Using bsd.prog.mk in source Makefile
References: <CA+0MdpNvvzUhWJDc46w7U5QZfLO_rSPSZ5wJeC5DFFP79y3LGQ@mail.gmail.com>
In-Reply-To: <CA+0MdpNvvzUhWJDc46w7U5QZfLO_rSPSZ5wJeC5DFFP79y3LGQ@mail.gmail.com>

--AMuTuwlsFpPQprLThtbMDT0Pv8sB7Iac0
Content-Type: text/plain; charset=utf-8
Content-Transfer-Encoding: quoted-printable

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.

--=20
Mathieu Arnold



--AMuTuwlsFpPQprLThtbMDT0Pv8sB7Iac0--

--0sMi55bTlnbSSVEiwCWpXKb8ODucPLEpa
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iQJ8BAEBCgBmBQJX0YjhXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXQzQUI2OTc4OUQyRUQxMjEwNjQ0MEJBNUIz
QTQ1MTZGMzUxODNDRTQ4AAoJEDpFFvNRg85INUUP/0UO57gUR5vl/PuaBF2w1sq8
s4sOiCKfO078UXG8BONW7QNdIk/RXcxOCVIFHOCoyMp4kgtCi+M7mocGnkEJGa4M
6je1fnQr8eUX1O59Pki/iLpjmdgmF5bRCoqIsM7YMFbuM54hPccUYOBS/CnT/ppS
w2FCipeSzohm258EymcH4a3ZHZupzLAm1QPcw/ion5AW3Ozi7Zt16bk347tVjdeV
2UDsz/tsfbfqtlzFSQjZ8kzgkBXMo67PkqSOj2ysm3fvhRdMvqGMJVdtn6dr8OfM
e14LyyHcteVrkPjClJhrwUXBU85hcXpihH+VPmwLisjEbGb3UZm3C9C7ysqsvyyr
UWEF24n1GsBRtbuvvG/BemK2j62yPHyiZ39B7Whq/+YKh9w2+a3izEHQHXI0FwKu
j/JQICKxMy1U90n+V3M7kutTMI+I8MiRtru0gGDkxmsm+94zA43mgnr92lDX0uds
L3eeHN7AnQGchu9nGkQ7HzxRYFw8NfkrQkcw94l7HZGIvMq+RhdoPoG20j0tK6NG
AhwuJJ58srMEQgyGlmfxvyirLpZgxWnyoqdsv2rgZ7dWphkHzE+k98VpzgzTcAU7
f7P44RM0ci167lbSlKLF0pYtgGpIa7oVw4ZoTrBi9G4QcC7g1eXDNz2h8kfKzvXH
za5aEJV6G9XJnWpyD0nV
=ifPw
-----END PGP SIGNATURE-----

--0sMi55bTlnbSSVEiwCWpXKb8ODucPLEpa--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?fae65ea1-eeeb-bd1c-bfd5-0d229f7042f0>