-
Notifications
You must be signed in to change notification settings - Fork 602
Bug 5513: Fix OpenLDAP detection #2267
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||
|---|---|---|---|---|
|
|
@@ -1199,7 +1199,13 @@ SQUID_CHECK_LIB_WORKS(gss,[ | |||
|
|
||||
| SQUID_AUTO_LIB(ldap,[LDAP],[LIBLDAP]) | ||||
| SQUID_CHECK_LIB_WORKS(ldap,[ | ||||
| SQUID_STATE_SAVE(squid_ldap_state) | ||||
| PKG_CHECK_MODULES([LIBLDAP],[ldap],[:],[:]) | ||||
| AS_IF([test "x$LIBLDAP_LIBS" = "x"],[ | ||||
| dnl hack for detecting OpenLDAP older than 2.5 | ||||
| AC_CHECK_LIB(lber, ber_init, [LIBLBER="-llber"]) | ||||
| AC_CHECK_LIB(ldap, ldap_init, [LIBLDAP_LIBS="-lldap $LIBLBER"]) | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
I am opening a new thread for this important question to avoid hijacking an unrelated change request where that question was asked. My earlier questions were not answered directly, but I assume that #2267 (comment) implies that the following statements are true:
If the above statements are true, and there are no known problems with existing pkg-config-based code in Squid, then I believe that the correct answer to your question is "Yes, please close this PR: We do not want to restore or add detection code for libraries that provide working pkg-config files (in some environments) and can be correctly handled using custom ./configure options (in other environments). We need to avoid long-term maintenance overheads associated with such detection code. Wiki pull requests documenting workarounds for older environments are welcome."
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Noted.
IMO, we need to focus on addressing that problem (instead of re-affirming that it is possible to hard-code exceptional code that fixes build in a specific environment like EL7 or EL8). "Addressing that problem" may result in fixing
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I will admit that it was premature to drop the
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The reason for that is that is the placement of the fallback logic within the With the current PR patch:
|
||||
| ]) | ||||
| AS_IF([test "$squid_host_os" = "mingw" -a "x$LIBLDAP_LIBS" = "x"],[ | ||||
| dnl On MinGW OpenLDAP is not available, try Windows LDAP libraries | ||||
| dnl TODO: use AC_CHECK_LIB | ||||
|
|
@@ -1213,6 +1219,7 @@ SQUID_CHECK_LIB_WORKS(ldap,[ | |||
| AC_CHECK_HEADERS(ldap.h lber.h) | ||||
| AC_CHECK_HEADERS(mozldap/ldap.h) | ||||
| SQUID_CHECK_LDAP_API | ||||
| SQUID_STATE_ROLLBACK(squid_ldap_state) | ||||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. State preservation is done by the
Suggested change
|
||||
| ]) | ||||
|
|
||||
| SQUID_AUTO_LIB(sasl,[Cyrus SASL],[LIBSASL]) | ||||
|
|
||||
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.
State preservation is done by the
*_LIB_WORKSmacro.