Skip to content

Patch libcurl.pc for macOS builds #16783

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

Closed
wants to merge 1 commit into from

Conversation

cmb69
Copy link
Member

@cmb69 cmb69 commented Nov 13, 2024

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 also #16741.

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.
@cmb69
Copy link
Member Author

cmb69 commented Nov 13, 2024

This should probably be applied to lower branches; not sure if we need 8.2 or 8.1.

@iluuu1994
Copy link
Member

Thank you very much for taking care of this! Since we're using macOS 13 for all images, where the issue is also present, I believe we should backport to 8.1.

@cmb69 cmb69 closed this in 9196a72 Nov 13, 2024
@cmb69 cmb69 deleted the cmb/macos-ci-libcurl.pc branch November 13, 2024 18:42
@cmb69
Copy link
Member Author

cmb69 commented Nov 13, 2024

Applied to PHP-8.1 and merged up.

ericmann pushed a commit that referenced this pull request Nov 19, 2024
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.
adoy pushed a commit that referenced this pull request Nov 19, 2024
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants