Skip to content

Commit

Permalink
[macOS] Pin version for tcl/tk and pkg-config
Browse files Browse the repository at this point in the history
  • Loading branch information
sarathrajsrinivasan committed Nov 14, 2024
1 parent c8606f6 commit 271fd23
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions images/macos/scripts/build/install-pkg-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,9 @@
source ~/utils/utils.sh

echo "Installing pkg-config..."
pkg_config_tar=$(download_with_retry "https://pkgconfig.freedesktop.org/releases/pkg-config-0.29.2.tar.gz")
pkg_config_sha256="6fc69c01688c9458a57eb9a1664c9aba372ccda420a02bf4429fe610e7e7d591"
use_checksum_comparison $pkg_config_tar $pkg_config_sha256
# Extract the tarball and get the directory name
tar -xzf "$pkg_config_tar"
pkg_config=$(tar -tf "$pkg_config_tar" | head -1 | cut -f1 -d"/")
install "$pkg_config" /usr/local/bin/pkg-config

# Create a symlink to /usr/local/bin
ln -sf $(which pkg-config) /usr/local/bin/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/[email protected]

invoke_tests "Common" "pkg-config"

0 comments on commit 271fd23

Please sign in to comment.