-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Prepend brew's pkgconfig to PKG_CONFIG_PATH #16741
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
Conversation
This is another attempt to fix recent macOS x64 configure failures.
Nope, doesn't help. |
Huh, now have |
Something is messed up there. https://github.com/php/php-src/actions/runs/11758794188/job/32757544083?pr=16741#step:5:492 claims no dependency on ldap/openldap, but that was the message that triggered our investigations. I wonder which curl package we find in the first place. |
Interesting. Upstream also yielded a comment that might be related two days ago, at least it is about building PHP/libcurl and the ldap requirement:
And later on OP (Thom1b) comments:
|
Thank you @hakre! This is certainly related, but I don't understand what's going on there. PHP uses plain It is very hard to figure out what is going on, since Github apparently uses at least three different runner images, and apparently only |
No Intel nor Arm system on my hand to run builds on or systems to test with these github action images. I also learned I can not even restart that job.
|
I had restarted the jobs, but again |
@cmb69 ldap was newly added as a private dependency. curl/curl@1d96067 Not sure why our build script thinks they are required, maybe @petk can help? |
This is not the fault of our configuration, since we ever only use |
I also checked for Oh, I just realized the curl version pkg-config reports is not the one installed via brew... |
Here's another try. https://github.com/iluuu1994/php-src/actions/runs/11781877622/job/32815654207
it does explicitly say "private requirement" here. I don't understand why it says:
But it says that in the successful build as well. |
It seems that Not relevant for us, but still wrong is to set PS: ldap.pc is the canonical name from OpenLDAP. I would check, but apparently you cannot download a package manually. |
It seems that Homebrew should use the pkgconf instead of the pkg-config: Cflags.private aren't supported there: Perhaps something related to this. |
Ah, indeed. While I still don't think that |
Okay, latest test used |
Tried to install pkgconf, but now pgk-config won't work; likely the symlink is missing yet. I wouldn't know where to put it. |
I've managed to use pkgconf as drop-in replacement for pkg-config. But now we have https://github.com/php/php-src/actions/runs/11820495789/job/32932931483?pr=16741. So Anyhow, given that the GH November images appear to be used more often, we need to do something. We might wait on curl/curl#15573 to be rolled out (which probably only cures the symptons, and might not even work). Install further packages (if they're even available). Or maybe hack along. |
MACOS_ARM64_DEBUG_NTS succeeded; our first successful build with libcurl 8.11.0 \o/ |
Closing in favor of PR #16783. |
cURL 8.11.0 added a couple of packages to `Requires.private`, but these packages are irrelevant when building against a shared libcurl. For some reason, these private requirements are checked when we're doing `pkg-config --cflags` (that happens with the preinstalled pkg-config 0.29.2, as well as with pkgconf 2.3.0). To avoid further messing with these packages, we just drop the `Requires.private` line from libcurl.pc. See GH-16741 for more details. Closes GH-16783.
cURL 8.11.0 added a couple of packages to `Requires.private`, but these packages are irrelevant when building against a shared libcurl. For some reason, these private requirements are checked when we're doing `pkg-config --cflags` (that happens with the preinstalled pkg-config 0.29.2, as well as with pkgconf 2.3.0). To avoid further messing with these packages, we just drop the `Requires.private` line from libcurl.pc. See GH-16741 for more details. Closes GH-16783.
cURL 8.11.0 added a couple of packages to `Requires.private`, but these packages are irrelevant when building against a shared libcurl. For some reason, these private requirements are checked when we're doing `pkg-config --cflags` (that happens with the preinstalled pkg-config 0.29.2, as well as with pkgconf 2.3.0). To avoid further messing with these packages, we just drop the `Requires.private` line from libcurl.pc. See GH-16741 for more details. Closes GH-16783.
This is another attempt to fix recent macOS x64 configure failures.
Note that
Version: 20241008.186
is supposed to succeed anyway; the problem is withVersion: 20241108.324
only.