rust-lang / pkg-config-rs

Build library for invoking pkg-config for Rust
https://docs.rs/pkg-config
Apache License 2.0
173 stars 79 forks source link

Fix compatibility with pkgconf 2.0 #153

Closed berolinux closed 1 year ago

berolinux commented 1 year ago

pkgconf 2.0 no longer accepts --modversion calls specifying multiple modules or modules specified multiple times, such as what pkg-config-rs does when checking for versioned dependencies, such as

pkg-config --modversion libxyz "libxyz >= 2.0.0"

(which should be just pkg-config --modversion "libxyz >= 2.0.0").

The correct call works with both old and new pkg-config.

sdroege commented 1 year ago

This is a bug in pkgconf and fixed in version 2.0.1. See https://github.com/rust-lang/pkg-config-rs/issues/150 https://github.com/pkgconf/pkgconf/issues/310