Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 2 Jun 2007 14:19:18 -0500
From:      "User1001" <supraexpress@globaleyes.net>
To:        "FreeBSD gnats submit" <FreeBSD-gnats-submit@FreeBSD.org>
Subject:   ports/113264: ports/mysql51-server compilation doesn't allow for local OpenSSL port use (forces yaSSL instead)
Message-ID:  <1180811958.1026@FreeBSD2.LocalNET10>
Resent-Message-ID: <200706021940.l52Je3pJ041146@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         113264
>Category:       ports
>Synopsis:       ports/mysql51-server compilation doesn't allow for local OpenSSL port use (forces yaSSL instead)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sat Jun 02 19:40:03 GMT 2007
>Closed-Date:
>Last-Modified:
>Originator:     User1001
>Release:        FreeBSD 6.2-STABLE i386
>Organization:
>Environment:


System: FreeBSD 6.2-STABLE #5: Sat May 12 09:17:19 CDT 2007




>Description:


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.


>Fix:


--- Makefile.orig       Sat Jun  2 13:45:30 2007
+++ Makefile    Sat Jun  2 14:03:27 2007
@@ -43,6 +43,11 @@
 .endif
 .if defined(WITH_OPENSSL)
 CONFIGURE_ARGS+=--with-ssl=bundled
+.elif defined(WITH_OPENSSL_LOCAL)
+WITH_OPENSSL_PORT= yes
+USE_OPENSSL_RPATH= yes
+CONFIGURE_ARGS+=--with-ssl=/usr/local
+CONFIGURE_ENV+="ssl_include=/usr/local/include"
 .endif
 .if defined(BUILD_STATIC)
 CONFIGURE_ARGS+=--with-mysqld-ldflags=-all-static


>Release-Note:
>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1180811958.1026>