Skip to content

gh-162923: Fix configure on NetBSD - #162924

Open
serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-162923-configure-bashism
Open

serhiy-storchaka wants to merge 1 commit into
python:mainfrom
serhiy-storchaka:gh-162923-configure-bashism

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Dec 1, 2026 •

Copy link
Copy Markdown
Member

Replace the ${_host_os:N} substring expansions added in gh-131999 with $(echo ${_host_os} | cut -c...), as was done for iOS in #123717. NetBSD's /bin/sh rejects them at parse time ("Bad substitution"), so configure failed even though these branches are not taken there.

Tested on NetBSD 10.2: configure and the build succeed. The replacement gives the same values as the original expansions.

🤖 Generated with Claude Code

Do not use bash-only substring expansion for tvOS, visionOS and
watchOS deployment targets.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant