-
Notifications
You must be signed in to change notification settings - Fork 528
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
Bug 5428: Missing pkg-config not treated as an error #1901
Conversation
Making this as cleared for merge since the issue was already triaged in the bug report and this fix agreed to be added. |
whoops, we overlapped. Main difference is my PR (#1902 ) warns, instead of erring. |
removed merge flag until we agree on which approach to take |
IMO error is best for v7 since that version is moving to require it. Older versions the warning may be appropriate if you want to backport a fix. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What required Squid features require pkg-config? If they exist, please update PR description to mention one or, better, two of them. Otherwise, we should not require pkg-config.
Short answer is: We all agreed to make Long(er) answer: .. depends entirely on ones scope / interpretation of the word "required";
... those are the obvious highlighted by FWIW; There is already a diagnostic line printed about |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
let's ship it.
Missing pkg-config will result in unexpected build outcomes, better be prescriptive and ensure we have a fully working build environment
We did not1.
In this context, "X is required" means (roughly speaking) "there is no environment where
AFAICT, all modules checked by PKG_CHECK_MODULES() are not "required" (as defined above). The original change request stands. Footnotes
|
Vetoed by Alex. |
@yadij How about just changing AC_MSG_ERROR to AC_MSG_WARN? |
pkg-config is required for building many parts of Squid.
But the PKG_PROG_PKG_CONFIG macro silently ignores
a missing binary. Causing errors far later at build time
which are often mistaken for issues with the library it was
used to detect.
Make pkg-config a mandatory build dependency now
that we rely on PKG_CHECK_MODULES to auto-detect
supported libraries.