bibledit / cloud

Source code for Bibledit core library and Cloud binary
GNU General Public License v3.0
12 stars 3 forks source link

Building with MbedTLS 3.x #944

Open Tachi107 opened 2 weeks ago

Tachi107 commented 2 weeks ago

Hi all!

I'm in the process of transitioning Debian to use the new MbedTLS 3.6 LTS release, which supersedes the older 2.28.x branch currently packaged in Debian and Ubuntu.

Unfortunately, bibledit is among the packages which are failing to build with this new MbedTLS release, and is hence holding back the transition.

I tried looking into the failures, but this project is quite complex and haven't been able to provide a patch myself. Here is one of the failures I've encountered while building your software:

webserver/webserver.cpp:34:10: fatal error: mbedtls/certs.h: No such file or directory
   34 | #include <mbedtls/certs.h>
      |          ^~~~~~~~~~~~~~~~~

According to MbedTLS' 3.0 migration guide, available at https://github.com/Mbed-TLS/mbedtls/blob/mbedtls-3.6/docs/3.0-migration-guide.md, the "certs" module has been removed from the library as it was always considered suitable for production use.

Hope this can get fixed soon! If you need help with MbedTLS, I'll do my best to be helpful :)

Bye!

teusbenschop commented 1 week ago

Hello Andrea,

Thank you for the update. Yes, so the time has now come to move to MbedTLS 3.x from v 2.x.

There's a plan to do this in phases, and this issue causes this plan to be put into motion.

These are the phases:

teusbenschop commented 1 week ago

Hello @Tachi107 , a new upload was made and is now building in Debian unstable, that won't hold back the transition to MbedTLS 3.6 any more. It temporarily embeds the code from mbedtls. The plan is that once mbedtls 3.6 has made it to unstable, that I make a new upload that again links to the system-provided mbedtls library.

Thanks for your work on transitioning MbedTLD, and good luck!

Tachi107 commented 1 week ago

Hi Teus, thanks for your super fast action and spot-on suggestions! I'll go ahead with the transition, I still have quite a few packages to look into :)

Thanks again!