Skip to content

Conversation

3405691582
Copy link
Member

One of the tests refers to openpty, which requires linking with libutil on OpenBSD.

Motivation:

swift test on the project has a link failure on OpenBSD.

Modifications:

Add the libutil linker flag in Package.swift

Checklist:

  • Code and documentation should follow the style of the Style Guide.
  • If public symbols are renamed or modified, DocC references should be updated. (not required).

One of the tests refers to openpty, which requires linking with libutil
on OpenBSD.
@stmontgomery stmontgomery added bug 🪲 Something isn't working build 🧱 Affects the project's build configuration or process openbsd 🐡 OpenBSD support labels Aug 22, 2025
@stmontgomery stmontgomery added this to the Swift 6.x (main) milestone Aug 22, 2025
@stmontgomery
Copy link
Contributor

@swift-ci please test

@3405691582
Copy link
Member Author

Please merge on my behalf if there's nothing else, thank you!

@stmontgomery
Copy link
Contributor

Thanks @3405691582. For reference, I see the reference to openpty here:

try #require(0 == openpty(&primary, &secondary, nil, nil, nil))

@stmontgomery stmontgomery merged commit cff2b11 into swiftlang:main Aug 22, 2025
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug 🪲 Something isn't working build 🧱 Affects the project's build configuration or process openbsd 🐡 OpenBSD support

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants