{"action":"created","issue":{"url":"https://api.github.com/repos/OpenELEC/OpenELEC.tv/issues/4279","labels_url":"https://api.github.com/repos/OpenELEC/OpenELEC.tv/issues/4279/labels{/name}","comments_url":"https://api.github.com/repos/OpenELEC/OpenELEC.tv/issues/4279/comments","events_url":"https://api.github.com/repos/OpenELEC/OpenELEC.tv/issues/4279/events","html_url":"https://github.com/OpenELEC/OpenELEC.tv/pull/4279","id":101267445,"number":4279,"title":"Python: update to Python-2.7.10","user":{"login":"Alexqw","id":765557,"avatar_url":"https://avatars.githubusercontent.com/u/765557?v=3","gravatar_id":"","url":"https://api.github.com/users/Alexqw","html_url":"https://github.com/Alexqw","followers_url":"https://api.github.com/users/Alexqw/followers","following_url":"https://api.github.com/users/Alexqw/following{/other_user}","gists_url":"https://api.github.com/users/Alexqw/gists{/gist_id}","starred_url":"https://api.github.com/users/Alexqw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alexqw/subscriptions","organizations_url":"https://api.github.com/users/Alexqw/orgs","repos_url":"https://api.github.com/users/Alexqw/repos","events_url":"https://api.github.com/users/Alexqw/events{/privacy}","received_events_url":"https://api.github.com/users/Alexqw/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":24,"created_at":"2015-08-16T14:12:44Z","updated_at":"2015-08-18T04:16:45Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenELEC/OpenELEC.tv/pulls/4279","html_url":"https://github.com/OpenELEC/OpenELEC.tv/pull/4279","diff_url":"https://github.com/OpenELEC/OpenELEC.tv/pull/4279.diff","patch_url":"https://github.com/OpenELEC/OpenELEC.tv/pull/4279.patch"},"body":"@fritsch @sraue \r\n\r\nI admit, this is completely untested. I don't use OpenELEC, much less package for it. But quite a few of my Kodi addon's users are running into [this python bug](https://stackoverflow.com/questions/29099404/ssl-insecureplatform-error-when-using-requests-package) and it's fixed by either Python >= 2.7.9 or pyOpenSSL.\r\n\r\nI was encouraged to submit a one-liner PR, so here it is. :-)\r\n\r\nI see in the changelog that some earlier version bumps (with surrounding patches) were reverted. But I didn't see an explanation for why. Perhaps we'll be lucky and this one-liner will work.\r\n\r\n---Alex"},"comment":{"url":"https://api.github.com/repos/OpenELEC/OpenELEC.tv/issues/comments/132068371","html_url":"https://github.com/OpenELEC/OpenELEC.tv/pull/4279#issuecomment-132068371","issue_url":"https://api.github.com/repos/OpenELEC/OpenELEC.tv/issues/4279","id":132068371,"user":{"login":"MilhouseVH","id":805038,"avatar_url":"https://avatars.githubusercontent.com/u/805038?v=3","gravatar_id":"","url":"https://api.github.com/users/MilhouseVH","html_url":"https://github.com/MilhouseVH","followers_url":"https://api.github.com/users/MilhouseVH/followers","following_url":"https://api.github.com/users/MilhouseVH/following{/other_user}","gists_url":"https://api.github.com/users/MilhouseVH/gists{/gist_id}","starred_url":"https://api.github.com/users/MilhouseVH/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MilhouseVH/subscriptions","organizations_url":"https://api.github.com/users/MilhouseVH/orgs","repos_url":"https://api.github.com/users/MilhouseVH/repos","events_url":"https://api.github.com/users/MilhouseVH/events{/privacy}","received_events_url":"https://api.github.com/users/MilhouseVH/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T04:16:45Z","updated_at":"2015-08-18T04:16:45Z","body":"Adding the following patch to `package/lang/Python/package.mk` fixes the issue:\r\n```\r\ndiff a/packages/lang/Python/package.mk b/packages/lang/Python/package.mk\r\n--- a/packages/lang/Python/package.mk   2015-08-18 03:35:33.555859779 +0100\r\n+++ b/packages/lang/Python/package.mk   2015-08-18 04:11:13.686622225 +0100\r\n@@ -94,6 +94,7 @@\r\n }\r\n\r\n pre_configure_target() {\r\n+  export _PYTHON_HOST_PLATFORM=\"linux2\"\r\n   export PYTHON_FOR_BUILD=$ROOT/$TOOLCHAIN/bin/python\r\n   export BLDSHARED=\"$CC -shared\"\r\n   export RUNSHARED=\"LD_LIBRARY_PATH=$ROOT/$TOOLCHAIN/lib:$LD_LIBRARY_PATH\"\r\n```\r\n\r\nI've tested RPi2, Generic and Nvidia_Legacy builds, and all are now OK with Python 2.7.10 when previously all 3 failed due to missing `_sqlite3.so`.\r\n\r\n@lrusak: Unless anyone has any better solution, can you add this patch to your branch?"}}