Bug 101647

Summary: MySQL 50 server/client uncompilable with OpenSSL
Product: Ports & Packages Reporter: Dan Lukes <dan>
Component: Individual Port(s)Assignee: Alex Dupre <ale>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Latest   
Hardware: Any   
OS: Any   

Description Dan Lukes 2006-08-08 11:10:15 UTC
	The mysql50-{client|server} is not compilable with WITH_OPENSSL

	It fail claiming it can't found the OpenSSL.

	It's bug in Mysql's configure script. For mode information see
http://bugs.mysql.com/bug.php?id=21327

	Unfortunatelly, until repaired by MySQL team, it can't be compiled with some combination of OPTIONs.

	Note, this PR is not related to ports/97933

Fix: 

Three posibilities:

1. return to an pre-bug version of MySQL 5.0.x

2. patch the configure by our own patch system using the patch presented in MySQL 21327 bug report

3. workaround in port Makefile:

replace 
CONFIGURE_ARGS+=with_openssl=${OPENSSLBASE}
with
CONFIGURE_ARGS+=with_openssl
CONFIGURE_ARGS+=with_openssl_includes=${OPENSSLINC}
CONFIGURE_ARGS+=with_openssl_lib=${OPENSSLLIB}


	I would like to recommend the latest. At the first, it correct the actual problem, at the second, we have our own detection
system for OpenSSl headers and libraries (bsd.openssl.mk) so it better to use it instead of an internal configure's logic. 
Mixing our and internal logic in different ports may result one port (library) compiled and linked against base Openssl and second
against port OpenSSL. It may cause undeterministic malfunctions of software which will be hard to debug.
How-To-Repeat: 	make -DWITH_OPENSSL
Comment 1 Dan Lukes 2006-08-08 11:21:44 UTC
	Mea culpa.

	Despite of workaround in Makefile, we still need patch the configure. 
So, I will recommend apply both [2] and [3]

					Dan


-- 
Dan Lukes                                   SISAL MFF UK
AKA: dan@obluda.cz, dan@freebsd.cz,dan@kolej.mff.cuni.cz
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2006-08-08 12:39:34 UTC
Responsible Changed
From-To: freebsd-ports-bugs->ale

Over to maintainer
Comment 3 Pav Lucistnik freebsd_committer freebsd_triage 2006-08-10 09:36:56 UTC
State Changed
From-To: open->closed

Fixed, thanks!