Bug 113264

Summary: databases/mysql51-server compilation doesn't allow for local OpenSSL port use (forces yaSSL instead)
Product: Ports & Packages Reporter: User1001 <supraexpress>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description User1001 2007-06-02 20:40:03 UTC

Local OpenSSL port libraries are not used in mysql51-server compilation even when WITH_OPENSSL is selected/enabled. Instead, a packaged "yaSSL" is used ("--with-ssl=bundled"). To enable use of the (local) OpenSSL port, especially when it is newer than the base SSL, a few modifications to the port Makefile (and/or "/etc/make.conf") are necessary.

I had originally split the mods between the Makefile and /etc/make.conf, but have combined them into just one Makefile patch.

Comments:
The RPATH variable was required as simply using WITH_OPENSSL_PORT didn't prevent the base SSL libraries in /usr/lib from bein selected before the /usr/local/ OpenSSL libraries.

The #%$*^! configure script fails to initialize the internal "ssl_include" variable which then causes the base SSL libraries to be
used during the configure run, hence the additional CONFIGURE_ENV patch.

WITH_OPENSSL_LOCAL is my choice for a new option that clearly distinguishes between the default action of WITH_OPENSSL (making use of yaSSL instead of the local OpenSSL port), without changing the current behaviour of the Makefile. It would make more sense to rename "WITH_OPENSSL" to something like "WITH_BUNDLED" (which is really what it does) and then use "WITH_OPENSSL" as I have set up "WITH_OPENSSL_LOCAL", but that is somebody else's decision to make.

How-To-Repeat: 

Recompile - no local OpenSSL libraries are used.
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2007-06-02 23:10:40 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer
Comment 2 Alex Dupre freebsd_committer freebsd_triage 2009-09-04 14:44:39 UTC
State Changed
From-To: open->closed

OpenSSL support has been added.