Since the last day or two, brotli (with no USE flags enabled) fails to install. Reproducible: Always Steps to Reproduce: 1. emerge -v app-arch/brotli Actual Results: * python3_7: running distutils-r1_run_phase get_expected_distutils_use_setuptools /var/tmp/portage/app-arch/brotli-1.0.7/temp/environment: line 1788: cd: /var/tmp/portage/app-arch/brotli-1.0.7/work/brotli-1.0.7-python3_7: No such file or directory * ERROR: app-arch/brotli-1.0.7::gentoo failed: * (no error message) * * Call stack: * misc-functions.sh, line 596: Called install_qa_check * misc-functions.sh, line 132: Called source 'install_symlink_html_docs' * 60distutils-use-setuptools, line 60: Called distutils_use_setuptools_check * 60distutils-use-setuptools, line 43: Called _distutils-r1_run_foreach_impl 'install_hooks' * environment, line 609: Called python_foreach_impl '/var/db/repos/gentoo/metadata/install-qa-check.d/60distutils-use-setuptools' 'get_expected_distutils_use_setuptools' * environment, line 3803: Called multibuild_foreach_variant 'distutils-r1_run_phase' 'get_expected_distutils_use_setuptools' '_python_multibuild_wrapper' * environment, line 2869: Called _multibuild_run 'distutils-r1_run_phase' 'get_expected_distutils_use_setuptools' '_python_multibuild_wrapper' * environment, line 2867: Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'get_expected_distutils_use_setuptools' * environment, line 1029: Called distutils-r1_run_phase 'distutils-r1_run_phase' * environment, line 1788: Called die * The specific snippet of code: * cd "${BUILD_DIR}" || die; * * If you need support, post the output of `emerge --info '=app-arch/brotli-1.0.7::gentoo'`, * the complete build log and the output of `emerge -pqv '=app-arch/brotli-1.0.7::gentoo'`. * The complete build log is located at '/var/tmp/portage/app-arch/brotli-1.0.7/temp/build.log'. * The ebuild environment file is located at '/var/tmp/portage/app-arch/brotli-1.0.7/temp/environment'. * Working directory: '/var/tmp/portage/app-arch/brotli-1.0.7/image' * S: '/var/tmp/portage/app-arch/brotli-1.0.7/work/brotli-1.0.7' !!! post install failed; exiting. Expected Results: It should install. Commit df821da327452dd7cc8e2a80300de834379e3166 looks suspect, but I didn't dig into this.
I can reproduce with USE=-python, works with USE=python
For reference the same error happen with net-libs/libtorrent-rasterbar Both use DISTUTILS_OPTIONAL=1 combined with DISTUTILS_IN_SOURCE_BUILD=1
.. or was happening, I think this commit also fixed this: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4b0b254144141866ac51f66ad27cadf477f43da3
*** This bug has been marked as a duplicate of bug 744079 ***
Can add app-editors/qhexedit2 to the casualty list of affected packages. Applied patch and reattempted emerge. Success.