FS#78606 - [mbedtls] MBEDTLS_THREADING_PTHREAD and MBEDTLS_THREADING_C flags

Attached to Project: Community Packages
Opened by Armand (Kewl) - Thursday, 25 May 2023, 20:09 GMT
Last edited by Maxime Gauduin (Alucryd) - Friday, 26 May 2023, 19:18 GMT
Task Type Feature Request
Category Packages
Status Closed
Assigned To Maxime Gauduin (Alucryd)
Architecture All
Severity Low
Priority Normal
Reported Version
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

Description:
I cannot compile Hiawatha Webserver (AUR) it returns Make sure the mbed TLS shared library has been built with the MBEDTLS_THREADING_PTHREAD and MBEDTLS_THREADING_C flags set. Otherwise, it may crash the Hiawatha webserver.
Hiawatha Webserver 11.4.
What do you suggest?

Additional info:
* package version(s) 3.4.0-2

Steps to reproduce:
run
cmake ../ -DCMAKE_INSTALL_PREFIX="/" \
-DCMAKE_INSTALL_BINDIR="/usr/bin" \
-DCMAKE_INSTALL_SBINDIR="/usr/bin" \
-DCMAKE_INSTALL_SYSCONFDIR="/etc/hiawatha" \
-DCMAKE_INSTALL_LIBDIR="/usr/lib" \
-DCMAKE_INSTALL_MANDIR="/usr/share/man" \
-DCONFIG_DIR="/etc/hiawatha" \
-DLOG_DIR="/var/log/hiawatha" \
-DPID_DIR="/run" \
-DENABLE_TLS=ON \
-DUSE_SYSTEM_MBEDTLS=ON \
-DENABLE_MONITOR=ON \
-DWEBROOT_DIR="/srv/http/hiawatha" \
-DWORK_DIR="/var/lib/hiawatha"
This task depends upon

Closed by  Maxime Gauduin (Alucryd)
Friday, 26 May 2023, 19:18 GMT
Reason for closing:  Implemented
Additional comments about closing:  3.4.0-3

Thanks for the diff.
Comment by loqs (loqs) - Thursday, 25 May 2023, 20:45 GMT
Please try building mbedtls with the attached diff applied.
Comment by Armand (Kewl) - Thursday, 25 May 2023, 20:55 GMT
working great with your patch thanks!
Then it's working only on my machine, is it a flag you can implement in prod?
Comment by Armand (Kewl) - Friday, 26 May 2023, 15:58 GMT
Let me know if for some reason the flags cannot be switched on in prod what are the other alternatives

Loading...