From owner-freebsd-ports@freebsd.org Thu Sep 8 15:38:13 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 B3481BD1C0B for ; Thu, 8 Sep 2016 15:38:13 +0000 (UTC) (envelope-from linnemannr@gmail.com) Received: from mail-it0-x233.google.com (mail-it0-x233.google.com [IPv6:2607:f8b0:4001:c0b::233]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 7FDC63E9 for ; Thu, 8 Sep 2016 15:38:13 +0000 (UTC) (envelope-from linnemannr@gmail.com) Received: by mail-it0-x233.google.com with SMTP id i184so263838415itf.1 for ; Thu, 08 Sep 2016 08:38:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=2U04DlKxfHJUZoA1xuAKe0Cnoe0Z13N9Y22n+yDJU6E=; b=JK5iT4w2tJtZuik9hZrmCEBw0Jo/SsksesFPcK7n0JT9GJ7KNMQ2Ct/6viXEwDZDzT yL6clSijwS3hqMEK0niC82WyyAJANS1wMFOjdcu9KVxhx+8NQmk7ofox4nvzu7photHm dDn8UhRWEah+uFgB5Q1y+Yf4L+TI7cNBbd1MyxWoi4sB7LQ8j7FWtT8mMm4euBvk065S ruHYebGl+MaMUn9FD70Cy4lC+DTdOHPPM7nmpsfhUqnaqatlWqVmXkrOob+ryBie3uXg 2baqhRzztbAgi4q+SCJwf2ieFsmTSm86HDm47R6MpTxsu8bBM/Jtzfy8C82MhvT/cN+p iiWQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=2U04DlKxfHJUZoA1xuAKe0Cnoe0Z13N9Y22n+yDJU6E=; b=CVPrG2IC0eFG51/mAW8C9GDFWSUnS/JIrUpW6Hw0kH99LK5HkCCsHm0ZNcYEq2EQlO Pm+WxEtIJ1ug9OZHS2OT4xXstnPfkOa8uDuYFBM1wsEAm6HzK/4evAa9BtWZLlISyhy0 lEGgC2nn3y6023VAvZJpXnIYTqt/oEj8n3O/Tf9ZDYsCHiWkt34DByFKwMxcvHzrIh0s AycvpHG5Npzi8Z8gf8ofPpUifIQFkTnBIRZRmQNQ/Xv9x89lz5FQVZO4YYCztlMhHhMf aiq4U0PeRqOqKPWeEEg1eHSnNGUr81NWLdiLKZiStrsM5MKYfBKpMyImeI0u9J4gBuhD fFqg== X-Gm-Message-State: AE9vXwN0XJ00sv5r52PfFhmnh3szwYgE0aQWSDmZMxHvlFabLxTR1nH4KEc3N9JdPKVLYuvJXQ+/TrDn9WI3nA== X-Received: by 10.36.127.7 with SMTP id r7mr15559354itc.49.1473349092549; Thu, 08 Sep 2016 08:38:12 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.164.196 with HTTP; Thu, 8 Sep 2016 08:38:12 -0700 (PDT) From: Reid Linnemann Date: Thu, 8 Sep 2016 09:38:12 -0600 Message-ID: Subject: Using bsd.prog.mk in source Makefile To: freebsd-ports@freebsd.org Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:38:13 -0000 All, I'm having issues with an internal port in which the source tree makefile 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=yes to my port's MAKE_ENV and BUILD_ENV, and that did not appear to have any effect. Thanks! -Reid