Skip to content

publish-cvcpkg: ari-media on cvcpkg.org, and arigl with its player - #1023

Merged
transfix merged 3 commits into
masterfrom
feat/publish-ari-media
Nov 5, 2026
Merged

transfix merged 3 commits into
masterfrom
feat/publish-ari-media

Conversation

@transfix

@transfix transfix commented Nov 5, 2026 •

Copy link
Copy Markdown
Owner

The packaged hosts have no video/audio player, so nicotina's video: and audio: say unsupported everywhere they run from cvcpkg.org.

  • ari-media was never published. cvcpkg/recipes/ari-media exists, but no workflow builds it.
  • arigl has no player either. The publish job never had FFmpeg at build time. The shared cvcGL's cvcMedia built without it, and a cvcMedia without FFmpeg still builds and packs, with the player silently absent. ffmpeg-lgpl's DLLs got installed beside arigl as a runtime dep of cvcgl, but nothing linked them. Checked on arigl 3.7.10+cvc.1 for Windows from cvcpkg.org: a document with requires: [media.player] fails arigl check.

Changes (publish-cvcpkg.yml unless noted)

  • cvcgl [Linux] / [Windows]: ffmpeg-lgpl for the shared cvcGL, named outright (CVC_FFMPEG_INCLUDE_DIR / CVC_FFMPEG_<lib>_LIBRARY). On Linux it goes into $PY, already on the job's prefix and loader paths (installed with LD_LIBRARY_PATH unset, as for xvfb/mesa). On Windows it gets a prefix of its own, kept off CMAKE_PREFIX_PATH: it carries its own zlib, libpng and the like.

    • The step fails unless cvcMedia's configure says FFmpeg player ENABLED. On Linux it also fails unless libcvcMedia.so links ffmpeg-lgpl's libavformat soname.
    • The static cvcGL builds without the player (-DCVC_MEDIA_WITH_FFMPEG=OFF): a static cvcMedia exports what it links, and FFmpeg's pkg-config target or paths would not resolve in a consumer's prefix.
  • arigl [Linux] / [Windows]: arigl info --json must report "media_player": true, beside the yaml/ftxui/tvision checks.

  • ari-media [Linux] / [macOS] / [Windows]: new steps after each ari step. Each runs the recipe's own script against the libcvc built here, with sdl3 and ffmpeg-lgpl in a prefix of their own. Before it packs, each binary must:

    • report "runtime": "ari-media", "audio": true and "media_player": true;
    • render the terminal tour;
    • open src/ari/tests/media_player.ari's clip and tone (video ready audio ready) on SDL's dummy sound;
    • link ffmpeg-lgpl's libavformat (readelf / otool).

    Then it packs and publishes like ari. Its +cvc.N comes from compute-revisions.

  • src/cvcMedia/CMakeLists.txt: CVC_MEDIA_WITH_FFMPEG (default ON) turns the player off. An FFmpeg named by CVC_FFMPEG_INCLUDE_DIR skips pkg-config, so a host FFmpeg's .pc cannot stand in for it.

  • cvcpkg/recipes/ari-media/build.sh, build.ps1: take CVC_FFMPEG_PREFIX (FFmpeg in a prefix of its own) and name its libraries outright. A builder's flat prefix needs nothing: FFmpeg is found there as before.

Verified locally (Windows, MSVC):

  • build.ps1 with CVC_FFMPEG_PREFIX against libcvc 3.7.10+cvc.1 + sdl3 from cvcpkg.org: cvcMedia: FFmpeg player ENABLED with the named .libs, and the stage holds bin/ari-media.exe alone.
  • That binary passes check on a requires: [media.player] document. info --json reports "media_player": true and "audio": true. The tour renders. media_player.ari reaches video ready audio ready on SDL_AUDIO_DRIVER=dummy.
  • A configure with -DCVC_MEDIA_WITH_FFMPEG=OFF and an include dir given reports no player.
  • The workflow YAML parses; the new and changed run blocks pass bash -n and the PowerShell parser.

Dry runs (workflow_dispatch, dry_run=true: build and pack, no publish, no artifact upload):

  • 41970161318 on 3bb539f found a bug already in the recipe's build.sh, on its first Linux run: it built --target ari-media alone, then installed the ari component, which holds bin/ari too. Fixed in 9e796fb (every target, as build.ps1 builds).
  • 41973897441 on 9e796fb:
    • Linux x86_64 and arm64, and Windows: every step passed. cvcgl's shared cvcGL has the player and links ffmpeg-lgpl's libavformat; arigl reports media_player; ari-media passes its info, tour, clip and libavformat checks and packs. The pycvc 3.12/3.13 columns and the debug rows passed too.
    • macOS arm64: ari-media built with FFmpeg player ENABLED and links @rpath/libavformat.61.7.100.dylib, but my otool pattern expected one version number. Fixed in a4f8ee7. Its info, tour and clip checks did not run after that; the first macOS run of them is the next one (a dry run or the release).

