Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 956751 - dev-util/conan: installs broken METADATA (was: dev-python/poetry: poetry self show plugins does not work)
Summary: dev-util/conan: installs broken METADATA (was: dev-python/poetry: poetry self...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Azamat H. Hackimov
URL:
Whiteboard:
Keywords: PullRequest
Depends on:
Blocks:
 
Reported: 2025-05-28 17:33 UTC by Andrew Udvare
Modified: 2025-05-30 10:00 UTC (History)
5 users (show)

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


Attachments
Verbose output log (verbose-output.log,7.31 KB, text/x-log)
2025-05-28 17:33 UTC, Andrew Udvare
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Udvare 2025-05-28 17:33:50 UTC
Created attachment 929824 [details]
Verbose output log

It gives this output:

 $ poetry self show plugins

Invalid marker for 'platform_system': >= Linux

See attached verbose output log.

I would like to use the updated https://github.com/microsoft/vscode-python-environments extension in VS Code which now supports Poetry, but because it needs to parse the output from `poetry self show plugins` to see if I have poetry-plugin-shell (installed from my overlay), it cannot see that I have this plugin installed.
Comment 1 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2025-05-29 04:20:44 UTC
Worksforme.  I'm guessing you have a package with invalid METADATA installed.  My best guess would be to:

  grep -R 'platform_system.*>=' /usr/lib/python*/site-packages/*.dist-info

'pip check' might be able to pinpoint it too.
Comment 2 Andrew Udvare 2025-05-29 22:24:16 UTC
 $ grep -R 'platform_system.*>=' /usr/lib/python*/site-packages/*.dist-info
/usr/lib/python3.13/site-packages/conan-2.15.1.dist-info/METADATA:Requires-Dist: distro>=1.4.0; platform_system >= "Linux" or platform_system >= "FreeBSD"

Caused by dev-util/conan. Removing it does fix the issue.
Comment 3 Larry the Git Cow gentoo-dev 2025-05-30 10:00:28 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=44e526b911f1eec081c5f80e5848929d87485132

commit 44e526b911f1eec081c5f80e5848929d87485132
Author:     Azamat H. Hackimov <azamat.hackimov@gmail.com>
AuthorDate: 2025-05-30 08:39:56 +0000
Commit:     Sam James <sam@gentoo.org>
CommitDate: 2025-05-30 09:59:35 +0000

    dev-util/conan: fix broken METADATA
    
    Rewrite sed restriction commands to exclude non-digit qualifiers.
    
    Closes: https://bugs.gentoo.org/956751
    Signed-off-by: Azamat H. Hackimov <azamat.hackimov@gmail.com>
    Part-of: https://github.com/gentoo/gentoo/pull/42343
    Signed-off-by: Sam James <sam@gentoo.org>

 dev-util/conan/conan-2.14.0-r1.ebuild | 47 +++++++++++++++++++++++++++++++++++
 dev-util/conan/conan-2.17.0.ebuild    |  2 +-
 2 files changed, 48 insertions(+), 1 deletion(-)