Skip to content

ci/macos: don't set MACOSX_DEPLOYMENT_TARGET to empty string - #17331

Open
kasper93 wants to merge 1 commit into
mpv-player:masterfrom
kasper93:fix-macos-ci
Open

ci/macos: don't set MACOSX_DEPLOYMENT_TARGET to empty string#17331
kasper93 wants to merge 1 commit into
mpv-player:masterfrom
kasper93:fix-macos-ci

Conversation

@kasper93

Copy link
Copy Markdown
Member

Fixes:
error: failed to parse deployment target specified in MACOSX_DEPLOYMENT_TARGET: cannot parse integer from empty string

Fixes:
error: failed to parse deployment target specified in
MACOSX_DEPLOYMENT_TARGET: cannot parse integer from empty string
@kasper93
kasper93 requested a review from Akemi January 26, 2026 08:46
@Akemi

Akemi commented Jan 27, 2026

Copy link
Copy Markdown
Member

this seems to be a problem with rust and how they parse the version string from that env variable. the current build tools/pipeline don't have that problem and i would say an empty string could be considered a valid input (same as unset) or at least something that could be handled gracefully.

i think this should rather be fixed by rust, only be merged if we actually use rust and only as a (temporary) workaround imo.

as context from irc:

16:27 der_richter ┃ kasper93 where exactly do you see this error? not doub doubting just wonbdering, since i couldn't find it in on our CI builds https://github.com/mpv-player/mpv/pull/17331
03:37 kasper93 ┃ der_richter: https://github.com/mpv-player/mpv/actions/runs/21195313096/job/60969880968

error run: https://github.com/mpv-player/mpv/actions/runs/21195313096/job/60969880968
PR: #16051
loosely related issue: rust-lang/cargo#13115

@kasper93

Copy link
Copy Markdown
Member Author

What is the value of setting this variable to empty string?

@Akemi

Akemi commented Jan 27, 2026

Copy link
Copy Markdown
Member

it's cleaner and avoids an unnecessary condition atm.

what is the value of an unnecessary fix?

@kasper93

Copy link
Copy Markdown
Member Author

what is the value of an unnecessary fix?

It fixes building with rustc on CI.

@Akemi

Akemi commented Jan 28, 2026

Copy link
Copy Markdown
Member

It fixes building with rustc on CI.

we don't use rustc atm, so it doesn't fix anything.

@sfan5 sfan5 added the priority:on-ice may be revisited later label Mar 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority:on-ice may be revisited later

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants