Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 453800 - python.eclass: Packages that use "inherit distutils" fails to install in environment that contains coreutils on Gentoo/FreeBSD
Summary: python.eclass: Packages that use "inherit distutils" fails to install in envi...
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Eclasses (show other bugs)
Hardware: All FreeBSD
: Normal normal (vote)
Assignee: Python Gentoo Team
Depends on:
Reported: 2013-01-24 11:32 UTC by Yuta SATOH
Modified: 2014-04-27 18:24 UTC (History)
1 user (show)

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

sample patch for python.eclass (453800.patch,1.21 KB, patch)
2013-01-24 11:39 UTC, Yuta SATOH
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Yuta SATOH 2013-01-24 11:32:38 UTC
Environment on Gentoo/FreeBSD that contains coreutils, dev-python/cython installation will fail.

When coreutils is installed, cp will try to use the option of GNU.
However, GNU's cp command is provided as gcp on FreeBSD.

Please add the code in order to be a successful installation of cython on FreeBSD.

Reproducible: Always

Steps to Reproduce:
1. emerge coreutils
2. emerge dev-python/cython
Actual Results:  
Writing /var/tmp/portage/dev-python/cython-0.17.4/temp/images/3.2/usr/lib/python3.2/site-packages/Cython-0.17.4-py3.2.egg-info
cp: illegal option -- -
usage: cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file target_file
       cp [-R [-H | -L | -P]] [-f | -i | -n] [-alpvx] source_file ... target_directory
 * ERROR: dev-python/cython-0.17.4 failed (install phase):
 *   Merging of intermediate installation image for Python ABI '2.7 into installation image failed
 * Call stack:
 *, line   93:  Called src_install
 *   environment, line 3724:  Called distutils_src_install
 *   environment, line 1070:  Called python_merge_intermediate_installation_images '/var/tmp/portage/dev-python/cython-0.17.4/temp/images'
 *   environment, line 3142:  Called die
 * The specific snippet of code:
 *               cp -fr --preserve=all --no-preserve=context "${intermediate_installation_images_directory}/${PYTHON_ABI}/"* "${D}" || die "Merging of intermediate installation image for Python ABI '${PYTHON_ABI} into installation image failed";
 * If you need support, post the output of `emerge --info '=dev-python/cython-0.17.4'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/cython-0.17.4'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/cython-0.17.4/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/cython-0.17.4/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/cython-0.17.4/work/Cython-0.17.4'
 * S: '/var/tmp/portage/dev-python/cython-0.17.4/work/Cython-0.17.4'

# equery f coreutils
 * Searching for coreutils ...
 * Contents of sys-apps/coreutils-8.20-r2:
Comment 1 Yuta SATOH 2013-01-24 11:39:45 UTC
Created attachment 336704 [details, diff]
sample patch for python.eclass
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2013-03-02 14:21:21 UTC
cython is using distutils-r1 now.
Comment 3 Yuta SATOH 2013-07-28 13:43:19 UTC
sys-apps/file and dev-python/pyelftools are still using distutils.eclass.
I'll re-open this bug for packages of other than dev-python/cython.
Comment 4 SpanKY gentoo-dev 2014-04-27 18:24:58 UTC
(In reply to Yuta SATOH from comment #3)

not really relevant.  the packages will slowly migrate to newer eclasses over time.  in fact, both file and pyelftools have.