Skip to content

CI: Update bottle tag for libomp in install-macos.sh#1735

Open
ruevs wants to merge 1 commit into
masterfrom
macOS_CI_Again
Open

CI: Update bottle tag for libomp in install-macos.sh#1735
ruevs wants to merge 1 commit into
masterfrom
macOS_CI_Again

Conversation

@ruevs

@ruevs ruevs commented Jul 12, 2026

Copy link
Copy Markdown
Member

Because the CI fails to fetch the `libomp bottle for Sonoma, even though the site claims it is supported: https://formulae.brew.sh/formula/libomp

Because the CI fails to fetch the `libomp bottle for Sonoma, even though the site claims it is supported: https://formulae.brew.sh/formula/libomp
@phkahler

Copy link
Copy Markdown
Member

Fails in CI.

@vespakoen any idea how to fix mac again?

@vespakoen

Copy link
Copy Markdown
Contributor

Seems to be a brew fetch bug, or publish issue?
I was able to download the bottle using "manual fiddling"

curl --disable --cookie /dev/null --globoff --show-error \
    --user-agent Homebrew/4.0.10-7-g91251d5\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.3\)\ curl/7.79.1 --header Accept-Language:\ en \
    --fail --progress-bar --retry 3 \
    --header Accept:\ application/vnd.oci.image.index.v1\+json \
    --header Authorization:\ Bearer\ QQ== \
    --location --remote-time \
    --output manifest.json \
    https://ghcr.io/v2/homebrew/core/libomp/manifests/22.1.8

dl_digest=$(cat manifest.json| jq --raw-output ".manifests[] | select(.annotations.\"org.opencontainers.image.ref.name\" == \"22.1.8.arm64_sonoma\")".annotations.\"sh.brew.bottle.digest\")

dl_location=$(curl --disable --cookie /dev/null --globoff --show-error \
    --user-agent Homebrew/4.0.10-7-g91251d5\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.3\)\ curl/7.79.1 \
    --header Accept-Language:\ en \
    --retry 3 \
    --header Authorization:\ Bearer\ QQ== \
    --location --silent --head --request GET \
    https://ghcr.io/v2/homebrew/core/libomp/blobs/sha256:$dl_digest | grep "location:" | sed -r 's/location: //' | tr -d '\r\n')

curl --disable --cookie /dev/null --globoff --show-error \
    --user-agent Homebrew/4.0.10-7-g91251d5\ \(Macintosh\;\ Intel\ Mac\ OS\ X\ 12.6.3\)\ curl/7.79.1 \
    --header Accept-Language:\ en \
    --fail --progress-bar --retry 3 --location --remote-time --output bottle.tar.gz \
    "$dl_location"

Not sure if we want to include something like this in the code because it will probably break withing months as well ;) but perhaps as a temporary workaround?

We could also pin the macos version to something earlier? I don't see why we need to have the latest here...

@phkahler

Copy link
Copy Markdown
Member

Google was telling me something about having to specify the path/location to libomp for Sonoma. @vespakoen I'm fine with using an older version. On Windows we are still using a 10 year old fork of Angle - I think that's a bit excessive, but it just works. These constant little changes on macOS are getting old - I'm sure you agree ;-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants