Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 618470 - dev-python/pygit2-0.25.1 - distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation: mkdir('/var/tmp/portage/dev-python/pygit2-0.25.1/work/pygit2-0.25.1-python2_7/lib/cffi', 511) {}
Summary: dev-python/pygit2-0.25.1 - distutils.errors.DistutilsError: Setup script exit...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-05-14 20:04 UTC by Kobboi
Modified: 2017-05-14 22:34 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,5.29 KB, text/plain)
2017-05-14 20:05 UTC, Kobboi
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Kobboi 2017-05-14 20:04:53 UTC
>>> Emerging (1 of 1) dev-python/pygit2-0.25.1::gentoo
 * pygit2-0.25.1.tar.gz SHA256 SHA512 WHIRLPOOL size ;-) ...                                      [ ok ]
>>> Unpacking source...
>>> Unpacking pygit2-0.25.1.tar.gz to /var/tmp/portage/dev-python/pygit2-0.25.1/work
>>> Source unpacked in /var/tmp/portage/dev-python/pygit2-0.25.1/work
>>> Preparing source in /var/tmp/portage/dev-python/pygit2-0.25.1/work/pygit2-0.25.1 ...
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/dev-python/pygit2-0.25.1/work/pygit2-0.25.1 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/dev-python/pygit2-0.25.1/work/pygit2-0.25.1 ...
 * python2_7: running distutils-r1_run_phase distutils-r1_python_compile
/usr/bin/python2.7 setup.py build
Traceback (most recent call last):
  File "setup.py", line 210, in <module>
    **extra_args)
  File "/usr/lib64/python2.7/distutils/core.py", line 111, in setup
    _setup_distribution = dist = klass(attrs)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 318, in __init__
    self.fetch_build_eggs(attrs['setup_requires'])
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 375, in fetch_build_eggs
    replace_conflicting=True,
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 851, in resolve
    dist = best[req.key] = env.best_match(req, ws, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1123, in best_match
    return self.obtain(req, installer)
  File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1135, in obtain
    return installer(requirement)
  File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 443, in fetch_build_egg
    return cmd.easy_install(req)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 673, in easy_install
    return self.install_item(spec, dist.location, tmpdir, deps)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 699, in install_item
    dists = self.install_eggs(spec, download, tmpdir)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 880, in install_eggs
    return self.build_and_install(setup_script, setup_base)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 1119, in build_and_install
    self.run_setup(setup_script, setup_base, args)
  File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 1107, in run_setup
    raise DistutilsError("Setup script exited with %s" % (v.args[0],))
distutils.errors.DistutilsError: Setup script exited with error: SandboxViolation: mkdir('/var/tmp/portage/dev-python/pygit2-0.25.1/work/pygit2-0.25.1-python2_7/lib/cffi', 511) {}

The package setup script has attempted to modify files on your system
that are not within the EasyInstall build area, and has been aborted.

This package cannot be safely installed by EasyInstall, and may not
support alternate installation locations even if you run its setup
script by hand.  Please inform the package's author and the EasyInstall
maintainers to find out if a fix or workaround is available.
 * ERROR: dev-python/pygit2-0.25.1::gentoo failed (compile phase):
 *   (no error message)
 * 
 * Call stack:
 *     ebuild.sh, line  115:  Called src_compile
 *   environment, line 3807:  Called distutils-r1_src_compile
 *   environment, line  928:  Called _distutils-r1_run_foreach_impl 'distutils-r1_python_compile'
 *   environment, line  308:  Called python_foreach_impl 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 3306:  Called multibuild_foreach_variant '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2415:  Called _multibuild_run '_python_multibuild_wrapper' 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line 2413:  Called _python_multibuild_wrapper 'distutils-r1_run_phase' 'distutils-r1_python_compile'
 *   environment, line  570:  Called distutils-r1_run_phase 'distutils-r1_python_compile'
 *   environment, line  919:  Called distutils-r1_python_compile
 *   environment, line  794:  Called esetup.py 'build'
 *   environment, line 1465:  Called die
 * The specific snippet of code:
 *       "${@}" || die "${die_args[@]}";
 * 
 * If you need support, post the output of `emerge --info '=dev-python/pygit2-0.25.1::gentoo'`,
 * the complete build log and the output of `emerge -pqv '=dev-python/pygit2-0.25.1::gentoo'`.
 * The complete build log is located at '/var/tmp/portage/dev-python/pygit2-0.25.1/temp/build.log'.
 * The ebuild environment file is located at '/var/tmp/portage/dev-python/pygit2-0.25.1/temp/environment'.
 * Working directory: '/var/tmp/portage/dev-python/pygit2-0.25.1/work/pygit2-0.25.1'
 * S: '/var/tmp/portage/dev-python/pygit2-0.25.1/work/pygit2-0.25.1'
Comment 1 Kobboi 2017-05-14 20:05:39 UTC
Created attachment 472620 [details]
build.log
Comment 2 Fabio Coatti 2017-05-14 21:31:27 UTC
Same problem here.
Comment 3 Mike Gilbert gentoo-dev 2017-05-14 22:34:46 UTC
https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e7878326f5127b3bb61c8ba69428f2ce2ffeec61

commit e7878326f5127b3bb61c8ba69428f2ce2ffeec61
Author: Mike Gilbert <floppym@gentoo.org>
Date:   Sun May 14 18:33:26 2017 -0400

    dev-python/pygit2: backport cffi-1.10 fix

    Bug: https://bugs.gentoo.org/618470
    Package-Manager: Portage-2.3.5_p32, Repoman-2.3.2_p62

 .../pygit2/files/pygit2-0.25.1-cffi-1.10.patch     | 55 ++++++++++++++++++++++
 dev-python/pygit2/pygit2-0.25.1.ebuild             |  4 ++
 2 files changed, 59 insertions(+)