Skip to content

OpenBSD support#6224

Merged
lukastaegert merged 6 commits intorollup:masterfrom
edshot99:openbsd
Jan 5, 2026
Merged

OpenBSD support#6224
lukastaegert merged 6 commits intorollup:masterfrom
edshot99:openbsd

Conversation

@edshot99
Copy link
Contributor

@edshot99 edshot99 commented Dec 28, 2025

This PR contains:
OpenBSD amd64 support

  • bugfix
  • feature
  • refactor
  • documentation
  • other

Are tests included?

  • yes (bugfixes and features will not be merged without tests)
  • no

Breaking Changes?

  • yes (breaking changes will not be merged unless absolutely necessary)
  • no

List any relevant issue numbers:

Description

I added support for OpenBSD to wasm-pack since rollup has a dependency on it. Installing rollup with the updated wasm-pack gives no issues.

wasm-pack, however, cannot be used without a Rust wasm32-unknown-unknown compiler. I tried to compile one with a patch from the ports@ list, but it doesn't seem to work anymore. Following the instructions to use a prebuilt wasm32 compiler from the Rust repos somwhat works, but has issues when being used with rollup.

For napi/native builds everything works fine. OpenBSD 7.7 support is not included since the Rust compiler is too old. Only amd64 support was included since I can verify it works.

The npm packages will be in the format of openbsdX.X-arch since binaries can or will be incompatible between OpenBSD versions.

@vercel
Copy link

vercel bot commented Dec 28, 2025

@edshot99 is attempting to deploy a commit to the rollup-js Team on Vercel.

A member of the Team first needs to authorize it.

@vercel
Copy link

vercel bot commented Dec 28, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Review Updated (UTC)
rollup Ready Ready Preview, Comment Jan 5, 2026 7:02am

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

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

Thanks. It appears this build actually works!

In order to release this, though, a few more things need to be fixed. Cf. also what is done in #6163, even though that one does not build:

  • build-openbsd needs to become a dependency of the publish job
  • build-openbsd references several matrix properties that do not exist. I would just hard-code those in the right places:
    • matrix.settings.cache-cargo: Unless there it does not work, we always want to cache as it is a massive performance improvement
    • matrix.settings.host: Not important to have in the cache key
  • you need to add the new triple to the main package.json file
  • do we need any of the Rust changes done in #6163?

- replace missing matrix settings with hardcodes
- make test job depend on build-openbsd
- added missing triplet to package.json
@edshot99
Copy link
Contributor Author

Everything should be fixed now.

The amd64 build could be switched to use mimalloc (if tested), but I prefer to stick with the native memory allocator which doesn't require any Rust changes.

As for the #6163 PR, Claude AI assumes that OpenBSD arm64 will have the same SIGILL issues that Linux and Android arm64 had which is why it made changes to the Rust files to exclude it from using mimalloc.

Copy link
Member

@lukastaegert lukastaegert left a comment

Choose a reason for hiding this comment

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

The build looks fine so far, thanks!

@lukastaegert lukastaegert enabled auto-merge January 5, 2026 06:29
@codecov
Copy link

codecov bot commented Jan 5, 2026

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 98.81%. Comparing base (72b0f0e) to head (b12accf).
⚠️ Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #6224   +/-   ##
=======================================
  Coverage   98.81%   98.81%           
=======================================
  Files         272      272           
  Lines       10720    10720           
  Branches     2870     2870           
=======================================
  Hits        10593    10593           
  Misses         85       85           
  Partials       42       42           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@lukastaegert lukastaegert added this pull request to the merge queue Jan 5, 2026
Merged via the queue into rollup:master with commit 55014f3 Jan 5, 2026
47 checks passed
@ikmckenz ikmckenz mentioned this pull request Mar 14, 2026
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.

Support for OpenBSD/adJ

2 participants