HomeFreeBSD

math/Imath: ensure PYTHON build with /usr/bin/python[3] links

Description

math/Imath: ensure PYTHON build with /usr/bin/python[3] links

When /usr/bin/python[3] symlinks are present (which is nonstandard), the
FindPython logic inside cmake will grab it over $PREFIX/bin/python[3],
but still identify (by default) /usr/local/lib/... as the sitelib path,
but goof up when calculating the relative path in case of /usr/bin vs
/usr/local/bin mismatch.

Fix: Provide ${PYTHON_CMD} through the cmake Python_EXECUTABLE
variable to avoid any ambiguities and pin the right executable.

I believe it should be safe to NOT bump PORTREVISION,
but I will fetch far and err on the safe side and bump it, because that
is easier than researching all possible paths how and where
Python paths might find their way into the resulting package.

The detailed report by Seneca helped identify and solve this issue, so:
Thanks to: Seneca Cunningham <seneca@vybenetworks.com>

PR: 263341
Reported by: D'Arcy J.M. Cain <darcy@druid.net>
Reported by: Seneca Cunningham <seneca@vybenetworks.com>
MFH: 2022Q3

(cherry picked from commit d443494a71b73dc543cc0eddec69a01d6280ce02)

Details

Provenance
mandreeAuthored on Jul 12 2022, 7:06 PM
Parents
R11:65cd0c330dd7: dns/unbound: Update to 1.16.1
Branches
Unknown
Tags
Unknown