[Bug 264520] databases/db18: DEFAULT_VERSIONS=ssl settings are not reflected

From: <bugzilla-noreply_at_freebsd.org>
Date: Tue, 07 Jun 2022 15:12:36 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=264520

            Bug ID: 264520
           Summary: databases/db18: DEFAULT_VERSIONS=ssl settings are not
                    reflected
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: Individual Port(s)
          Assignee: yasu@freebsd.org
          Reporter: t.masub@gmail.com
             Flags: maintainer-feedback?(yasu@freebsd.org)
          Assignee: yasu@freebsd.org

Created attachment 234525
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=234525&action=edit
[PATCH] Reflect the value of the DEFAULT_VERSIONS=ssl parameter

Even if DEFAULT_VERSIONS=ssl is set to openssl (Use security/openssl),
the OpenSSL libraries included in the base system are always used.

# ldd /usr/local/lib/libdb-18.1.so | grep -E 'ssl|crypto'
        libssl.so.111 => /usr/lib/libssl.so.111 (0x8006ad000)
        libcrypto.so.111 => /lib/libcrypto.so.111 (0x800fdc000)

Attach a patch to fix this.
This patch was build tested in Poudriere.

  - FreeBSD 12.3-RELEASE-p5 (amd64) / (1) ssl=openssl (2) ssl=base
  - FreeBSD 13.1-RELEASE-p0 (amd64) / (1) ssl=openssl (2) ssl=base

Background
----------
I'm using www/apache24, and after switching Berkeley DB
from databases/db5 to databases/db18, mod_ssl now gives me
an OpenSSL version warning.

ex.
[Thu Apr 07 11:08:14.144782 2022] [ssl:warn] [pid 966:tid 34375102464] AH01882:
Init: this version of mod_ssl was compiled against a newer library (OpenSSL
1.1.1n  15 Mar 2022, version currently loaded is OpenSSL 1.1.1l-freebsd  24 Aug
2021) - may result in undefined or erroneous behavior

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