[macOS] Pin version for tcl/tk and pkg-config (#10971)

This commit is contained in:
sarathrajsrinivasan
2024-11-15 03:45:48 -08:00
committed by GitHub
parent 9b55b80556
commit 5cd2ef1b0a
12 changed files with 36 additions and 12 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash -e -o pipefail
################################################################################
## File: install-pkg-config.sh
## Desc: Install pkg-config
################################################################################
source ~/utils/utils.sh
echo "Installing pkg-config..."
brew tap-new my-org/old-formulas
brew extract pkg-config my-org/old-formulas --version=0.29.2
brew install my-org/old-formulas/pkg-config@0.29.2
invoke_tests "Common" "pkg-config"

View File

@@ -538,7 +538,7 @@ function Get-LibXextVersion {
}
function Get-TclTkVersion {
$tcltkVersion = (Run-Command "brew info --json tcl-tk" | ConvertFrom-Json).installed.version
$tcltkVersion = (Run-Command "brew info --json tcl-tk@8" | ConvertFrom-Json).installed.version
return $tcltkVersion
}

View File

@@ -168,3 +168,9 @@ Describe "Unxip" {
"unxip --version" | Should -ReturnZeroExitCode
}
}
Describe "pkg-config" {
It "pkg-config" {
"pkg-config --version" | Should -ReturnZeroExitCode
}
}