From owner-freebsd-python@FreeBSD.ORG  Thu Apr  3 19:06:04 2014
Return-Path: <owner-freebsd-python@FreeBSD.ORG>
Delivered-To: python@freebsd.org
Received: from mx1.freebsd.org (mx1.freebsd.org
 [IPv6:2001:1900:2254:206a::19:1])
 (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits))
 (No client certificate requested)
 by hub.freebsd.org (Postfix) with ESMTPS id C7964DB7;
 Thu,  3 Apr 2014 19:06:04 +0000 (UTC)
Received: from mail-yh0-x235.google.com (mail-yh0-x235.google.com
 [IPv6:2607:f8b0:4002:c01::235])
 (using TLSv1 with cipher ECDHE-RSA-RC4-SHA (128/128 bits))
 (Client CN "smtp.gmail.com",
 Issuer "Google Internet Authority G2" (verified OK))
 by mx1.freebsd.org (Postfix) with ESMTPS id 7EF911E3;
 Thu,  3 Apr 2014 19:06:04 +0000 (UTC)
Received: by mail-yh0-f53.google.com with SMTP id v1so2155469yhn.12
 for <multiple recipients>; Thu, 03 Apr 2014 12:06:03 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113;
 h=mime-version:sender:in-reply-to:references:date:message-id:subject
 :from:to:cc:content-type;
 bh=2w0JxFHxh+wPSixQS1GDL0O8wDiaWJ4gpQIzos+3XPc=;
 b=ApYyaRxlLfZDlGognOjE3EdGlkuADo1rSTXlJ+1ATwrtMSRo2JESQ0DtSMkn3NV4qV
 G6Ni0sIPcO4zr8KQDrF7MHryNpDvkOex08IrpOQ2cIkgMTZ++QKvMIVaTUzyveIF+x0a
 cGkEjPumbhZNsKiJvIk2RXWdJuHXIfSjElGDEUORxVxinkZJ7qWvTsqroSwHk+nk1BKo
 HzoNanOm4Twx7QfI06j9cWOykbgbKN8UWWsvChmEu4X6yrKOG08HiEUPS1I2t5C0g99o
 QXEmvn/X4nnXa/YStbKL6vYXiL5vIFg3KPXSMPTzWSG+zBUy3jxKlBr3VgEqAzuSaCeE
 UwTQ==
MIME-Version: 1.0
X-Received: by 10.236.120.147 with SMTP id p19mr10819318yhh.6.1396551963600;
 Thu, 03 Apr 2014 12:06:03 -0700 (PDT)
Sender: antoine.brodin.freebsd@gmail.com
Received: by 10.170.80.11 with HTTP; Thu, 3 Apr 2014 12:06:03 -0700 (PDT)
In-Reply-To: <20140403190156.GA83695@mastodon.meroh.net>
References: <20140403190156.GA83695@mastodon.meroh.net>
Date: Thu, 3 Apr 2014 21:06:03 +0200
X-Google-Sender-Auth: 7tWttZUCgW4RuRbpY9-2DUiIzFI
Message-ID: <CAALwa8koQy2U2_t=vkZ_KdpDSVyrj6mAxHnR4wqjNPyXvXV=gg@mail.gmail.com>
Subject: Re: Make python27 build as an unprivileged user
From: Antoine Brodin <antoine@FreeBSD.org>
To: Julio Merino <jmmv@freebsd.org>
Content-Type: text/plain; charset=ISO-8859-1
Cc: python@freebsd.org
X-BeenThere: freebsd-python@freebsd.org
X-Mailman-Version: 2.1.17
Precedence: list
List-Id: FreeBSD-specific Python issues <freebsd-python.freebsd.org>
List-Unsubscribe: <http://lists.freebsd.org/mailman/options/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-python/>
List-Post: <mailto:freebsd-python@freebsd.org>
List-Help: <mailto:freebsd-python-request@freebsd.org?subject=help>
List-Subscribe: <http://lists.freebsd.org/mailman/listinfo/freebsd-python>,
 <mailto:freebsd-python-request@freebsd.org?subject=subscribe>
X-List-Received-Date: Thu, 03 Apr 2014 19:06:04 -0000

On Thu, Apr 3, 2014 at 9:01 PM, Julio Merino <jmmv@freebsd.org> wrote:
> Hello,
>
> I needed the patch below to be able to build python27 when using ports as
> an unprivileged user.  It is a bit too coarse-grained, but I think ports
> does not offer a finer-grained mechanism to indicate that only the staging
> phase needs root.
>
> (Note that pkgsrc marks all python packages as requiring root for the
> stage phase... and I suppose it's because of the same problem I encountered.)
>
> What do you think?  (If you think this is OK, I'll need an explicit approval
> to commit.)

Hi,

It's better to understand and fix the cause of the failure as non-root
than putting NEED_ROOT.

Cheers,

Antoine (with hat: portmgr)