Summary: | multimedia/onevpl: wrong python version used if newer python (than default) is installed ('make install' fails) | ||
---|---|---|---|
Product: | Ports & Packages | Reporter: | John Hein <jcfyecrayz> |
Component: | Individual Port(s) | Assignee: | Jan Beich <jbeich> |
Status: | Closed FIXED | ||
Severity: | Affects Some People | CC: | python |
Priority: | --- | Flags: | bugzilla:
maintainer-feedback?
(jbeich) jbeich: merge-quarterly+ |
Version: | Latest | ||
Hardware: | Any | ||
OS: | Any | ||
See Also: | https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=262109 |
Description
John Hein
2022-01-23 15:28:06 UTC
Adding -DPython3_EXECUTABLE=${PYTHON_CMD} to CMAKE_ARGS seems to do the trick. This might be considered a bug in the cmake support in Uses/python.mk (Python_ADDITIONAL_VERSIONS did not seem to help - maybe because of changes over the years to the "FindPython" infrastructure in cmake). Maybe Python3_EXECUTABLE should be added in python.mk python@ CC'd for input. A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=0378719b21c61d5a5d3dc8f31be7781fd7ff11ef commit 0378719b21c61d5a5d3dc8f31be7781fd7ff11ef Author: John Hein <jcfyecrayz@liamekaens.com> AuthorDate: 2022-01-24 16:02:33 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2022-02-11 11:07:00 +0000 multimedia/onevpl: respect PYTHON_DEFAULT $ pkg install python311 $ make -V PYTHON_DEFAULT 3.8 $ make clean all [...] -- Found Python3: /usr/local/bin/python3.11 (found version "3.11.0") found components: Interpreter Development Development.Module Development.Embed [...] CMake Warning: Manually-specified variables were not used by the project: [...] Python_ADDITIONAL_VERSIONS [...] $ make check-plist ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist Error: Orphaned: %%PYTHON_LIBDIR%%/pyvpl.cpython-311.so ===> Checking for items in pkg-plist which are not in STAGEDIR Error: Missing: %%PYTHON_LIBDIR%%/pyvpl%%PYTHON_EXT_SUFFIX%%.so ===> Error: Plist issues found. *** Error code 1 PR: 261415 multimedia/onevpl/Makefile | 1 + 1 file changed, 1 insertion(+) A commit in branch 2022Q1 references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=d4d984097ef8f4a36b05b610f5ff8de7a22d58c2 commit d4d984097ef8f4a36b05b610f5ff8de7a22d58c2 Author: John Hein <jcfyecrayz@liamekaens.com> AuthorDate: 2022-01-24 16:02:33 +0000 Commit: Jan Beich <jbeich@FreeBSD.org> CommitDate: 2022-02-11 11:08:43 +0000 multimedia/onevpl: respect PYTHON_DEFAULT $ pkg install python311 $ make -V PYTHON_DEFAULT 3.8 $ make clean all [...] -- Found Python3: /usr/local/bin/python3.11 (found version "3.11.0") found components: Interpreter Development Development.Module Development.Embed [...] CMake Warning: Manually-specified variables were not used by the project: [...] Python_ADDITIONAL_VERSIONS [...] $ make check-plist ====> Checking for pkg-plist issues (check-plist) ===> Parsing plist ===> Checking for items in STAGEDIR missing from pkg-plist Error: Orphaned: %%PYTHON_LIBDIR%%/pyvpl.cpython-311.so ===> Checking for items in pkg-plist which are not in STAGEDIR Error: Missing: %%PYTHON_LIBDIR%%/pyvpl%%PYTHON_EXT_SUFFIX%%.so ===> Error: Plist issues found. *** Error code 1 PR: 261415 (cherry picked from commit 0378719b21c61d5a5d3dc8f31be7781fd7ff11ef) multimedia/onevpl/Makefile | 1 + 1 file changed, 1 insertion(+) |