emerge fails in configure phase with >>> Source unpacked in /tmp/portage/dev-python/pycuda-9999/work >>> Preparing source in /tmp/portage/dev-python/pycuda-9999/work/pycuda-9999 ... >>> Source prepared. >>> Configuring source in /tmp/portage/dev-python/pycuda-9999/work/pycuda-9999 ... * python2_7: running distutils-r1_run_phase python_configure mkdir: cannot create directory ‘/tmp/portage/dev-python/pycuda-9999/work/pycuda-9999-python2_7’: File exists * ERROR: dev-python/pycuda-9999::gentoo failed (configure phase): This problem can be easily circumvented with mkdir -p "${BUILD_DIR}" || die (observe the -p) in the python_configure of /usr/portage/dev-python/pycuda/pycuda-9999.ebuild followed by a ebuild /usr/portage/dev-python/pycuda/pycuda-9999.ebuild digest then >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-python/pycuda-9999::gentoo >>> Installing (1 of 1) dev-python/pycuda-9999::gentoo >>> Recording dev-python/pycuda in "world" favorites file... >>> Jobs: 1 of 1 complete Load avg: 0.89, 0.43, 0.46 >>> Auto-cleaning packages... Reproducible: Always
Would please someone for christ's sake apply that trivial patch? 5.5 months later... >>> Configuring source in /tmp/portage/dev-python/pycuda-9999/work/pycuda-9999 ... * python2_7: running distutils-r1_run_phase python_configure mkdir: cannot create directory ‘/tmp/portage/dev-python/pycuda-9999/work/pycuda-9999-python2_7’: File exists * ERROR: dev-python/pycuda-9999::gentoo failed (configure phase):
Quick and dirty "fix" until upstream wakes up: > mv /bin/mkdir /bin/mkdir2 > less /bin/mkdir #!/bin/bash /bin/mkdir2 -p $@ Then ... magically ... # emerge pycuda Calculating dependencies... done! >>> Verifying ebuild manifests >>> Emerging (1 of 1) dev-python/pycuda-9999::gentoo >>> Installing (1 of 1) dev-python/pycuda-9999::gentoo >>> Jobs: 1 of 1 complete Load avg: 0.84, 1.12, 1.80
https://gitweb.gentoo.org/repo/gentoo.git/commit/dev-python/pycuda?id=4d61e90a9b90490bfaf651bdbb5d2ed3cad8da3e