[Bug 259896] lang/python39: build error on current, ModuleNotFoundError: No module named '_sysconfigdata__freebsd14_x86_64-unknown-freebsd14'

From: <bugzilla-noreply_at_freebsd.org>
Date: Wed, 17 Nov 2021 11:37:27 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259896

            Bug ID: 259896
           Summary: lang/python39: build error on current,
                    ModuleNotFoundError: No module named
                    '_sysconfigdata__freebsd14_x86_64-unknown-freebsd14'
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: python@FreeBSD.org
          Reporter: Trond.Endrestol@ximalas.info
          Assignee: python@FreeBSD.org
             Flags: maintainer-feedback?(python@FreeBSD.org)

I think the issue in bug #258377 must be revisited.

On today's current, I get this error when building lang/python39:

LD_LIBRARY_PATH=/construction/xports/lang/python39/work/Python-3.9.8 CC='cc
-pthread' LDSHARED='cc -pthread -shared  -L/usr/local/lib 
-fstack-protector-strong   ' OPT='-DNDEBUG'  _TCLTK_INCLUDES='' _TCLTK_LIBS='' 
./python -E ./setup.py  build
Traceback (most recent call last):
  File "/construction/xports/lang/python39/work/Python-3.9.8/./setup.py", line
2507, in <module>
    class PyBuildInstallLib(install_lib):
  File "/construction/xports/lang/python39/work/Python-3.9.8/./setup.py", line
2514, in PyBuildInstallLib
    shlib_suffix = sysconfig.get_config_var("SHLIB_SUFFIX")
  File "/construction/xports/lang/python39/work/Python-3.9.8/Lib/sysconfig.py",
line 615, in get_config_var
    return get_config_vars().get(name)
  File "/construction/xports/lang/python39/work/Python-3.9.8/Lib/sysconfig.py",
line 564, in get_config_vars
    _init_posix(_CONFIG_VARS)
  File "/construction/xports/lang/python39/work/Python-3.9.8/Lib/sysconfig.py",
line 430, in _init_posix
    _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
ModuleNotFoundError: No module named
'_sysconfigdata__freebsd14_x86_64-unknown-freebsd14'
*** [sharedmods] Error code 1

In ${WRKSRC}/build/lib.freebsd-14.0-CURRENT-amd64-3.9, I find the file
_sysconfigdata__freebsd14_x86_64-unknown-freebsd14.0.py, but not a file named
_sysconfigdata__freebsd14_x86_64-unknown-freebsd14.py.

lang/python38 nor lang/python310 exhibit this issue.

-- 
You are receiving this mail because:
You are the assignee for the bug.