Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 609874 - [kaa] Ebuilds using deprecated distutils.eclass
Summary: [kaa] Ebuilds using deprecated distutils.eclass
Status: RESOLVED OBSOLETE
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Overlays (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Oleh Kravchenko
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-02-18 22:40 UTC by Michał Górny
Modified: 2017-03-18 10:07 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 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-02-18 22:40:16 UTC
Hi,

It seems that your repository contains one or more packages using the
deprecated distutils.eclass. This eclass is last rited and pending
removal on 2016-03-18. Please either remove these packages, convert them
to distutils-r1 or copy the eclass to your repository. Otherwise, they
will irrevocably break once the eclass is removed.

The following packages were found:
dev-python/cartman-0.2.3
dev-python/multi_key_dict-2.0.3
dev-python/pygerrit-1.0.0
dev-python/python-jenkins-0.4.6
Comment 1 Oleh Kravchenko 2017-03-02 06:59:46 UTC
(In reply to Michał Górny from comment #0)
> Hi,
> 
> It seems that your repository contains one or more packages using the
> deprecated distutils.eclass. This eclass is last rited and pending
> removal on 2016-03-18. Please either remove these packages, convert them
> to distutils-r1 or copy the eclass to your repository. Otherwise, they
> will irrevocably break once the eclass is removed.
> 
> The following packages were found:
> dev-python/cartman-0.2.3
> dev-python/multi_key_dict-2.0.3
> dev-python/pygerrit-1.0.0
> dev-python/python-jenkins-0.4.6

Thanks for bug :)

I tried convert to distutils-r1, but:

> /usr/bin/python2.7 setup.py build
> Traceback (most recent call last):
>   File "setup.py", line 38, in <module>
>     _main()
>   File "setup.py", line 35, in _main
>     pbr=True)
>   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 316, in __init__
>     self.fetch_build_eggs(attrs['setup_requires'])
>   File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 371, in fetch_build_eggs
>     replace_conflicting=True,
>   File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 846, in resolve
>     dist = best[req.key] = env.best_match(req, ws, installer)
>   File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1118, in best_match
>     return self.obtain(req, installer)
>   File "/usr/lib64/python2.7/site-packages/pkg_resources/__init__.py", line 1130, in obtain
>     return installer(requirement)
>   File "/usr/lib64/python2.7/site-packages/setuptools/dist.py", line 439, in fetch_build_egg
>     return cmd.easy_install(req)
>   File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 665, 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 695, in install_item
>     dists = self.install_eggs(spec, download, tmpdir)
>   File "/usr/lib64/python2.7/site-packages/setuptools/command/easy_install.py", line 876, 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 1115, 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 1103, 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/pygerrit-1.0.0/work/pygerrit-1.0.0-python2_7/lib/pbr', 511) {}
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2017-03-18 10:07:39 UTC
distutils.eclass has been removed, rendering the early warning bugs obsolete. Any remaining uses will be reported via the regular repo-mirror-ci reports.