Skip to content

Support building for OpenBSD host#3208

Open
reezer wants to merge 1 commit into
arduino:masterfrom
reezer:compile-openbsd
Open

Support building for OpenBSD host#3208
reezer wants to merge 1 commit into
arduino:masterfrom
reezer:compile-openbsd

Conversation

@reezer

@reezer reezer commented Jun 5, 2026

Copy link
Copy Markdown

Please check if the PR fulfills these requirements

See how to contribute

  • The PR has no duplicates (please search among the Pull Requests
    before creating one)
  • The PR follows
    our contributing guidelines
  • Tests for the changes have been added (for bug fixes / features)
  • Docs have been added / updated (for bug fixes / features)
  • UPGRADING.md has been updated with a migration guide (for breaking changes)
  • configuration.schema.json updated if new parameters are added.

What kind of change does this PR introduce?

GOOS=openbsd go build ./.... will not fail anymore and build a binary

What is the current behavior?

GOOS=openbsd go build ./.... fails with:

# github.com/arduino/arduino-cli/internal/locales
internal/locales/detect.go:24:9: undefined: getLocaleIdentifier

What is the new behavior?

An arduino-cli binary is created.

Does this PR introduce a breaking change, and is titled accordingly?

No

Other information

It might make sense to do the same change for NetBSD and DragonFly as well. However this doesn't seem to currently fix compilation. Maybe it makes sense to create an _other.go or _unsupported.go or _bsd.go file so people right away see the actual error instead of the file/os target not existing?

@codecov

codecov Bot commented Jun 5, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 69.45%. Comparing base (fb6bae1) to head (a45b925).
⚠️ Report is 15 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #3208      +/-   ##
==========================================
+ Coverage   69.43%   69.45%   +0.01%     
==========================================
  Files         252      252              
  Lines       19565    19584      +19     
==========================================
+ Hits        13585    13602      +17     
+ Misses       4719     4712       -7     
- Partials     1261     1270       +9     
Flag Coverage Δ
unit 69.45% <ø> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 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.
@per1234 per1234 changed the title Compile on OpenBSD Jun 5, 2026
@per1234 per1234 added type: enhancement Proposed improvement topic: code Related to content of the project itself labels Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

topic: code Related to content of the project itself type: enhancement Proposed improvement

2 participants