Bug 258345 - net/libwebsockets: Fix building with LibreSSL
Summary: net/libwebsockets: Fix building with LibreSSL
Status: In Progress
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Daniel Engberg
Depends on:
Reported: 2021-09-07 17:34 UTC by rob.kruus
Modified: 2021-10-05 08:00 UTC (History)
1 user (show)

See Also:

Force use of libressl libs/includes in build if required. (512 bytes, text/plain)
2021-09-07 17:34 UTC, rob.kruus
no flags Details
Patch for libwebsockets (1.34 KB, patch)
2021-10-05 07:59 UTC, Daniel Engberg
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description rob.kruus 2021-09-07 17:34:59 UTC
Created attachment 227740 [details]
Force use of libressl libs/includes in build if required.

If libressl is defined as default in make.conf (ssl=libressl), the build uses both the base ssl and LibreSSL.
The port builds fine without this, but linking against generated libs causes confusion.

The build can be forced to build only against the LibreSSL libs and includes. This patch links against LibreSSL dynamic libs, but can also use static libs (change .so to .a).
Comment 1 Bugzilla Automation freebsd_committer 2021-09-07 17:34:59 UTC
Maintainer informed via mail
Comment 2 Daniel Engberg freebsd_committer 2021-10-05 07:59:10 UTC
Created attachment 228453 [details]
Patch for libwebsockets

Bump libwebsockets and add LibreSSL "hack"
Comment 3 Daniel Engberg freebsd_committer 2021-10-05 08:00:11 UTC
Hi Rob,

I apologize for the wait, can you give this a try and report back?
Please also include what version of FreeBSD and arch you're testing it on.

Best regards,