From owner-freebsd-ports-bugs@FreeBSD.ORG Sat Jun 2 19:40:04 2007 Return-Path: X-Original-To: freebsd-ports-bugs@hub.freebsd.org Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 0E20A16A469 for ; Sat, 2 Jun 2007 19:40:04 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [69.147.83.40]) by mx1.freebsd.org (Postfix) with ESMTP id E343F13C483 for ; Sat, 2 Jun 2007 19:40:03 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (gnats@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id l52Je3da041147 for ; Sat, 2 Jun 2007 19:40:03 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id l52Je3pJ041146; Sat, 2 Jun 2007 19:40:03 GMT (envelope-from gnats) Resent-Date: Sat, 2 Jun 2007 19:40:03 GMT Resent-Message-Id: <200706021940.l52Je3pJ041146@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, "User1001" Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 1226816A46E for ; Sat, 2 Jun 2007 19:30:34 +0000 (UTC) (envelope-from supraexpress@globaleyes.net) Received: from MX1.ll.net (mail.globaleyes.net [209.131.230.155]) by mx1.freebsd.org (Postfix) with ESMTP id D469113C45B for ; Sat, 2 Jun 2007 19:30:33 +0000 (UTC) (envelope-from supraexpress@globaleyes.net) Received: from FreeBSD2.LocalNET10 (unverified [209.131.253.11]) by MX1.ll.net (Vircom SMTPRS 4.4.571.23) with ESMTP id for ; Sat, 2 Jun 2007 14:19:13 -0500 Message-Id: <1180811958.1026@FreeBSD2.LocalNET10> Date: Sat, 2 Jun 2007 14:19:18 -0500 From: "User1001" To: "FreeBSD gnats submit" X-Send-Pr-Version: gtk-send-pr 0.4.8 Cc: Subject: ports/113264: ports/mysql51-server compilation doesn't allow for local OpenSSL port use (forces yaSSL instead) X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Jun 2007 19:40:04 -0000 >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: