-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Mbedtls 3.6 subslotting #9876
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: mbedtls-3.6
Are you sure you want to change the base?
Mbedtls 3.6 subslotting #9876
Conversation
Use standard `CMAKE_INSTALL_INCLUDEDIR` and `CMAKE_INSTALL_LIBDIR` location to define headers and library installation. This variable can be redefined on configuration phase to allow install headers and libraries to different location (like `include/mbedtls3`, Mbed-TLS#8723). Additionally removing explicit permission rules as they may broke proper permissions for system installation (like remove executable bit from libraries). By default CMake sets permissions correctly on all files and directories. See Mbed-TLS#8723 for rationale. Signed-off-by: Azamat H. Hackimov <[email protected]>
Convert main library targets to slottable versions. This allows to install major versions of MbedTLS simultaneously. Dependent packages should use `find_package(MbedTLS 3 [REQUIRED])` and `MbedTLS::<component>` in order to use requested libraries. Signed-off-by: Azamat H. Hackimov <[email protected]>
Convert main library targets to slottable versions. This allows to install major versions of MbedTLS simultaneously. Dependent packages should use `pkg-config --libs --cflags (mbedtls3|mbedx5093|mbedx5093)` in order to use requested libraries. Signed-off-by: Azamat H. Hackimov <[email protected]>
Signed-off-by: Azamat H. Hackimov <[email protected]>
1221602
to
be062f4
Compare
Thank you very much for this contribution. This seems a good improvement and the PR seems in a good shape. I have triggered the CI. |
Regarding to test failures: I can make version suffix addition optional via cmake |
Make version suffix appending optional. Change suffix to include dash symbol to comply pkg-config naming conventions. Signed-off-by: Azamat H. Hackimov <[email protected]>
e534656
to
3e51f0c
Compare
I've added |
Description
This PR allows to install major versions of MbedTLS simultaneously.
Dependent packages should use
find_package(MbedTLS 3 [REQUIRED])
andMbedTLS::<component>
in order to use requested libraries. Packages that relies on pkg-config output, should usepkg-config --libs --cflags (mbedtls3|mbedx5093|mbedx5093)
output in order to discover actual library names and include paths.Fixes #8723
PR checklist
Please remove the segment/s on either side of the | symbol as appropriate, and add any relevant link/s to the end of the line.
If the provided content is part of the present PR remove the # symbol.
Notes for the submitter
Please refer to the contributing guidelines, especially the
checklist for PR contributors.
Help make review efficient: