[Midnightbsd-cvs] [MidnightBSD/mports] 9acba3: filesystems/libfsntfs: set pyexecdir for Python 3....
Lucas Holt
noreply at github.com
Tue Sep 22 23:11:23 EDT 2026
Branch: refs/heads/master
Home: https://github.com/MidnightBSD/mports
Commit: 9acba374f46012e78ce2efa726dea3e7f1bd104e
https://github.com/MidnightBSD/mports/commit/9acba374f46012e78ce2efa726dea3e7f1bd104e
Author: Lucas Holt <luke at foolishgames.com>
Date: 2026-09-22 (Tue, 22 Sep 2026)
Changed paths:
M filesystems/libfsntfs/Makefile
Log Message:
-----------
filesystems/libfsntfs: set pyexecdir for Python 3.12 (#1603)
Fixes the Magus failure in run 648, port ID 2265666:
`libtool: error: cannot install 'pyfsntfs.la' to a directory not ending
in /usr/local/`
## Cause
Upstream's `m4/python.m4` works out `pyexecdir` by running `import
distutils.sysconfig`. Python 3.12 removed `distutils`, and the error is
thrown away. On a builder without setuptools' distutils stand-in
(Magus), `pyexecdir` becomes `${exec_prefix}/`. `pyfsntfs.la` is a
`pyexec_LTLIBRARIES`, so the earlier `--with-pythondir` fix (#1550)
didn't cover it. That fix passed locally only because setuptools was
installed.
## Fix
`MAKE_ARGS= pyexecdir=${PYTHON_SITELIBDIR}`. Fake also passes
`MAKE_ARGS`, so this works whatever configure detected.
## Testing
- I set the generated `pyfsntfs/Makefile` to Magus's broken `pyexecdir =
${exec_prefix}/`. `bmake fake` then succeeded, with `pyfsntfs.so` and
`pyfsntfs.a` in `lib/python3.12/site-packages`, matching pkg-plist.
- `bmake package` succeeded.
- portlint: no new issues.
- Not yet confirmed on Magus.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
## Summary by Sourcery
Bug Fixes:
- Fix Python 3.12 builds by ensuring libfsntfs installs its Python
extension modules into the configured site-packages directory when
distutils is unavailable.
Signed-off-by: Lucas Holt <luke at foolishgames.com>
Co-authored-by: Claude Opus 5.5 (1M context) <noreply at anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/MidnightBSD/mports/settings/notifications
More information about the Midnightbsd-cvs
mailing list