From owner-freebsd-ports@freebsd.org Thu Sep 8 15:51:01 2016 Return-Path: Delivered-To: freebsd-ports@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E3A7CBD1E79 for ; Thu, 8 Sep 2016 15:51:01 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (prod2.absolight.net [79.143.243.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "plouf.absolight.net", Issuer "CAcert Class 3 Root" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 9B5B5B20 for ; Thu, 8 Sep 2016 15:51:01 +0000 (UTC) (envelope-from mat@FreeBSD.org) Received: from prod2.absolight.net (localhost [127.0.0.1]) by prod2.absolight.net (Postfix) with ESMTP id CEAA8BDC73; Thu, 8 Sep 2016 17:50:58 +0200 (CEST) Received: from ogg.in.absolight.net (ogg.in.absolight.net [79.143.241.239]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client did not present a certificate) by prod2.absolight.net (Postfix) with ESMTPSA id 62772BDC72; Thu, 8 Sep 2016 17:50:58 +0200 (CEST) Subject: Re: Using bsd.prog.mk in source Makefile To: Reid Linnemann , freebsd-ports@freebsd.org References: From: Mathieu Arnold Organization: Absolight / The FreeBSD Foundation Message-ID: Date: Thu, 8 Sep 2016 17:50:56 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.2.0 MIME-Version: 1.0 In-Reply-To: Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="0sMi55bTlnbSSVEiwCWpXKb8ODucPLEpa" X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 08 Sep 2016 15:51:02 -0000 This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --0sMi55bTlnbSSVEiwCWpXKb8ODucPLEpa Content-Type: multipart/mixed; boundary="AMuTuwlsFpPQprLThtbMDT0Pv8sB7Iac0"; protected-headers="v1" From: Mathieu Arnold To: Reid Linnemann , freebsd-ports@freebsd.org Message-ID: Subject: Re: Using bsd.prog.mk in source Makefile References: In-Reply-To: --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--