* ERROR: dev-python/subprocess32-3.2.7::gentoo failed (install phase): * dodoc failed * ------------------------------------------------------------------- This is an unstable amd64 chroot image at a tinderbox (==build bot) name: 17.0-desktop-plasma-systemd_test_20171210-222140 ------------------------------------------------------------------- gcc-config -l: [1] x86_64-pc-linux-gnu-7.2.0 * Available Python interpreters, in order of preference: [1] python3.5 [2] python2.7 (fallback) java-config: The following VMs are available for generation-2: *) IcedTea JDK 3.6.0 [icedtea-bin-8] Available Java Virtual Machines: [1] icedtea-bin-8 system-vm emerge -qpv dev-python/subprocess32 [ebuild N ] dev-python/subprocess32-3.2.7 USE="{test}" PYTHON_TARGETS="python2_7"
Created attachment 509892 [details] emerge-info.txt
Created attachment 509894 [details] dev-python:subprocess32-3.2.7:20171213-160935.log
Created attachment 509896 [details] emerge-history.txt
Created attachment 509898 [details] environment
Created attachment 509900 [details] etc.portage.tbz2
Created attachment 509902 [details] temp.tbz2
I have the same problem here. Any solution ?
When looking at the error: Writing /var/tmp/portage/dev-python/subprocess32-3.2.7/image/_python2.7/usr/lib64/python2.7/site-packages/subprocess32-3.2.7-py2.7.egg-info * python2_7: running distutils-r1_run_phase distutils-r1_python_install_all Traceback (most recent call last): File "/usr/lib/portage/python3.5/doins.py", line 27, in <module> import subprocess File "/usr/lib64/python3.5/subprocess.py", line 127, in <module> import _posixsubprocess ImportError: dynamic module does not define module export function (PyInit__posixsubprocess) Importing _posixsubprocess works in the python3 shell but not in python2 shell. I don't know if this is relevant information or not. localhost # python Python 3.5.4 (default, Dec 13 2017, 10:31:41) [GCC 6.4.0] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import _posixsubprocess >>> exit() localhost # python2 Python 2.7.14 (default, Dec 13 2017, 10:26:33) [GCC 6.4.0] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import _posixsubprocess Traceback (most recent call last): File "<stdin>", line 1, in <module> ImportError: No module named _posixsubprocess >>> exit()
The issue and cause of this issue is because the package is referencing /usr/bin/python inside the scripts. So where the system default is 3.5 (or which ever version), that's what /usr/bin/python is links too instead of calling python2.7 instead. On my system, with my default python set to 3.5 or 3.6, it fails with the same issue, when I set the default python to 2.7, it works correctly without an issue.
This is a bug in portage, to do with the new python implementation of doins
Apparently the doins shell wrapper needs to sanitize PYTHONPATH, because having this path in PYTHONPATH triggers the problem: /var/tmp/portage/dev-python/subprocess32-3.2.7/work/subprocess32-3.2.7-python2_7/lib
The bug has been referenced in the following commit(s): https://gitweb.gentoo.org/proj/portage.git/commit/?id=7ae0c9d084bb1caf18c751cecb7fb98a619dfbcb commit 7ae0c9d084bb1caf18c751cecb7fb98a619dfbcb Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2017-12-15 20:59:06 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2017-12-15 20:59:19 +0000 bin/ebuild-helpers/doins: fix PYTHONPATH setting (bug 640934) This makes the PYTHONPATH setting consistent with other helpers like dohtml and xattr/install. Fixes: d9522ba661b5 ("Rewrite doins in python (bug 624526)") Bug: https://bugs.gentoo.org/640934 bin/ebuild-helpers/doins | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)}
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a131e603a3a56e7f0d996e5390d48eb2243ace0 commit 7a131e603a3a56e7f0d996e5390d48eb2243ace0 Author: Zac Medico <zmedico@gentoo.org> AuthorDate: 2017-12-16 00:50:43 +0000 Commit: Zac Medico <zmedico@gentoo.org> CommitDate: 2017-12-16 00:58:58 +0000 sys-apps/portage: version bump to 2.3.19 #640934 - doins: fix PYTHONPATH setting #641088 - file_copy: handle EOPNOTSUPP for NFS Closes: https://bugs.gentoo.org/640934 Closes: https://bugs.gentoo.org/641088 Package-Manager: Portage-2.3.18, Repoman-2.3.6 sys-apps/portage/Manifest | 2 +- sys-apps/portage/{portage-2.3.18.ebuild => portage-2.3.19.ebuild} | 0 2 files changed, 1 insertion(+), 1 deletion(-)