Skip to content

Rename the happy-eyeballs and text-freetype2 host files to hosts/<os> - #1066

Merged
zackees merged 1 commit into
masterfrom
infra/1009-hosts-happy-eyeballs-ft2
Oct 16, 2026
Merged

zackees merged 1 commit into
masterfrom
infra/1009-hosts-happy-eyeballs-ft2

Conversation

@zackees

@zackees zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member

Refs #1009 (the slice claimed there: the two C facades added this week, so they don't become legacy names).

  • shared/happy-eyeballs/platform/{windows,posix}/ → hosts/{windows,posix}/ (the CMake include directory and header list follow)
  • plugins/text-freetype2/text-freetype2-platform-{windows,cocoa,unix}.c → text-freetype2-host-{windows,macos,posix}.c (the unix file is Linux/FreeBSD/OpenBSD, i.e. posix); text-freetype2-platform.h → text-freetype2-host.h

Renames (git mv) and the references to them only: CMake, includes, comments, the test_text_freetype2_platform/test_text_aa_file wiring, and one example path in ci/test_ci_scope.py (still maps to the windows lane). No code change. The current ratchet tokens (windows/macos/posix) bless the new names, and they match the /hosts?[/-](windows|macos|linux|posix)[/.] rule from #1009.

Local: ./lint ok (rc 0), ratchet ok, ci/test_ci_scope.py 27/27; Tier 2 OFF: test_happy_eyeballs, test_happy_eyeballs_gai_error, test_text_aa_file, test_text_freetype2_platform pass. The run hit test_async_delay_audio (#838) and stopped before ON; PR CI runs both. ci-full is set so Windows and macOS compile the renamed files.

@zackees zackees added the ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak label Oct 16, 2026
Part of #1009 (one naming rule for host-specific code,
/hosts?[/-](windows|macos|linux|posix)[/.]):
- shared/happy-eyeballs/platform/{windows,posix}/ -> hosts/{windows,posix}/
- plugins/text-freetype2/text-freetype2-platform-{windows,cocoa,unix}.c
  -> text-freetype2-host-{windows,macos,posix}.c (the unix file is
  Linux/FreeBSD/OpenBSD, i.e. posix), text-freetype2-platform.h ->
  text-freetype2-host.h

Renames and the references to them only (CMake, includes, comments,
the test wiring, a ci_scope test path); no code change. The ratchet's
windows/macos/posix tokens still bless the new names.

Refs #1009
@zackees
zackees force-pushed the infra/1009-hosts-happy-eyeballs-ft2 branch from 966cb05 to 44d4e67 Compare October 16, 2026 10:33
@zackees

zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

Rebased onto master (after #1062). No textual conflicts. One semantic break: #1016's test_text_freetype2_bundled_font still referenced the old text-freetype2-platform-unix.c and text-freetype2-platform.h. Updated its cmake source path and include to the renamed -host-posix.c / -host.h (pure rename, same as the existing platform test edit). ./lint passes.

@zackees
zackees enabled auto-merge October 16, 2026 10:33
@zackees
zackees added this pull request to the merge queue Oct 16, 2026
Merged via the queue into master with commit b590bf7 Oct 16, 2026
27 checks passed
@zackees

zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

On hold (dequeued, back to draft): #1051's final plan ("Plan changed (2026-10-16)") drops the hosts/ direction: no platform → hosts rename, and no renaming C/C++ files to restructure. #1009's hosts/ naming (09:21Z) predates that. These are new files, not upstream ones, so the upstream-merge concern doesn't apply, but landing hosts/ here would create a one-off convention. Needs a decision: keep platform/ naming (close this) or keep hosts/ for new C facades (re-queue).

@zackees

zackees commented Oct 16, 2026

Copy link
Copy Markdown
Member Author

Correction to my comment above: this PR had already merged (11:07:42Z) before I tried to dequeue it, so nothing was dequeued or moved to draft; I didn't check its state first. The open question stands on #1009: if #1051's plan change means hosts/ is not wanted, a follow-up renames these two new facades back to the platform naming (I'll do it). Otherwise nothing to do.

@zackees

zackees commented Oct 17, 2026

Copy link
Copy Markdown
Member Author

Resolved (maintainer decision, 2026-10-17): the policy is hosts/, not platform/, for host-specific C files (hosts/<os>/, *-host-<os>.c). #1066 stands as merged; no revert follow-up. Disregard my question above.

@zackees
zackees deleted the infra/1009-hosts-happy-eyeballs-ft2 branch October 26, 2026 15:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci-full Run every CI job on this PR, including the release-gating OBS app builds and Flatpak

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant