Bug 2183390

Summary: freeipa-healthcheck fails to build with the latest setuptools version
Product: [Fedora] Fedora Reporter: Charalampos Stratakis <cstratak>
Component: 389-ds-baseAssignee: mreynolds
Status: CLOSED DUPLICATE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: abokovoy, cheimes, mkosek, mreynolds, pvoborni, rcritten, spichugi, tbordaz, twoerner, vashirov
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2023-03-31 12:23:19 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 2144132    

Description Charalampos Stratakis 2023-03-31 00:11:43 UTC
freeipa-healthcheck fails to build with the latest setuptools version.

This report is automated and not very verbose, but we'll try to get back here with details.

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/cstratak/setuptools-67.5.1/fedora-rawhide-x86_64/05726524-freeipa-healthcheck/

For all our attempts to build freeipa-healthcheck with the latest setuptools, see:
https://copr.fedorainfracloud.org/coprs/cstratak/setuptools-67.5.1/package/freeipa-healthcheck/

Let us know here if you have any questions.

Comment 1 Rob Crittenden 2023-03-31 12:13:29 UTC
There is a failure to import part of lib389:

/usr/lib/python3.11/site-packages/lib389/utils.py:47: in <module>
    from pkg_resources.extern.packaging.version import LegacyVersion
E   ImportError: cannot import name 'LegacyVersion' from 'pkg_resources.extern.packaging.version' (/usr/lib/python3.11/site-packages/pkg_resources/_vendor/packaging/version.py)
During handling of the above exception, another exception occurred:
/usr/lib64/python3.11/importlib/__init__.py:126: in import_module
    return _bootstrap._gcd_import(name[level:], package, level)
tests/test_ipa_trust.py:14: in <module>
    from ipahealthcheck.ipa.plugin import registry
src/ipahealthcheck/ipa/plugin.py:11: in <module>
    from ipaserver.install import cainstance
/usr/lib/python3.11/site-packages/ipaserver/install/cainstance.py:59: in <module>
    from ipaserver.install import dsinstance
/usr/lib/python3.11/site-packages/ipaserver/install/dsinstance.py:29: in <module>
    from lib389 import DirSrv
/usr/lib/python3.11/site-packages/lib389/__init__.py:54: in <module>
    from lib389._entry import Entry
/usr/lib/python3.11/site-packages/lib389/_entry.py:20: in <module>
    from lib389.utils import (ensure_str, ensure_bytes, ensure_list_bytes, display_log_data)
/usr/lib/python3.11/site-packages/lib389/utils.py:50: in <module>
    from packaging.version import LegacyVersion
E   ImportError: cannot import name 'LegacyVersion' from 'packaging.version' (/usr/lib/python3.11/site-packages/packaging/version.py)

Comment 2 Viktor Ashirov 2023-03-31 12:23:19 UTC

*** This bug has been marked as a duplicate of bug 2183375 ***