Code Monkey home page Code Monkey logo

Comments (4)

alexcrichton avatar alexcrichton commented on August 15, 2024

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.

Florob avatar Florob commented on August 15, 2024

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.

Florob avatar Florob commented on August 15, 2024

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.

alexcrichton avatar alexcrichton commented on August 15, 2024

Very interesting! Thanks for investigating :)

I've pushed a fix which uses the new syntax now.

from pkg-config-rs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.