Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 4 Apr 2014 11:57:19 +0200
From:      Antoine Brodin <antoine@FreeBSD.org>
To:        Julio Merino <jmmv@freebsd.org>
Cc:        python@freebsd.org
Subject:   Re: Make python27 build as an unprivileged user
Message-ID:  <CAALwa8m2MetR9mUmT5K3zRc_szt-Btgq=DbYpDLa-aqWnuSy_Q@mail.gmail.com>
In-Reply-To: <CAFY7cWAMZ9vy7GtoRLK-R5sogNkqq%2BtHQPVSpmduq5%2BmLhxxyQ@mail.gmail.com>
References:  <20140403190156.GA83695@mastodon.meroh.net> <CAALwa8koQy2U2_t=vkZ_KdpDSVyrj6mAxHnR4wqjNPyXvXV=gg@mail.gmail.com> <20140403192420.GA36985@mastodon.meroh.net> <CAALwa8mEB7wZRhBCJ5n=ejAAQcz35_J6V8OoUpVXAhAs9SvY5w@mail.gmail.com> <CAFY7cWAMZ9vy7GtoRLK-R5sogNkqq%2BtHQPVSpmduq5%2BmLhxxyQ@mail.gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
--089e016340741942ae04f6348b5a
Content-Type: text/plain; charset=ISO-8859-1

On Fri, Apr 4, 2014 at 12:51 AM, Julio Merino <jmmv@freebsd.org> wrote:
> On Thu, Apr 3, 2014 at 3:30 PM, Antoine Brodin <antoine@freebsd.org> 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
L3BvcnRzL2xh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URElSKSQoTElCREVTVCkvY29tcGlsZWFsbC5w
eSBcCisgCQktZCAkKExJQkRFU1QpIC1mIFwKKyAJCS14ICdiYWRfY29kaW5nfGJhZHN5bnRheHxz
aXRlLXBhY2thZ2VzfGxpYjJ0bzMvdGVzdHMvZGF0YScgXAorIAkJJChERVNURElSKSQoTElCREVT
VCkKK0BAIC0xMDg5LDggKzEwODksOCBAQAorIAkJCWlmIHRlc3QgIiQoU08pIiA9IC5kbGw7IHRo
ZW4gXAorIAkJCQkkKElOU1RBTExfREFUQSkgJChMRExJQlJBUlkpICQoREVTVERJUikkKExJQlBM
KSA7IFwKKyAJCQllbHNlIFwKKysJCQkJJChSQU5MSUIpICQoTElCUkFSWSkgOyBcCisgCQkJCSQo
SU5TVEFMTF9EQVRBKSAkKExJQlJBUlkpICQoREVTVERJUikkKExJQlBMKS8kKExJQlJBUlkpIDsg
XAorLQkJCQkkKFJBTkxJQikgJChERVNURElSKSQoTElCUEwpLyQoTElCUkFSWSkgOyBcCisgCQkJ
Zmk7IFwKKyAJCWVsc2UgXAorIAkJCWVjaG8gU2tpcCBpbnN0YWxsIG9mICQoTElCUkFSWSkgLSB1
c2UgbWFrZSBmcmFtZXdvcmtpbnN0YWxsOyBcCg==
--089e016340741942ae04f6348b5a--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAALwa8m2MetR9mUmT5K3zRc_szt-Btgq=DbYpDLa-aqWnuSy_Q>