[Bug 269064] editors/pico-alpine has stopped building with libressl

From: <bugzilla-noreply_at_freebsd.org>
Date: Sat, 25 Mar 2023 14:05:42 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=269064

Scuff <scuffbox@proton.me> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |scuffbox@proton.me

--- Comment #2 from Scuff <scuffbox@proton.me> ---
I encountered this issue recently after updating LibreSSL. When using LibreSSL,
the compile appears to be using blocks of code intended for versions of OpenSSL
lower than 1.1.0, where some structs appear to be accessed directly.

This probably isn't the proper solution, but my workaround was to make the
configure script treat LibreSSL the same as OpenSSL >= 1.1.0 as follows:

1) From the port directory, `make patch`
2) Make the following change to work/alpine-9726c09/configure:

--- configure.orig
+++ configure
@@ -19566,6 +19566,7 @@
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
 $as_echo "yes" >&6; }
          alpine_SSLPROVIDER="libressl"
+         CFLAGS="$CFLAGS -DOPENSSL_1_1_0 -DOPENSSL_API_COMPAT=0x10100000L"

 else
    { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5

3) Continue the build/install with `make`/`make install`/etc.

Hopefully this points someone towards a more proper solution. While it appears
to work as it should (for the mail/alpine port as well), it would be good if
verified as flaw-free by others more familiar.

-- 
You are receiving this mail because:
You are the assignee for the bug.