-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
libjpeg: add missing stdlib includes in the public header #23428
Conversation
To check whether the package works correctly without additional stdlib includes before its headers.
Currently only re-ordered the includes in test_package to not include anything else before |
Conan v1 pipeline ❌Failure in build 1 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. Conan v2 pipeline ❌
The v2 pipeline failed. Please, review the errors and note this is required for pull requests to be merged. In case this recipe is still not ported to Conan 2.x, please, ping See details:Failure in build 1 (
Note: To save resources, CI tries to finish as soon as an error is found. For this reason you might find that not all the references have been launched or not all the configurations for a given reference. Also, take into account that we cannot guarantee the order of execution as it depends on CI workload and workers availability. |
Huh. Apparently it's by design: libjpeg-turbo/libjpeg-turbo#17 (comment) |
Hi @valgur - thanks for opening this PR. A couple notes:
on the other hand, i can see this is a very complex test package that really doesn't add much. The typical test package, unless there's a strong justification, should just be limited to including a public header and calling a function where the symbol is provided by the library (as opposed to a function that is self-contained in a header). ANY such function would do - even if it the expected results in an error. So I would strongly encourage to simplify this test package as much as possible. |
@jcar87 Sorry, I did not see your message before closing. As I mentioned in the previous comment, it was currently just a draft PR without an actual fix just do demonstrate that using libjpeg without a preceding This would normally be considered a bug in an upstream project, but it's apparently intentional and should be kept that way for consistency. |
libjpeg
is apparently missing#include <stddef.h>
and#include <stdio.h>
in its exportedjpeglib.h
main public header.