Handle missing pacman in msys2 install_dependencies.sh - #8551
Open
danoli3 wants to merge 1 commit into
Open
Conversation
Look up pacman on PATH and common MSYS2 install locations from Git Bash. If missing, point at the VS helper and msys2.org, and on Windows fall back to scripts/vs/install_dependencies.sh. Default to UCRT64, skip empty MINGW_PACKAGE_PREFIX from the MSYS shell, use --noconfirm (not --confirm), refresh the package DB before install, and pin OpenCV 4 from the ucrt64 repo.
danoli3
force-pushed
the
msys2-pacman-fallback
branch
from
September 2, 2026 05:23
09b0cf6 to
509a707
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Problem
On Windows Git Bash this dies immediately:
pacmanonly exists inside an MSYS2 UCRT64/MINGW64/CLANG64 shell. Git Bash, cmd, and PowerShell do not have it, and OF does not need those MinGW packages for a Visual Studio build.Fix
pacmanon PATH, then typical MSYS2 locations (C:\msys64\..., scoop, etc.)MSYSTEM/MINGW_PACKAGE_PREFIXto ucrt64 when unsetscripts/vs/install_dependencies.sh+scripts/vs/download_libs.sh, and on Windows exec the VS helper (gum via winget/scoop) instead of crashingMSYS2 users who already have pacman are unchanged.