Nothing is published until the next release tag.

Nothing published ari-media, and the published arigl has no player:
the publish job never had FFmpeg, so the shared cvcGL's cvcMedia built
without it, the player was silently absent, and video: and audio: say
unsupported in every packaged host (arigl 3.7.10: `requires:
[media.player]` fails). ffmpeg-lgpl's DLLs were installed beside it as
a runtime dep of cvcgl, but nothing linked them.

- cvcgl [Linux] / [Windows]: ffmpeg-lgpl for the shared cvcGL (into $PY
  on Linux, a prefix of its own on Windows), named outright. The step
  fails unless cvcMedia's configure reports the player, and on Linux
  unless libcvcMedia.so links ffmpeg-lgpl's libavformat soname. The
  static cvcGL builds without the player: a static cvcMedia exports
  what it links, and FFmpeg's paths would not resolve downstream.
- arigl [Linux] / [Windows]: `arigl info` must report media_player.
- ari-media [Linux] / [macOS] / [Windows]: new steps, the recipe's own
  script against the libcvc built here, with sdl3 and ffmpeg-lgpl in a
  prefix of their own. Each must report its player (info: media_player,
  audio), render the terminal tour, open the player test's clip and
  tone on SDL's dummy sound, and link ffmpeg-lgpl's libavformat, before
  it packs. Its revision comes from compute-revisions like the others.
- cvcMedia: CVC_MEDIA_WITH_FFMPEG (default ON) turns the player off; an
  FFmpeg named by CVC_FFMPEG_INCLUDE_DIR skips pkg-config, so a host
  FFmpeg's .pc cannot stand in for it.
- ari-media recipe: build.sh and build.ps1 take CVC_FFMPEG_PREFIX, an
  FFmpeg in a prefix of its own, and name its libraries outright.
transfix pushed a commit to cy-pca/nicotina that referenced this pull request Nov 5, 2026
arigl from cvcpkg.org was built without FFmpeg, so it has no player either,
not only the unpublished ari-media. transfix/libcvc#1023 builds arigl's player
and publishes ari-media from the next libcvc release.
It built --target ari-media alone, then installed the ari component, which
holds bin/ari too, so the install failed on a bin/ari never built (the first
Linux run, in publish-cvcpkg's dry run 41970161318: file INSTALL cannot find
build-ari-media/ari). bin/ari is still removed after the install.
transfix added a commit to cy-pca/nicotina that referenced this pull request Nov 5, 2026
…d's picture behind its text in a terminal (#16)

libcvc 3.7.9 released the media stack and 3.7.10 is what CI installs, and
main's integration job failed on it: ari has image.url now, so a card's
author avatar is a picture, not the "(AL)" initials. tests/local.sh asks
the host, as run.sh does.

The profile card's picture (card_image_url) now shows behind its text in
a terminal too (terminal: behind), since 3.7.9 fixed the half-blocks'
colour bleed; the window's page picture stays window-only. run.sh checks
the half-blocks beside the card's lines. The README names the releases
that carry each feature, and says no packaged host has a player yet
(transfix/libcvc#1023).
…install name

ffmpeg-lgpl's dylibs are named @rpath/libavformat.61.7.100.dylib, which the
one-number pattern missed: the macOS arm64 dry run (41973897441) built and
linked the player, then failed the check.
@transfix
transfix merged commit 7c9e614 into master Nov 5, 2026
28 checks passed
@transfix
transfix deleted the feat/publish-ari-media branch November 5, 2026 07:33
transfix added a commit to cy-pca/nicotina that referenced this pull request Nov 6, 2026
ari-media, ari with a player for video: and audio:, is on cvcpkg.org since
libcvc 3.7.10+cvc.1 (transfix/libcvc#1023, Linux and Windows). The unit job
now runs tests/run.sh twice, with the plain ari and with ari-media, so the
cards' video and audio checks run instead of skipping. ci/install-hosts.sh
installs ari-media beside ari and arigl and checks it has its player; the
tests get SDL's dummy sound, since a runner has no sound device.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant