Comments (4)
Interesting, what version of pkg-config
do you have? For me it looks like:
$ pkg-config --help
Usage: pkg-config [OPTION...]
...
--atleast-version=VERSION return 0 if the module is at least version VERSION
...
$ pkg-config --version
0.26
from pkg-config-rs.
Interesting indeed. This is with pkg-config
version 0.28. I didn't expect that to be a recent change.
Indeed my --help
and man page says the same thing as yours, but the tool behaves as though the whole bunch of --exists
, --atleast-version=VERSION
, --exact-version=VERSION
, and --max-version=VERSION
are to be used on their own. Possibly the syntax I mentioned above is now preferred, because anything else is not workable when checking for multiple libraries at the same time, but for now that's a wild guess.
from pkg-config-rs.
Okay, so I have investigated a bit more. Apparently --exists
is the default output mode and can be mixed with --{atleast,exact,max}-version
, but only one of them. Any other output mode option (--libs
, --cflags
, etc.) does not work in conjunction with them. Indeed the change is not exactly recent (2012), but within the 0.28 time frame. The exact commit is http://cgit.freedesktop.org/pkg-config/commit/?id=548ba5b223b28370f1ebad51dd7ae298e4be1428 and was regarded as a bug fix.
from pkg-config-rs.
Very interesting! Thanks for investigating :)
I've pushed a fix which uses the new syntax now.
from pkg-config-rs.
Related Issues (20)
- Should we parse -isystem Cflags? HOT 2
- customized pkg-config is incomplete? HOT 1
- Bug: Missing support for `pkgconf` for Fedora HOT 3
- v0.3.21 raised MSRV to 1.47.0 HOT 4
- Placing pkg-config.exe file to this git if possible HOT 3
- Libraries linked in incorrect order HOT 3
- Incorrect parse result for raw archive path HOT 3
- [Feature Request] Add configurable linking modifiers HOT 6
- `PKG_CONFIG_PATH_FOR_BUILD` env var HOT 4
- Allow disabling pkg-config altogether HOT 7
- static-nobundle option
- Unable to correctly identify a type of Windows static library name, such as `foo.lib` HOT 7
- Cargo build say "library name must not be empty" while using statik(true) HOT 4
- fails with pkgconf 2.0.0 breaking changes HOT 1
- Cannot link static libraries on Windows MinGW because the Libs.private flags are ignored
- Reduce -L flag pollution by resolving -L -l flags to on-disk files
- Rustdoc docs are missing information about environment variables present in README HOT 2
- Cannot link statically against `alsa` library HOT 2
- Add tag for 0.3.30 release? HOT 2
- Never pick up strawberry perl's pkg-config as a valid pkg-config HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pkg-config-rs.