Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 705470 - Gentoo should patch dev-lang/python-3.6.10/setup.py so that emerge tests zlib module (which portage uses)
Summary: Gentoo should patch dev-lang/python-3.6.10/setup.py so that emerge tests zlib...
Status: RESOLVED WONTFIX
Alias: None
Product: Gentoo/Alt
Classification: Unclassified
Component: Prefix Support (show other bugs)
Hardware: AMD64 OpenBSD
: Normal normal
Assignee: Gentoo Prefix
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2020-01-15 08:45 UTC by Massimo Burcheri
Modified: 2021-01-18 20:04 UTC (History)
0 users

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 Massimo Burcheri 2020-01-15 08:45:02 UTC
This is an experimental Prefix on OpenBSD, using some old outdated profile I found for:
https://cgit.gentoo.org/user/palmer.git/commit/profiles/prefix/bsd/openbsd?h=old&id=25d23e6b17fd4d85abe5aa2ed03f91b7a186d8bc

A potential patch might be before all return lines of function check_extension_import.

# cat stage2.log  
USE=-acl -berkdb -fortran -gdbm -git -libcxx -nls -pcre -ssl -python bootstrap clang internal-glib PKG=sys-apps/gentoo-functions
Traceback (most recent call last):
  File "/home/mo/gentoo/tmp/usr/bin/emerge", line 46, in <module>
    from _emerge.main import emerge_main
  File "/home/mo/gentoo/tmp/usr/lib/python3.6/_emerge/main.py", line 23, in <module>
    from portage.sync import _SUBMODULE_PATH_MAP
  File "/home/mo/gentoo/tmp/usr/lib/python3.6/portage/sync/__init__.py", line 9, in <module>
    from portage.sync.controller import SyncManager
  File "/home/mo/gentoo/tmp/usr/lib/python3.6/portage/sync/controller.py", line 24, in <module>
    from portage.package.ebuild.doebuild import _check_temp_dir
  File "/home/mo/gentoo/tmp/usr/lib/python3.6/portage/package/ebuild/doebuild.py", line 9, in <module>
    import gzip
  File "/home/mo/gentoo/tmp/usr/lib/python3.6/gzip.py", line 9, in <module>
    import zlib
ModuleNotFoundError: No module named 'zlib'


stage1.log has:

*** WARNING: renaming "zlib" since importing it failed: Cannot load specified object
*** WARNING: renaming "binascii" since importing it failed: Cannot load specified object
*** WARNING: renaming "_ctypes" since importing it failed: Cannot load specified object


grep -R "since importing it" /home/mo/gentoo/var/tmp/python-3.6.10/Python-3.6.10/
/home/mo/gentoo/var/tmp/python-3.6.10/Python-3.6.10/setup.py:            self.announce('*** WARNING: renaming "%s" since importing it' 

$ grep -R 'def.*\<_load\>' /home/mo/gentoo/var/tmp/python-3.6.10
/home/mo/gentoo/var/tmp/python-3.6.10/Python-3.6.10/Lib/tarfile.py:    def _load(self):
/home/mo/gentoo/var/tmp/python-3.6.10/Python-3.6.10/Lib/pickle.py:def _load(file, *, fix_imports=True, encoding="ASCII", errors="strict"):
/home/mo/gentoo/var/tmp/python-3.6.10/Python-3.6.10/Lib/importlib/_bootstrap.py:def _load(spec):


Reproducible: Always
Comment 1 Massimo Burcheri 2020-01-15 09:14:04 UTC
I had patched bootstrap-prefix.sh to use PV=3.6.10 because of bug #705104.
Comment 2 Fabian Groffen gentoo-dev 2021-01-18 20:04:52 UTC
we really don't support the BSDs any more because it proved to be very difficult to succeed and maintain, sorry