Skip to content

Commit f55852f

Browse files
committed
Add MSYS2 platform package requirement
## Issue On MSYS2 environments, installing gems that depend on pkgconf might fail because the pkgconf system package cannot be automatically installed. ## Cause The pkg-config gem was missing MSYS2 platform configuration in its system package requirements. Without this, the rubygems-requirements-system gem cannot automatically install the pkgconfg system package on MSYS2 environments. ## Solution Add `system: pkgconf: msys2: pkgconf` to the gemspec requirements. This works with rubygems-requirements-system which supports MSYS2 platform.
1 parent ca9ad8a commit f55852f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pkg-config.gemspec

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,5 +32,7 @@ Gem::Specification.new do |spec|
3232
spec.files += Dir.glob("lib/**/*.rb")
3333
spec.test_files = Dir.glob("test/**/*.rb")
3434

35+
spec.requirements << "system: pkgconf: msys2: pkgconf"
36+
3537
spec.metadata["msys2_mingw_dependencies"] = "pkgconf"
3638
end

0 commit comments

Comments
 (0)