From owner-freebsd-python@FreeBSD.ORG Fri Apr 4 09:57:20 2014 Return-Path: Delivered-To: python@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 8B6414FC; Fri, 4 Apr 2014 09:57:20 +0000 (UTC) Received: from mail-yk0-x229.google.com (mail-yk0-x229.google.com [IPv6:2607:f8b0:4002:c07::229]) (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 3B1F280F; Fri, 4 Apr 2014 09:57:20 +0000 (UTC) Received: by mail-yk0-f169.google.com with SMTP id 142so2678919ykq.14 for ; Fri, 04 Apr 2014 02:57:19 -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=PcSH+rovB7YBXZL5XBQ/sTYQKffHYngzeIZqzdb4uGA=; b=xP1sxuwlgD4J5HCfzDgTjQYMrhu9HnhKx381sNcWBDlWy6WflWADYF0hgW9BLGkgaA wkLSeAQJmiHUZMafSo9qrFlPwdJq1CTpAz5fMCFhyg7i2mQqvyUAlTAYXAYtFf+TQSAQ +/jvZHrsNXyvQdM+VrgPqYZ/o43Zw6E9MZo6Hlk/fqFBNYZzc8uM/gx61MBgRxn8PPPM 6irpm/lYMGUL/cl7vLfyuz3t5ZRjHhLfQTdXanlULt9hxU2L10fqt35JccevfJZLKPA1 ycRTsTKt/KpOvgia78dLyZkXpOKVd7+R7M3QTQek94Em9kcOyZYA8GaNGqGEDLWX0/SP kMyg== MIME-Version: 1.0 X-Received: by 10.236.30.230 with SMTP id k66mr15157077yha.57.1396605439250; Fri, 04 Apr 2014 02:57:19 -0700 (PDT) Sender: antoine.brodin.freebsd@gmail.com Received: by 10.170.80.11 with HTTP; Fri, 4 Apr 2014 02:57:19 -0700 (PDT) In-Reply-To: References: <20140403190156.GA83695@mastodon.meroh.net> <20140403192420.GA36985@mastodon.meroh.net> Date: Fri, 4 Apr 2014 11:57:19 +0200 X-Google-Sender-Auth: o9MaqNEekhc7Dmq0lK49x8rFI6Q Message-ID: Subject: Re: Make python27 build as an unprivileged user From: Antoine Brodin To: Julio Merino Content-Type: multipart/mixed; boundary=089e016340741942ae04f6348b5a 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: Fri, 04 Apr 2014 09:57:20 -0000 --089e016340741942ae04f6348b5a Content-Type: text/plain; charset=ISO-8859-1 On Fri, Apr 4, 2014 at 12:51 AM, Julio Merino wrote: > On Thu, Apr 3, 2014 at 3:30 PM, Antoine Brodin wrote: >> koobs' new python34 port (not committed yet) packages fine as non >> root, so it seems doable. > > Sorry but I don't see how that's relevant. Python 3.4 is a much more > modern package than 2.7 and many things may have changed in its build > infrastructure. > > Yes, fixing the root cause is doable for sure, and I agree with you > that, ideally, this should be properly fixed. But: I don't think it's > worth our time considering that: 1) this is for the "old" 2.x branch > and 2) some knowledgeable people have already tried and failed at > doing so. > > As things currently are, the python27 package is broken when building > from ports as non-root. (Which by the way is annoying for > architectures without prebuilt packages; I have found this problem > under powerpc64!) > > What I'm proposing is that we trivially workaround the problem by > *temporarily* defining NEED_ROOT and later investigating the failure. > Doing the former does not preclude the latter, but at least fixes the > obvious bug. > > I don't want to put words on your mouth, but what I think you are > proposing is that we leave the package broken for an arbitrary > (possibly infinite) amount of time until someone decides to track and > fix the root cause. If you are offering to investigate this relatively > soon as the maintainer that's perfect though. > > So up to you really! If you do not agree with the workaround, I will > at least file a PR for proper tracking. Try attached patch. Cheers, Antoine --089e016340741942ae04f6348b5a Content-Type: text/plain; charset=US-ASCII; name="python27.diff" Content-Disposition: attachment; filename="python27.diff" Content-Transfer-Encoding: base64 X-Attachment-Id: f_htlas5o10 QWxsb3cgc3RhZ2luZyBweXRob24yNyBhcyBhIHJlZ3VsYXIgdXNlcjoKCi0gd2hlbiBjb21waWxp bmcsIGRvbid0IGNvbXBpbGUgdGhlIHJ1bm5pbmcgY29tbWFuZCBvdGhlcndpc2UgaXQgZmFpbHMg dG8gY29tcGlsZSBtb2R1bGVzIGltcG9ydGVkIGJ5IHRoZSBydW5uaW5nIGNvbW1hbmQKClNvcnJ5 IFtFcnJubyAxM10gUGVybWlzc2lvbiBkZW5pZWQ6ICcvd3JrZGlycy91c3IvcG9ydHMvbGFuZy9w eXRob24yNy93b3JrL3N0YWdlL3Vzci9sb2NhbC9saWIvcHl0aG9uMi43L2dldG9wdC5weWMnClNv cnJ5IFtFcnJubyAxM10gUGVybWlzc2lvbiBkZW5pZWQ6ICcvd3JrZGlycy91c3IvcG9ydHMvbGFu Zy9weXRob24yNy93b3JrL3N0YWdlL3Vzci9sb2NhbC9saWIvcHl0aG9uMi43L3B5X2NvbXBpbGUu cHljJwpTb3JyeSBbRXJybm8gMTNdIFBlcm1pc3Npb24gZGVuaWVkOiAnL3dya2RpcnMvdXNyL3Bv cnRzL2xhbmcvcHl0aG9uMjcvd29yay9zdGFnZS91c3IvbG9jYWwvbGliL3B5dGhvbjIuNy9zdHJ1 Y3QucHljJwpTb3JyeSBbRXJybm8gMTNdIFBlcm1pc3Npb24gZGVuaWVkOiAnL3dya2RpcnMvdXNy L3BvcnRzL2xhbmcvcHl0aG9uMjcvd29yay9zdGFnZS91c3IvbG9jYWwvbGliL3B5dGhvbjIuNy9n ZXRvcHQucHlvJwpTb3JyeSBbRXJybm8gMTNdIFBlcm1pc3Npb24gZGVuaWVkOiAnL3dya2RpcnMv dXNyL3BvcnRzL2xhbmcvcHl0aG9uMjcvd29yay9zdGFnZS91c3IvbG9jYWwvbGliL3B5dGhvbjIu Ny9weV9jb21waWxl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ZW4gXAorIAkJCQkkKElOU1RBTExfREFUQSkgJChMRExJQlJBUlkpICQoREVTVERJUikkKExJQlBM KSA7IFwKKyAJCQllbHNlIFwKKysJCQkJJChSQU5MSUIpICQoTElCUkFSWSkgOyBcCisgCQkJCSQo SU5TVEFMTF9EQVRBKSAkKExJQlJBUlkpICQoREVTVERJUikkKExJQlBMKS8kKExJQlJBUlkpIDsg XAorLQkJCQkkKFJBTkxJQikgJChERVNURElSKSQoTElCUEwpLyQoTElCUkFSWSkgOyBcCisgCQkJ Zmk7IFwKKyAJCWVsc2UgXAorIAkJCWVjaG8gU2tpcCBpbnN0YWxsIG9mICQoTElCUkFSWSkgLSB1 c2UgbWFrZSBmcmFtZXdvcmtpbnN0YWxsOyBcCg== --089e016340741942ae04f6348b5a--