Skip to content

graphics/ttyplot: fix build failure on DragonFly#1553

Merged
tuxillo merged 1 commit into
masterfrom
agentic/graphics-ttyplot-20260606-200400Z
Jun 7, 2026
Merged

graphics/ttyplot: fix build failure on DragonFly#1553
tuxillo merged 1 commit into
masterfrom
agentic/graphics-ttyplot-20260606-200400Z

Conversation

@dragonflybot

Copy link
Copy Markdown
Member

Generated by the DragonFly agentic build-fix loop and verified in a clean dev-env. Reviewed and accepted by operator operator before submission.

Problem

The build failed on @2026Q2 — classified compile-error, confidence high.

The port's existing patch only defines _XOPEN_SOURCE_EXTENDED for __APPLE__ and __FreeBSD__, but not for __DragonFly__. On DragonFly, this causes several POSIX/BSD symbols (isfinite, NAN, optreset, SIGWINCH) to remain undeclared because the feature-test macros aren't activated.

Evidence:

  • ttyplot.c:433:15: warning: implicit declaration of function 'isfinite'
  • ttyplot.c:581:22: error: 'NAN' undeclared
  • ttyplot.c:636:5: error: 'optreset' undeclared
  • ttyplot.c:727:12: error: 'SIGWINCH' undeclared
  • Existing overlay patch patch-ttyplot.c adds || defined (__FreeBSD__) but does not mention __DragonFly__.

Fix

Automated fix for the build failure in graphics/ttyplot.

What changed

3 files changed, +11/-7

  • ports/graphics/ttyplot/Makefile.DragonFly
  • ports/graphics/ttyplot/STATUS
  • ports/graphics/ttyplot/overlay.dops

Verification

Built successfully in a DragonFly dev-env (dsynth) for target @2026Q2.
Verified 2026-06-07T09:29:16.788680+00:00.

Provenance

  • Operator: operator
  • Agent: model=deepseek/deepseek-v4-pro attempts=1 tokens=372453

> Generated by the DragonFly agentic build-fix loop and verified in a clean dev-env. Reviewed and accepted by operator `operator` before submission.

## Problem

The build failed on `@2026Q2` — classified `compile-error`, confidence `high`.

The port's existing patch only defines `_XOPEN_SOURCE_EXTENDED` for `__APPLE__` and `__FreeBSD__`, but not for `__DragonFly__`. On DragonFly, this causes several POSIX/BSD symbols (`isfinite`, `NAN`, `optreset`, `SIGWINCH`) to remain undeclared because the feature-test macros aren't activated.

**Evidence:**

- `ttyplot.c:433:15: warning: implicit declaration of function 'isfinite'`
- `ttyplot.c:581:22: error: 'NAN' undeclared`
- `ttyplot.c:636:5: error: 'optreset' undeclared`
- `ttyplot.c:727:12: error: 'SIGWINCH' undeclared`
- Existing overlay patch `patch-ttyplot.c` adds `|| defined (__FreeBSD__)` but does not mention `__DragonFly__`.

## Fix

Automated fix for the build failure in `graphics/ttyplot`.

## What changed

3 files changed, +11/-7

- `ports/graphics/ttyplot/Makefile.DragonFly`
- `ports/graphics/ttyplot/STATUS`
- `ports/graphics/ttyplot/overlay.dops`

## Verification

Built successfully in a DragonFly dev-env (dsynth) for target `@2026Q2`.
Verified 2026-06-07T09:29:16.788680+00:00.

## Provenance

- Operator: operator
- Agent: model=deepseek/deepseek-v4-pro attempts=1 tokens=372453

Signed-off-by: Fred [bot] <github@dragonflybsd.org>
@tuxillo tuxillo marked this pull request as ready for review June 7, 2026 09:34
@tuxillo tuxillo merged commit 22cf695 into master Jun 7, 2026
1 of 2 checks passed
@tuxillo tuxillo deleted the agentic/graphics-ttyplot-20260606-200400Z branch June 7, 2026 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants