Question about building Python-3.9.12 on OpenBSD 7.1

Dan Stromberg drsalists at gmail.com
Thu Jun 2 23:21:44 EDT 2022


It's been my understanding that there is a fundamental difference between
the *BSD's and the Linuxes.

The *BSD's have their ports system, that collects deltas against
third-party packages to build them on a *BSD.  These deltas become part of
the ports system.

The Linuxes port an application, and contribute the deltas to the package's
upstream maintainer.

For this reason, I suspect you may do well to contact the person in charge
of the port of CPython to OpenBSD.

HTH


On Thu, Jun 2, 2022 at 5:46 PM Tim Brazil <timbrazil at sbcglobal.net> wrote:

> Hello
>
> I hope I am not breaking protocol sending this message to the list.
> This is my first posting to python-list.
>
> I am trying to build Python-3.9.12 from the ports distribution on
> on a new OpenBSD 7.1 installation.
> It is failing with the following error.
>
> Traceback (most recent call last):
>    File "/usr/obj/ports/Python-3.9.12/Python-3.9.12/./setup.py", line
> 2509, in <module>
>      class PyBuildInstallLib(install_lib):
>    File "/usr/obj/ports/Python-3.9.12/Python-3.9.12/./setup.py", line
> 2516, in PyBuildInstallLib
>      shlib_suffix = sysconfig.get_config_var("SHLIB_SUFFIX")
>    File "/usr/obj/ports/Python-3.9.12/Python-3.9.12/Lib/sysconfig.py",
> line 616, in get_config_var
>      return get_config_vars().get(name)
>    File "/usr/obj/ports/Python-3.9.12/Python-3.9.12/Lib/sysconfig.py",
> line 565, in get_config_vars
>      _init_posix(_CONFIG_VARS)
>    File "/usr/obj/ports/Python-3.9.12/Python-3.9.12/Lib/sysconfig.py",
> line 430, in _init_posix
>      _temp = __import__(name, globals(), locals(), ['build_time_vars'], 0)
> ModuleNotFoundError: No module named
> '_sysconfigdata__openbsd7_amd64-unknown-openbsd7'
> *** Error 1 in /usr/obj/ports/Python-3.9.12/Python-3.9.12 (Makefile:649
> 'sharedmods': @case "`echo X $MAKEFLAGS | sed 's/^X //;s/ -- .*//'`"...)
>
> In researching this on the internet I discovered a similar reporting on
> FreeBSD that seems to relate to regex and MULTIARZCH in the FreeBSD
> Makefile but it doesn't seem to apply to the port of my
> Makefile/environment.
>
> This is the report I am referring to:
>
>      https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=259896
>
> My exact problem is...
>
> I do not have z _sysconfigdata__openbsd7_amd64-unknown-openbsd7 module
> but I do have a _sysconfigdata__openbsd7_amd64-unknown-openbsd7.1.py
> module
> under:
>
> ./build/lib.openbsd-7.1-amd64-3.9/_
> sysconfigdata__openbsd7_amd64-unknown-openbsd7.1.py
>
> I suspect somewhere, it's not picking up the full 7.1 version string.
> I am having a problem figuring it out. I kindly ask if you have any
> pointers on fixing
> it. Should I log a bug or is it a OpenBSD package thing?
>
> Thanks in Advance
> Tim
> --
> https://mail.python.org/mailman/listinfo/python-list
>


More information about the Python-list mailing list