[Midnightbsd-cvs] [MidnightBSD/mports] 286c58: devel/libdex: add python build dependency for PyGO...

Lucas Holt noreply at github.com
Thu Sep 24 00:00:02 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: 286c58dfb055e8b99b6b313f51b43c975dfabcdf
      https://github.com/MidnightBSD/mports/commit/286c58dfb055e8b99b6b313f51b43c975dfabcdf
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-09-23 (Wed, 23 Sep 2026)

  Changed paths:
    M devel/libdex/Makefile
    M devel/libdex/pkg-plist

  Log Message:
  -----------
  devel/libdex: add python build dependency for PyGObject override (#1618)

Fixes the Magus build failure
https://www.midnightbsd.org/magus/ports/2262516 (run 648, amd64, 4.1):

```
Program python3 found: NO
src/meson.build:302:31: ERROR: python3 not found
```

libdex 1.2.0 installs a PyGObject override (`Dex.py`) by default
(`-Dpygobject=true`), and `src/meson.build` uses
`find_installation('python3')` to find Python. The port didn't depend on
Python, so configure only worked on hosts that happened to have
`python3` installed.

Changes:
- `USES+= python:build`
- `BINARY_ALIAS= python3=${PYTHON_CMD}`
- In `pkg-plist`, the hardcoded `lib/python3.12/site-packages` is now
`%%PYTHON_SITELIBDIR%%`

Validation on 4.0.6 amd64, glib 2.90.0:
- clean `bmake package` succeeds; meson log shows `Program python3
found: YES (.../work/.bin/python3)`
- `bmake test`: no tests defined
- portlint: only pre-existing warnings

PORTREVISION is not bumped because the installed files are the same.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

## Summary by Sourcery

Declare and configure the Python build dependency required to build
libdex consistently across environments.

Bug Fixes:
- Ensure libdex builds reliably by declaring Python as a build
dependency for its PyGObject override.

Enhancements:
- Use the configured Python interpreter and portable Python site-library
paths in the port metadata.

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