Skip to content

test: Skip getexecpath on OpenBSD below 8.0 - #5670

Merged
tgross35 merged 1 commit into
rust-lang:mainfrom
vignesh-chaturvedi:openbsd-getexecpath
Oct 30, 2026
Merged

tgross35 merged 1 commit into
rust-lang:mainfrom
vignesh-chaturvedi:openbsd-getexecpath

Conversation

@vignesh-chaturvedi

@vignesh-chaturvedi vignesh-chaturvedi commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

@rustbot label +stable-nominated

#5465 added getexecpath, which OpenBSD only has since 8.0 (man page). On 7.9 the generated C fails with use of undeclared identifier 'getexecpath' and the build script panics. Skip it when VERSIONS.openbsd is below 8.0.

cc @brad0 since you added the binding.

@rustbot rustbot added S-waiting-on-review stable-nominated This PR should be considered for cherry-pick to libc's stable release branch labels Oct 26, 2026

@tgross35 tgross35 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code changes look fine but we require all communication to be handwritten, including PR descriptions and commit messages. See https://forge.rust-lang.org/policies/llm-usage.html#-banned

View changes since this review

@rustbot

rustbot commented Oct 26, 2026

Copy link
Copy Markdown
Collaborator

Reminder, once the PR becomes ready for a review, use @rustbot ready.

`getexecpath` (added in rust-lang#5465) only exists since OpenBSD
8.0, so on 7.9 the generated C fails to compile and libc-test can't
build; this skips it below 8.0.

Assisted-by: LLM
@vignesh-chaturvedi vignesh-chaturvedi changed the title test: Skip getexecpath for OpenBSD < 8.0 test: Skip getexecpath on OpenBSD below 8.0 Oct 26, 2026
@vignesh-chaturvedi

Copy link
Copy Markdown
Contributor Author

Sorry, it's on me. I rewrote the description and commit message myself.

@rustbot ready

@tgross35 tgross35 left a comment •

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@tgross35
tgross35 added this pull request to the merge queue Oct 30, 2026
Merged via the queue into rust-lang:main with commit 33b265b Oct 30, 2026
60 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stable-nominated This PR should be considered for cherry-pick to libc's stable release branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants