From owner-freebsd-python@FreeBSD.ORG Thu Apr 3 19:30:12 2014 Return-Path: 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 928AD4D4 for ; Thu, 3 Apr 2014 19:30:12 +0000 (UTC) Received: from mail-qc0-f175.google.com (mail-qc0-f175.google.com [209.85.216.175]) (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 4E7A13CB for ; Thu, 3 Apr 2014 19:30:11 +0000 (UTC) Received: by mail-qc0-f175.google.com with SMTP id e16so2372605qcx.6 for ; Thu, 03 Apr 2014 12:30:04 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:sender:date:from:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent; bh=qTRvoOaqAhYhbTWmOTPs0biDz14bnhYboKunFn5v3yw=; b=SYlVbkAVcQO9DEX3+HrwJP6T++MJuYfjj3edkP5889PJfP1Iae4ViBgrLSSx1q1Yku je8ce1dvh0hx07zBHFVMlCH2yHzy+TUEOddGu3p7Gp70u8CoRIHq409RScBpFqrriIl0 x2YJAdPdHY58+/lMGjOMmp2GYpkC7D3N3ggAQrYlVIRtZ0qXc0BKwmkZrTsuxs33OwQi rAknIIfm3W95yHtf2+KcDpz0JxPG0+dQejdbk2Ser8zp56jzD+ZIar1DpTi3+lTGvQkp UazK5LKz1xJnYWMnP2PpJ0L5Yd80G8CYb0Yyx2QauCJPTYTSP2Z4xaoMmNupbfyqYy7V sGxA== X-Gm-Message-State: ALoCoQl1mJimgkva+QyJpsO4kPZT+ukk0JF1OkMX0B1CcMmnmadM61DCyYXEcvTUd/s3LQJgTYis X-Received: by 10.224.0.79 with SMTP id 15mr9775817qaa.2.1396553064291; Thu, 03 Apr 2014 12:24:24 -0700 (PDT) Received: from mastodon.meroh.net (cpe-108-176-158-82.nyc.res.rr.com. [108.176.158.82]) by mx.google.com with ESMTPSA id m2sm11733783qac.3.2014.04.03.12.24.23 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Apr 2014 12:24:23 -0700 (PDT) Sender: Julio Merino Date: Thu, 3 Apr 2014 15:24:20 -0400 From: Julio Merino To: Antoine Brodin Subject: Re: Make python27 build as an unprivileged user Message-ID: <20140403192420.GA36985@mastodon.meroh.net> References: <20140403190156.GA83695@mastodon.meroh.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.23 (2014-03-12) Cc: python@freebsd.org X-BeenThere: freebsd-python@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: FreeBSD-specific Python issues List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 03 Apr 2014 19:30:12 -0000 On Thu, Apr 03, 2014 at 09:06:03PM +0200, Antoine Brodin wrote: > On Thu, Apr 3, 2014 at 9:01 PM, Julio Merino 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. pkgsrc has had the "need root" requirement in place for _years_ and people have tried to fix it before. For these reasons, I don't think it's a trivial thing to do this and I certainly do not have the time to investigate it at the moment.