Skip to content
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

Fix lib-curl-openssl parsing for SecureTransport #11534

Merged
merged 1 commit into from Jul 21, 2023

Conversation

dzuelke
Copy link
Contributor

@dzuelke dzuelke commented Jul 4, 2023

On macOS, if libcurl is built against SecureTransport, the platform repository will contain an invalid package name:

% composer show --platform | grep curl
ext-curl                           8.2.7    The curl PHP extension
lib-curl                           8.1.2    The curl library
lib-curl-(securetransport) openssl 3.1.1    curl (securetransport) openss...
lib-curl-libssh2                   1.11.0   curl libssh2 version
lib-curl-zlib                      1.2.11   curl zlib version

This change fixes it:

% bin/composer show --platform | grep curl
lib-curl                 8.1.2              The curl library
lib-curl-libssh2         1.11.0             curl libssh2 version
lib-curl-securetransport 3.1.1              curl (securetransport) openssl ...
lib-curl-zlib            1.2.11             curl zlib version

(second column width difference comes from the Composer dev version number)

Should this target 2.2, too? Or 2.5?

Fixes #11548

On macOS, if libcurl is built against SecureTransport, the platform repository will contain an invalid package name:

    % composer show --platform | grep curl
    ext-curl                           8.2.7    The curl PHP extension
    lib-curl                           8.1.2    The curl library
    lib-curl-(securetransport) openssl 3.1.1    curl (securetransport) openss...
    lib-curl-libssh2                   1.11.0   curl libssh2 version
    lib-curl-zlib                      1.2.11   curl zlib version

This change fixes it:

    % bin/composer show --platform | grep curl
    lib-curl                 8.1.2              The curl library
    lib-curl-libssh2         1.11.0             curl libssh2 version
    lib-curl-securetransport 3.1.1              curl (securetransport) openssl ...
    lib-curl-zlib            1.2.11             curl zlib version

(second column width difference comes from the Composer dev version number)
@cdayjr
Copy link
Contributor

cdayjr commented Jul 10, 2023

Seems like this would fix #11548 as well

@Seldaek Seldaek added this to the 2.6 milestone Jul 21, 2023
@Seldaek Seldaek merged commit 8f49166 into composer:main Jul 21, 2023
17 of 18 checks passed
@Seldaek
Copy link
Member

Seldaek commented Jul 21, 2023

Thanks, I do the 2.2 backports myself it's fine.

Seldaek pushed a commit that referenced this pull request Sep 28, 2023
On macOS, if libcurl is built against SecureTransport, the platform repository will contain an invalid package name:

    % composer show --platform | grep curl
    ext-curl                           8.2.7    The curl PHP extension
    lib-curl                           8.1.2    The curl library
    lib-curl-(securetransport) openssl 3.1.1    curl (securetransport) openss...
    lib-curl-libssh2                   1.11.0   curl libssh2 version
    lib-curl-zlib                      1.2.11   curl zlib version

This change fixes it:

    % bin/composer show --platform | grep curl
    lib-curl                 8.1.2              The curl library
    lib-curl-libssh2         1.11.0             curl libssh2 version
    lib-curl-securetransport 3.1.1              curl (securetransport) openssl ...
    lib-curl-zlib            1.2.11             curl zlib version

(second column width difference comes from the Composer dev version number)
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.

Invalid platform package name in config.platform: lib-curl-(securetransport) openssl
4 participants