Skip to content

Comments

ci: add glibc 2.41 prebuilds for Debian 13/Raspberry Pi OS#199

Open
xuy wants to merge 1 commit intodiscordjs:mainfrom
xuy:add-glibc-2.41-support
Open

ci: add glibc 2.41 prebuilds for Debian 13/Raspberry Pi OS#199
xuy wants to merge 1 commit intodiscordjs:mainfrom
xuy:add-glibc-2.41-support

Conversation

@xuy
Copy link

@xuy xuy commented Feb 22, 2026

Summary

Adds CI jobs to build prebuilt binaries for glibc 2.41 (Debian Trixie) systems.

Problem

Currently, @discordjs/opus prebuilt binaries are only available for:

  • glibc 2.31 (Ubuntu 20.04)
  • glibc 2.35 (Ubuntu 22.04)
  • glibc 2.39 (Ubuntu 24.04)

Users on Debian 13 (Trixie) and Raspberry Pi OS Trixie get glibc 2.41, which has no prebuilt binary. This causes npm install to:

  1. Try to download the missing glibc-2.41 prebuilt
  2. Fall back to compiling from source
  3. The compilation also fails due to newer GCC warnings being treated as errors

Solution

Add a new build_glibc_241 job that uses debian:trixie Docker containers to build prebuilts for glibc 2.41 systems.

This covers:

  • Debian 13 (Trixie)
  • Raspberry Pi OS Trixie (RPi 5 default OS)
  • Future Ubuntu releases

Changes

  • release.yml: Add build_glibc_241 job for x64 and arm64 builds with Node 20, 22, 24, 25
  • build.yml: Add build_glibc_241 job (limited to Node 22 for PR testing)

Testing

I verified the build works on a Raspberry Pi 5 running Debian Trixie:

$ npm install --build-from-source
$ npm test
> @discordjs/opus@0.10.0 test
> node tests/test.js
Passed

The produced binary is correctly named:
opus-v0.10.0-node-v127-napi-v3-linux-arm64-glibc-2.41.tar.gz

Adds a new build_glibc_241 job that uses Debian Trixie containers
to produce prebuilt binaries for systems with glibc 2.41+.

This enables @discordjs/opus to work out-of-the-box on:
- Debian 13 (Trixie)
- Raspberry Pi OS Trixie
- Future Ubuntu releases with glibc 2.41+

The job builds for both x64 and arm64 architectures across
Node.js versions 20, 22, 24, and 25.
@xuy
Copy link
Author

xuy commented Feb 22, 2026

[Written by human]

And to add some context on why it is valuable -- the latest openclaw package introduced dependencies on discordjs/opus (openclaw/openclaw@4ab946e), and this unblocks openclaw's deployment on RPi5.

@mattrickslauer
Copy link

@xuy is the MVP on this, merge this asap please

Copy link

@mattrickslauer mattrickslauer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems legit

@njbarrett
Copy link

+1 to this, causing me problems updating openclaw

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.

3 participants