Skip to content

Use pkg-config for ext/ldap without a directory - #17441

Merged
NattyNarwhal merged 2 commits into
php:masterfrom
NattyNarwhal:ldap-pkgconf
Feb 28, 2025
Merged

Use pkg-config for ext/ldap without a directory#17441
NattyNarwhal merged 2 commits into
php:masterfrom
NattyNarwhal:ldap-pkgconf

Conversation

@NattyNarwhal

Copy link
Copy Markdown
Member

The existing check is not very good. OpenLDAP has been shipping a pkg-config file for a while now, and that's preferable over trying to manually find it.

Note that for older OpenLDAP or non-OpenLDAP implementations, a directory can still be passed to use the old logic. Note that Oracle LDAP is busted and going away soon; I'm not sure for other LDAP implementations.

Tested on macOS 14.

The existing check is not very good. OpenLDAP has been shipping a
pkg-config file for a while now, and that's preferable over trying to
manually find it.

Note that for older OpenLDAP or non-OpenLDAP implementations, a
directory can still be passed to use the old logic. Note that Oracle
LDAP is busted and going away soon; I'm not sure for other LDAP
implementations.

Tested on macOS 14.
Comment thread ext/ldap/config.m4 Outdated
@NattyNarwhal
NattyNarwhal marked this pull request as ready for review January 14, 2025 20:41

@cmb69 cmb69 left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense to me.

@NattyNarwhal

Copy link
Copy Markdown
Member Author

If there's no objections, I'll merge this within the week.

@petk

petk commented Feb 27, 2025

Copy link
Copy Markdown
Member

Sure, sounds good to me. I'm sorry, I don't have much time to test this at the moment. I trust you've tested it already enough... Otherwise, if anything is found later it can be resolved through bugs etc.

@NattyNarwhal
NattyNarwhal merged commit 3677871 into php:master Feb 28, 2025
adrian-enspired pushed a commit to adrian-enspired/php-src that referenced this pull request Aug 4, 2026
* Use pkg-config for ext/ldap without a directory

The existing check is not very good. OpenLDAP has been shipping a
pkg-config file for a while now, and that's preferable over trying to
manually find it.

Note that for older OpenLDAP or non-OpenLDAP implementations, a
directory can still be passed to use the old logic. Note that Oracle
LDAP is busted and going away soon; I'm not sure for other LDAP
implementations.

Tested on macOS 14.

* Convert added ifs to AS_IF
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants