Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 802225 - app-backup/borgbackup-1.1.17: undeclared dependency on dev-python/packaging
Summary: app-backup/borgbackup-1.1.17: undeclared dependency on dev-python/packaging
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal with 1 vote (vote)
Assignee: Anthony Basile
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-07-15 06:24 UTC by Thomas Arnett
Modified: 2021-08-25 12:11 UTC (History)
4 users (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 Thomas Arnett 2021-07-15 06:24:58 UTC
`borg create` and other commands fail with the following traceback. The commands succeed after installing dev-python/packaging.

Traceback (most recent call last):
...
 File "/usr/lib/python3.9/site-packages/borg/__init__.py", line 1, in <module>
   from packaging.version import parse as parse_version
ModuleNotFoundError: No module named 'packaging'
Comment 1 David Gasaway 2021-07-15 22:52:22 UTC
From the changelog: "1.1.17 install_requires the “packaging” pypi package now."
https://borgbackup.readthedocs.io/en/stable/changes.html#changelog
Comment 2 Harald Judt 2021-07-20 06:08:39 UTC
Confirmed. Without packaging, borg does not work, as stated on the website.
Comment 4 Anthony Basile gentoo-dev 2021-08-17 10:55:36 UTC
Thanks everyone.  I'll look into it.
Comment 5 Anthony Basile gentoo-dev 2021-08-17 11:14:49 UTC
(In reply to Thomas Arnett from comment #0)
> `borg create` and other commands fail with the following traceback. The
> commands succeed after installing dev-python/packaging.
> 
> Traceback (most recent call last):
> ...
>  File "/usr/lib/python3.9/site-packages/borg/__init__.py", line 1, in
> <module>
>    from packaging.version import parse as parse_version
> ModuleNotFoundError: No module named 'packaging'

Okay as a quick fix I added dev-python/packaging to DEPEND in 1.1.17-r1.  I have not determined whether distutils has been completely removed, so the ebuild might need further cleanup --- removing the distutils-r1 eclass dependency.  But for the time being `borg create` works.

Can anyone determine for me whether a cleaner version of the ebuild is possible, ie reducing distutils-r1 to maybe just python-r1 eclass?  It would save me some time.

Leave this bug open until we're done with cleaning up the ebuild.
Comment 6 Anthony Basile gentoo-dev 2021-08-25 12:11:30 UTC
I've determined that distutils-r1 is still required, so we're done here.