[Midnightbsd-cvs] [MidnightBSD/mports] 78abd2: lang/php85: stop running the upstream test suite (...

Lucas Holt noreply at github.com
Fri Sep 11 14:30:06 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: 78abd286e749bf5b057e0b234914f102a6c5c65e
      https://github.com/MidnightBSD/mports/commit/78abd286e749bf5b057e0b234914f102a6c5c65e
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-09-11 (Fri, 11 Sep 2026)

  Changed paths:
    M lang/php85/Makefile

  Log Message:
  -----------
  lang/php85: stop running the upstream test suite (#1214)

Same defect as #1213, in `lang/php85`.

## Cause

The port defined its own test target:

```makefile
test: build
	@(cd ${WRKSRC} && ${MAKE} test)
```

This runs PHP's full upstream suite, which deadlocks in
`ext/standard/tests/streams` (proc_open/pty) — the hang that took a
magus worker out for seven days on run 646 via `lang/php84`.

It also cannot be turned off: defining `target(test)` suppresses the
guard in `Mk/bsd.mport.mk:4976` that emits the
`NO_TEST`/`TESTING_UNSAFE` handling, which is also what magus reads to
decide whether to skip the phase.

## Fix

Drop the override and set `NO_TEST` for the main port, leaving the php85
extension subports' `TEST_TARGET=test` alone.

`www/mod_php85` picks up `NO_TEST` too, since it uses `PKGNAMEPREFIX`
rather than `PKGNAMESUFFIX`. Its test phase was already a no-op (no
`TEST_TARGET`, no `do-test`), so this only makes the skip explicit — and
matches `mod_php82`/`mod_php83`, which inherit `NO_TEST` from their
masters. There is no `mod_php84`.

No packaged content changes, so no `PORTREVISION` bump.

## Verification

- `lang/php85`: `bmake -V NO_TEST` → `yes`; `bmake -n test` no longer
emits `(cd work/php-8.5.9 && bmake test)`.
- `www/php85-tidy`: `NO_TEST` empty, `TEST_TARGET=test` — unchanged.
- `portlint -C`: 16 fatal / 6 warnings both before and after (all
pre-existing).

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

https://claude.ai/code/session_017JRCQA17KgZSRk2vV96wbT

## Summary by Sourcery

Disable the deadlocking upstream test suite for PHP 8.5 by removing its
custom test target and marking the main port as not testable.

Bug Fixes:
- Prevent the PHP 8.5 upstream test suite from deadlocking build
workers.

Enhancements:
- Use the ports framework's explicit test-skipping behavior for the PHP
8.5 main port and its mod_php85 package while leaving extension subport
tests unchanged.

Signed-off-by: Lucas Holt <luke at foolishgames.com>
Co-authored-by: Claude Opus 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