Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 583018 - dev-python/pycuda-9999 - mkdir: cannot create directory ‘/tmp/portage/dev-python/pycuda-9999/work/pycuda-9999-python2_7’: File exists
Summary: dev-python/pycuda-9999 - mkdir: cannot create directory ‘/tmp/portage/dev-pyt...
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Development (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Deadline: 2020-09-21
Assignee: Gentoo Science Related Packages
URL:
Whiteboard:
Keywords: PMASKED
Depends on:
Blocks:
 
Reported: 2016-05-14 11:53 UTC by PetaMem R&D
Modified: 2021-06-02 12:58 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description PetaMem R&D 2016-05-14 11:53:51 UTC
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
Comment 1 PetaMem R&D 2016-10-29 08:41:57 UTC
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):
Comment 2 PetaMem R&D 2016-10-29 22:09:36 UTC
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