Summary: | lang/python39: build error on current, ModuleNotFoundError: No module named '_sysconfigdata__freebsd14_x86_64-unknown-freebsd14' | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | Ports & Packages | Reporter: | Trond Endrestøl <Trond.Endrestol> | ||||||
Component: | Individual Port(s) | Assignee: | freebsd-python (Nobody) <python> | ||||||
Status: | Closed FIXED | ||||||||
Severity: | Affects Many People | CC: | dim, vishwin | ||||||
Priority: | --- | Keywords: | regression | ||||||
Version: | Latest | Flags: | bugzilla:
maintainer-feedback?
(python) |
||||||
Hardware: | Any | ||||||||
OS: | Any | ||||||||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=258377 | ||||||||
Attachments: |
|
Description
Trond Endrestøl
2021-11-17 11:37:27 UTC
Verified by pkg-fallout. Couldn't see anything obvious between the LLVM 13 import to now in base. See https://bugs.python.org/issue45405 and https://github.com/python/cpython/commit/9c4766772cda67648184f8ddba546a5fc0167f91 They added a check for Darwin which defeats the regex. We need to adjust it. Created attachment 229557 [details]
lang/python3(6|7|8|9|10): work around unwanted multiarch detection again
Here's another patch, to make the workaround hopefully a bit more robust.
I can confirm the patch works, although I only tried lang/python3{8,9,10}. (In reply to Trond.Endrestol from comment #4) lang/python311 needs the same treatment on current as was done for lang/python310. Created attachment 229741 [details]
lang/python3(6|7|8|9|10|11): work around unwanted multiarch detection again
Unless there is any objection, I will commit this patch later today.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=4af982e6bea019a33ae85c6c92a3042fadccb739 commit 4af982e6bea019a33ae85c6c92a3042fadccb739 Author: Dimitry Andric <dim@FreeBSD.org> AuthorDate: 2021-11-26 16:02:16 +0000 Commit: Dimitry Andric <dim@FreeBSD.org> CommitDate: 2021-11-26 18:48:57 +0000 lang/python3(6|7|8|9|10|11): work around unwanted multiarch detection again In ports 6bef09666460 we patched out python's erroneous multiarch detection using sed, but upstream changed the surrounding parts in the configure script to defeat the regex we were using. Update the regex to cope with the change. PR: 259896, 258377 MFH: 2021Q4 Approved by: maintainer timeout (9 days) lang/python310/Makefile | 3 +-- lang/python311/Makefile | 3 +-- lang/python36/Makefile | 3 +-- lang/python37/Makefile | 3 +-- lang/python38/Makefile | 3 +-- lang/python39/Makefile | 3 +-- 6 files changed, 6 insertions(+), 12 deletions(-) |