Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 734988 - dev-python/certifi: cross compilation is broken, importing its successor
Summary: dev-python/certifi: cross compilation is broken, importing its successor
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL: https://github.com/mgorny/certifi-shi...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-07-31 19:17 UTC by Andrew Aladjev
Modified: 2020-08-03 07:03 UTC (History)
2 users (show)

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


Attachments
fix (certifi_without_setuptools.patch,770 bytes, patch)
2020-07-31 19:18 UTC, Andrew Aladjev
Details | Diff
build log (build.log,5.06 KB, text/x-log)
2020-07-31 21:18 UTC, Andrew Aladjev
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Andrew Aladjev 2020-07-31 19:17:15 UTC
Created pull request, please review

Reproducible: Always

Steps to Reproduce:
1. crossdev -t x86_64-gentoo-linux-musl
2. x86_64-gentoo-linux-musl-emerge -v1 dev-python/setuptools

Actual Results:  
Certifi is trying to import setup from setuptools and fails.

Expected Results:  
Certifi have to import setup from distutils if setuptools is not available, because setuptools is its successor.
Comment 1 Andrew Aladjev 2020-07-31 19:18:31 UTC
Created attachment 651914 [details, diff]
fix
Comment 2 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2020-07-31 19:21:37 UTC
Please include the full build.log and ideally emerge --info.
Comment 3 Andrew Aladjev 2020-07-31 21:18:41 UTC
Created attachment 651916 [details]
build log
Comment 4 Andrew Aladjev 2020-07-31 21:20:19 UTC
I've added build log. Posting short error (for search engine indexing):

Traceback (most recent call last):
  File "setup.py", line 4, in <module>
    from setuptools import setup                
ModuleNotFoundError: No module named 'setuptools'
Comment 5 Larry the Git Cow gentoo-dev 2020-08-03 07:03:09 UTC
The bug has been closed via the following commit(s):

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

commit ff26c6f50799c8d5c1d3af9b3e8127f0db082bbe
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2020-08-03 06:44:08 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2020-08-03 07:03:02 +0000

    dev-python/certifi: Bump to 10001
    
    Closes: https://bugs.gentoo.org/734988
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/certifi/Manifest             |  1 +
 dev-python/certifi/certifi-10001.ebuild | 32 ++++++++++++++++++++++++++++++++
 2 files changed, 33 insertions(+)