In Prefix, dev-python/PyQt5 fails during src_install with a race condition, with EPREFIX=/cvmfs/juno.ihep.ac.cn/ci/gentoo. Forcing MAKEOPTS=-j1 fixes this issue. It seems to be related to the ubiquitous bug of Python distutils. make[1]: Leaving directory '/tmp/portage/dev-python/PyQt5-5.14.2/work/PyQt5-5.14.2-python3_6/Qt' /cvmfs/juno.ihep.ac.cn/ci/gentoo/usr/lib64/qt5/bin/qmake -install qinstall /tmp/portage/dev-python/PyQt5-5.14.2/work/PyQt5-5.14.2/sip/QtWebChannel/QtWebChannelmod.sip /tmp/portage/dev-python/PyQt5-5.14.2/image/Py Qt5_tmp_root/cvmfs/juno.ihep.ac.cn/ci/gentoo/usr/share/sip/PyQt5/QtWebChannel/QtWebChannelmod.sip /cvmfs/juno.ihep.ac.cn/ci/gentoo/usr/lib64/qt5/bin/qmake -install qinstall /tmp/portage/dev-python/PyQt5-5.14.2/work/PyQt5-5.14.2/sip/QtWebChannel/qwebchannel.sip /tmp/portage/dev-python/PyQt5-5.14.2/image/PyQt5_ tmp_root/cvmfs/juno.ihep.ac.cn/ci/gentoo/usr/share/sip/PyQt5/QtWebChannel/qwebchannel.sip /cvmfs/juno.ihep.ac.cn/ci/gentoo/usr/lib64/qt5/bin/qmake -install qinstall /tmp/portage/dev-python/PyQt5-5.14.2/work/PyQt5-5.14.2/sip/QtWebChannel/qwebchannelabstracttransport.sip /tmp/portage/dev-python/PyQt5-5. 14.2/image/PyQt5_tmp_root/cvmfs/juno.ihep.ac.cn/ci/gentoo/usr/share/sip/PyQt5/QtWebChannel/qwebchannelabstracttransport.sip /cvmfs/juno.ihep.ac.cn/ci/gentoo/usr/bin/python3.6 /tmp/portage/dev-python/PyQt5-5.14.2/work/PyQt5-5.14.2/mk_distinfo.py "/tmp/portage/dev-python/PyQt5-5.14.2/image/PyQt5_tmp_root" /cvmfs/juno.ihep.ac.cn/ci/gento o/usr/lib64/python3.6/site-packages/PyQt5-5.14.2.dist-info installed.txt Traceback (most recent call last): File "/tmp/portage/dev-python/PyQt5-5.14.2/work/PyQt5-5.14.2/mk_distinfo.py", line 112, in <module> fn_f = open(fn, 'rb') FileNotFoundError: [Errno 2] No such file or directory: '/tmp/portage/dev-python/PyQt5-5.14.2/image/PyQt5_tmp_root/cvmfs/juno.ihep.ac.cn/ci/gentoo/usr/lib64/python3.6/site-packages/PyQt5/__init__.py' make: *** [Makefile:2632: install_distinfo] Error 1 Reproducible: Always
Created attachment 635154 [details, diff] PyQt5.patch What do you think of this patch of workaround? @Python Team, would you like to comment on the parallel build of distutils/setuptools?
dev-python/PyQt5 has qmake-based build system, not distutils/setuptools.
(In reply to Arfrever Frehtes Taifersar Arahesis from comment #2) > dev-python/PyQt5 has qmake-based build system, not distutils/setuptools. I see. Thanks for clarifying.
The bug has been closed via the following commit(s): https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=97ae223251a26f941c1404dc36390244c636e142 commit 97ae223251a26f941c1404dc36390244c636e142 Author: Davide Pesavento <pesa@gentoo.org> AuthorDate: 2020-09-16 00:41:30 +0000 Commit: Davide Pesavento <pesa@gentoo.org> CommitDate: 2020-09-16 00:47:59 +0000 dev-python/PyQt5: add 5.15.1 Go back to using 'emake -j1' to workaround the parallel install failure. The previous approach wasn't maintainable and upstream doesn't seem to be interested in a proper fix. Closes: https://bugs.gentoo.org/720002 Package-Manager: Portage-3.0.6, Repoman-3.0.1 Signed-off-by: Davide Pesavento <pesa@gentoo.org> dev-python/PyQt5/Manifest | 1 + dev-python/PyQt5/PyQt5-5.15.1.ebuild | 190 +++++++++++++++++++++++++++++++++++ 2 files changed, 191 insertions(+)