No output for --atleast-version when package is missing #115
Loading…
Reference in New Issue
There is no content yet.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may exist for a short time before cleaning up, in most cases it CANNOT be undone. Continue?
The following command has no output:
./pkgconf --print-errors --short-errors someinexistintlibrary --atleast-version 5
While
pkg-config
will yield:Which is useful to know why the build is failing. Tested on 0.9.12-1 and git master as well, issue is present in both cases.
For info, the given command is what
cmake
uses when invokingpkg-config
(orpkgconf
).This interface is deprecated, cmake would be much better off doing the right thing, which is:
pkg-config --print-errors --short-errors --exists 'somelibrary >= 5'
OK - will try to make a patch for cmake. In the mean time it would be good to have the issue fixed, because packaged cmake version is often 1 or 2 years old (debian, etc.), so it would mean having the issue for still that time.
In the mean time,
pkgconf
does not handle the--short-errors
correctly either (extra verbosity):Versus
pkg-config
:cmake should not depend on output, but exit codes. nonetheless, --short-errors will be in 1.3.1.
to clarify however, we do not have the exact same error messages -- this is intentional and we will not be changing it. if cmake is depending on specific error message formats, it is really broken and they should fix it, as they should be using exit codes to determine failure.
No no, they handle it as expected (using
$?
) ; they simply use--short-errors
so that logs remain human readable. I wasn't aware that it wasn't implemented yet, so it's fine :).As for
--atleast-version
and so on, the problem there is that the support for that legacy interface does not invoke the dependency resolver, so we do not have that type of error information available to us. It simply looks up the package and does a version comparison.OK, thanks for the update. I guess it's fair enough not to implement it then, and wait for next cmake version. Feel free to close the issue, ta!
1.3.1 will have very limited error reporting for the legacy interface. We never bothered to really flesh it out because it's obsolete for years :)