Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 899702

Summary: net-nds/389-ds-base-2.3.2: compile failed, ImportError: cannot import name 'LegacyVersion' from 'packaging.version' (/usr/lib/python3.10/site-packages/packaging/version.py)
Product: Gentoo Linux Reporter: Ryan Tsien <i>
Component: Current packagesAssignee: Robert Förster <Dessa>
Status: RESOLVED FIXED    
Severity: normal CC: chris, proxy-maint
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: information
build.log

Description Ryan Tsien 2023-03-05 20:23:38 UTC
When I downgraded dev-python/packaging from 23 to 21.3, the compilation was successful.

Reproducible: Always
Comment 1 Ryan Tsien 2023-03-05 20:24:35 UTC
Created attachment 856222 [details]
information
Comment 2 Ryan Tsien 2023-03-05 20:26:10 UTC
Created attachment 856224 [details]
build.log
Comment 3 gentoo 2023-03-08 04:52:40 UTC
I see the same error compiling dev-python/PyQt5 with =dev-python/packaging-23.0-r1
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2023-03-08 22:28:17 UTC
(In reply to gentoo from comment #3)
> I see the same error compiling dev-python/PyQt5 with
> =dev-python/packaging-23.0-r1

Please file a separate bug for that.
Comment 5 Larry the Git Cow gentoo-dev 2023-03-10 08:40:47 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=20cd093d4cbc396b68b23903325d4643ad0dbe63

commit 20cd093d4cbc396b68b23903325d4643ad0dbe63
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-10 08:26:25 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-10 08:36:30 +0000

    net-nds/389-ds-base: fix build w/ newer dev-python/packaging
    
    Closes: https://bugs.gentoo.org/899702
    Signed-off-by: Sam James <sam@gentoo.org>

 net-nds/389-ds-base/389-ds-base-2.3.2.ebuild       |   1 +
 ...-ds-base-2.3.2-setuptools-67-packaging-23.patch | 166 +++++++++++++++++++++
 2 files changed, 167 insertions(+)
Comment 6 Larry the Git Cow gentoo-dev 2023-03-10 08:46:48 UTC
The bug has been referenced in the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=25a11d6428561f0ff9f76d211163bb9c1379f8e6

commit 25a11d6428561f0ff9f76d211163bb9c1379f8e6
Author:     Sam James <sam@gentoo.org>
AuthorDate: 2023-03-10 08:46:30 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2023-03-10 08:46:30 +0000

    net-nds/389-ds-base: add bug ref to patch
    
    Bug: https://bugs.gentoo.org/899702
    Signed-off-by: Sam James <sam@gentoo.org>

 .../389-ds-base/files/389-ds-base-2.3.2-setuptools-67-packaging-23.patch | 1 +
 1 file changed, 1 insertion(+)