Summary: | devel/py-rpds-py: "FileNotFoundError: [Errno 2] No such file or directory: 'maturin'" in build phase for non-default Python | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | John W. O'Brien <john> |
Component: | Individual Port(s) | Assignee: | Kai Knoblich <kai> |
Status: | Closed FIXED | ||
Severity: | Affects Only Me | CC: | john, kai, python |
Priority: | --- | ||
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
Bug Depends on: | 272618 | ||
Bug Blocks: |
Description
John W. O'Brien
2023-07-19 14:30:08 UTC
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=00ae5289b23194d0b79413e62abc6ceff960fb09 commit 00ae5289b23194d0b79413e62abc6ceff960fb09 Author: John Hein <jcfyecrayz@liamekaens.com> AuthorDate: 2023-08-03 11:04:59 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2023-08-03 11:04:59 +0000 devel/py-maturin: Fix command name for non-default Python versions If devel/py-maturin is built for a non-default python flavor (e.g., 'make FLAVOR=py38'), the port installs bin/maturin-<ver> and does not install bin/maturin which is normal and expected. The site-packages/maturin/__init__.py file, however, explicitly defines the command to use as 'maturin'. Because of this when using maturin to build other ports, they can fail with "No such file or directory: 'maturin'". [1] Fix the issue by aligning the command name to the actual Python flavor. PR: 272618, 272600 [1] Reported by: John W. O'Brien [1] MFH: 2023Q3 (after 1 week) devel/py-maturin/Makefile | 3 ++- devel/py-maturin/files/patch-maturin-__init__.py (new) | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) A commit in branch 2023Q3 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0199fbab9ae53912fd05dcacd3348a32a28de3a7 commit 0199fbab9ae53912fd05dcacd3348a32a28de3a7 Author: John Hein <jcfyecrayz@liamekaens.com> AuthorDate: 2023-08-03 11:04:59 +0000 Commit: Kai Knoblich <kai@FreeBSD.org> CommitDate: 2023-08-10 12:14:55 +0000 devel/py-maturin: Fix command name for non-default Python versions If devel/py-maturin is built for a non-default python flavor (e.g., 'make FLAVOR=py38'), the port installs bin/maturin-<ver> and does not install bin/maturin which is normal and expected. The site-packages/maturin/__init__.py file, however, explicitly defines the command to use as 'maturin'. Because of this when using maturin to build other ports, they can fail with "No such file or directory: 'maturin'". [1] Fix the issue by aligning the command name to the actual Python flavor. PR: 272618, 272600 [1] Reported by: John W. O'Brien [1] MFH: 2023Q3 (after 1 week) (cherry picked from commit 00ae5289b23194d0b79413e62abc6ceff960fb09) devel/py-maturin/Makefile | 3 ++- devel/py-maturin/files/patch-maturin-__init__.py (new) | 11 +++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) @sunpoet: The reported issue should be fixed with bug #272618. If there are no further issues this bug can be closed. @kai, I could confirm the issue is fixed. Thanks! |