Bug 1211810

Summary: Enable THREADING with PTHREAD by changing include file (not CMake commandline)
Product: [openSUSE] openSUSE Tumbleweed Reporter: Arjen de Korte <suse+build>
Component: OtherAssignee: Otto Hollmann <otto.hollmann>
Status: RESOLVED FIXED QA Contact: E-mail List <qa-bugs>
Severity: Normal    
Priority: P5 - None CC: pmonrealgonzalez
Version: Current   
Target Milestone: ---   
Hardware: Other   
OS: Other   
Whiteboard:
Found By: --- Services Priority:
Business Priority: Blocker: ---
Marketing QA Status: --- IT Deployment: ---

Description Arjen de Korte 2023-05-29 18:35:50 UTC
Setting the following parameters in the CMake commandline won't update the include/mbedtls/mbedtls_config.h file:

 -DMBEDTLS_THREADING_C=ON \
 -DMBEDTLS_THREADING_PTHREAD=ON \

Application linking this library use the mbedtls_config.h file to see what options the library was build with. Therefor it is better to uncomment these defines in the include file, so that both library and applications linking to it have the same starting point.

See https://build.opensuse.org/request/show/1089636
Comment 1 Simon Lees 2023-08-04 02:28:20 UTC
Reassigning to the mbedtls maintainers as this seems specific to that package rather then cmake in general
Comment 2 Arjen de Korte 2023-08-04 05:05:48 UTC
This is already fixed in MbedTLS, so this can be closed (see https://build.opensuse.org/request/show/1089650)
Comment 3 Pedro Monreal Gonzalez 2023-08-30 09:50:36 UTC
(In reply to Simon Lees from comment #1)
> Reassigning to the mbedtls maintainers as this seems specific to that
> package rather then cmake in general

Note that, Otto is not the maintainer of mbedtls. See:

> osc maintainer -e mbedtls
> Defined in package: security:tls/mbedtls 
>  bugowner of mbedtls : 
>    -
>  maintainer of mbedtls : 
>    mpluskal@suse.com, fisiu@opensuse.org