[Bug 275728] mail/openarc:Fix build with OpenSSL from ports

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 12 Dec 2023 18:26:15 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=275728

            Bug ID: 275728
           Summary: mail/openarc:Fix build with OpenSSL from ports
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: yuri@freebsd.org
          Reporter: dinoex@FreeBSD.org
             Flags: maintainer-feedback?(yuri@freebsd.org)
          Assignee: yuri@freebsd.org

Created attachment 247011
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=247011&action=edit
patch

Problem:

/etc/make.conf
DEFAULT_VERSIONS+= ssl=openssl

Build in a clean jail in FreeBSD 13.2

# pkg install openarc

# service openarc start
Starting milteropenarc.
openarc: incompatible SSL versions (library = 0x01010114f, filter = 01010116f)
/usr/local/etc/rc.d/openarc: WARNING: failed to start milteropenarc

Diagnostics:

# ldd /usr/local/sbin/openarc
/usr/local/sbin/openarc:
        libopenarc.so.0 => /usr/local/lib/libopenarc.so.0 (0x1b93be0aa000)
        libmilter.so.6 => /usr/lib/libmilter.so.6 (0x1b93be58e000)
        libssl.so.111 => /usr/lib/libssl.so.111 (0x1b93bece3000)
        libcrypto.so.111 => /lib/libcrypto.so.111 (0x1b93c065e000)
        libjansson.so.4 => /usr/local/lib/libjansson.so.4 (0x1b93bf208000)
        libthr.so.3 => /lib/libthr.so.3 (0x1b93bffdb000)
        libc.so.7 => /lib/libc.so.7 (0x1b93c15e9000)
        [vdso] (0x7ffffffff5d0)

Includes and Libs are consistent with a simple patch
USES+= localbase
CONFIGURE_ARGS+= --with-openssl=${OPENSSLBASE}

Full patch attached.

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