[Midnightbsd-cvs] [MidnightBSD/mports] 3c89df: www/foreign-cdm: new port, Linuxulator CDM agent f...

Lucas Holt noreply at github.com
Sun Sep 6 10:16:52 EDT 2026


  Branch: refs/heads/master
  Home:   https://github.com/MidnightBSD/mports
  Commit: 3c89df04127a4ce75136e86eaa0e704144770702
      https://github.com/MidnightBSD/mports/commit/3c89df04127a4ce75136e86eaa0e704144770702
  Author: Lucas Holt <luke at foolishgames.com>
  Date:   2026-09-06 (Sun, 06 Sep 2026)

  Changed paths:
    M www/Makefile
    A www/foreign-cdm/Makefile
    A www/foreign-cdm/distinfo
    A www/foreign-cdm/files/fcdm-setup-env.in
    A www/foreign-cdm/pkg-descr
    A www/foreign-cdm/pkg-message

  Log Message:
  -----------
  www/foreign-cdm: new port, Linuxulator CDM agent for Chromium (#843)

New port: `www/foreign-cdm`, imported from FreeBSD.

`foreign-cdm` runs Google's Linux Widevine CDM under the Linuxulator and
proxies it to a native Chromium over Cap'n Proto. This is what makes
`www/chromium`'s `WIDEVINE` option satisfiable — until now that option
referenced a port mports did not have (see #842).

### MidnightBSD changes versus FreeBSD's port

- `ports at MidnightBSD.org`, lowercase `mit` license id
- `USES=linux:rl9` rather than plain `linux`. FreeBSD picks the Linux
base from `LINUX_DEFAULT` and falls back to `devel/linux-c7-devtoolset`
for the CentOS 7 case; mports has no such port, so this pins to Rocky
Linux 9 and drops the branch.
- mports staging semantics in `do-install`, using `${TRUE_PREFIX}` for
the two symlink *targets* — those are runtime paths, while the links
themselves belong in the staging tree
- explicitly create `${PREFIX}/libexec` before installing into it

### Testing (amd64, MidnightBSD 4.1)

`bmake build`, `bmake fake` and `bmake package` all clean. Both the
native `fcdm-fbsd.so`/`fcdm-jail` side and the Linux-side
`fcdm-linux.so`/`fcdm-worker` (built with the rl9
`x86_64-redhat-linux-g++`) compile.

`bmake check-fake` warns that the two `WidevineCdm` symlinks are
dangling. That is expected: `libwidevinecdm.so` resolves once the
package is installed, and `manifest.json` needs
`www/linux-widevine-cdm`, which is not yet in mports — `pkg-message`
points users at it.

### Not verified

DRM playback itself was not exercised; that needs
`www/linux-widevine-cdm` and a browser session. The port was built and
packaged but not installed here (`fcdm-jail` is installed setuid root).

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

https://claude.ai/code/session_01RfjmwisLNPFuZeaQCUJn4A

## Summary by Sourcery

Add foreign-cdm support so Chromium can use Google's Linux Widevine CDM
through a native MidnightBSD integration.

New Features:
- Add the foreign-cdm port to provide a Linuxulator-based Widevine CDM
agent for native Chromium on supported architectures.

Enhancements:
- Integrate Rocky Linux 9 runtime/build support and install the native
and Linux CDM components with Chromium-compatible Widevine paths.

Documentation:
- Document the external Widevine CDM dependency and setup requirements.

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