HN
Today

Wine ported to OpenBSD

Against all odds and its own minimalist ethos, OpenBSD has gained a Wine port, allowing 64-bit Windows applications and even modern games to run. This technical marvel has ignited discussions on the future of BSD as a desktop OS and the role of AI in its notoriously rigorous development. The port represents a significant milestone for a system traditionally focused on security and stability over broad application compatibility.

390
Score
114
Comments
#1
Highest Rank
8h
on Front Page
First Seen
Oct 19, 2:00 PM
Last Seen
Oct 19, 9:00 PM
Rank Over Time
61112224

The Lowdown

In a development that has surprised and delighted the OpenBSD community, a working port of Wine has been announced, bringing compatibility for a substantial range of 64-bit Windows applications to the famously secure operating system. This is no small feat, given OpenBSD's stringent security model and distinct kernel architecture.

  • The port specifically targets 64-bit Windows software, demonstrating successful execution of applications like Notepad++ and even demanding titles such as 'The Witcher 3 Remastered'.
  • Key technical hurdles involved emulating the %gs register mechanism, which required clever instruction trapping and rewriting, and adapting Wine's signal handling and inter-process communication (SIGUSR1, ReadProcessMemory).
  • The effort, credited to a team including Andrii and Fabien, overcame significant challenges, particularly the gsbase issue, which was solved by emulating the %gs prefix on commands.
  • Limitations include a lack of support for 32-bit Windows software (WoW64 functionality is not yet available) and ongoing work to stabilize internal Wine tests.
  • Users are advised to run Wine within a separate, unprivileged user context, reflecting OpenBSD's security-conscious philosophy.

The successful integration of Wine opens new, unexpected avenues for OpenBSD, potentially broadening its appeal beyond server and niche security applications, and bringing it closer to the elusive 'BSD desktop' dream.

The Gossip

Porting Prowess and Desktop Dreams

Commenters lauded the monumental technical achievement of bringing Wine to OpenBSD, expressing surprise and excitement. Many highlighted the potential for a viable "BSD gaming desktop" in 2026, with some sharing gameplay videos of demanding titles running successfully. There was general awe at the ability to run complex Windows software on such a security-hardened OS, signaling a significant shift for OpenBSD's desktop usability.

Upstream Unease and OpenBSD's Unique Way

The discussion delved into the challenges of upstreaming the OpenBSD-specific Wine patches to the main Wine project, primarily due to the unique `%gs` register emulation and other OpenBSD-isms. Commenters noted OpenBSD's adherence to CVS and its distinct development philosophy, often prioritizing security and maintainability over broad compatibility or modern tooling. The port's maintainers acknowledged that much of their work is OpenBSD-specific and unlikely to be accepted upstream due to the Wine project's hesitation to support another OS with complex, non-standard changes.

AI's Amorphous Assistance: Slop or Support?

A lively debate erupted around the use of AI in code development, especially in light of OpenBSD's strong stance against 'AI slop' due to copyright concerns. While some questioned if the Wine port itself was AI-generated, the primary author, NethIafin, clarified that he used AI iteratively for prototyping and understanding complex assembly, but then rewrote the code himself to comply with OpenBSD's strict no-LLM policy. This sparked broader discussion on the 'careful balance' of AI assistance, its impact on FOSS, and whether projects like OpenBSD risk 'falling behind' by rejecting it outright.

Graphics Grumbles and Driver Developments

Questions arose regarding the state of 3D, OpenGL, and Vulkan support on OpenBSD, particularly concerning graphics drivers. Commenters clarified that OpenBSD has robust open-source drivers for Intel and AMD GPUs (updated from Linux kernels), with the upcoming 8.0 release featuring recent Linux 6.18.y drivers. However, NVIDIA support remains limited to older cards and open-source drivers. The ability for VKD3D to function was surprising, highlighting the progress in OpenBSD's graphics stack, making gaming a more realistic prospect.