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 3. 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: * ebuild.sh, 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: /etc /etc/DIR_COLORS /usr /usr/bin /usr/bin/g[ /usr/bin/garch /usr/bin/gbase64 /usr/bin/gbasename /usr/bin/gcat /usr/bin/gchcon /usr/bin/gchgrp /usr/bin/gchmod /usr/bin/gchown /usr/bin/gchroot /usr/bin/gcksum /usr/bin/gcomm /usr/bin/gcp <snip>
Created attachment 336704 [details, diff] sample patch for python.eclass
cython is using distutils-r1 now.
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.
(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.