From owner-freebsd-questions@FreeBSD.ORG Fri Mar 2 22:27:25 2012 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id F224C1065670 for ; Fri, 2 Mar 2012 22:27:25 +0000 (UTC) (envelope-from merlyn@stonehenge.com) Received: from mail.mroute.net (lax-gw02.mailroute.net [199.89.0.102]) by mx1.freebsd.org (Postfix) with ESMTP id D28B18FC0C for ; Fri, 2 Mar 2012 22:27:25 +0000 (UTC) Received: from localhost (localhost.localdomain [127.0.0.1]) by lax-gw02.mroute.net (Postfix) with ESMTP id 2F9861DF59D for ; Fri, 2 Mar 2012 22:27:25 +0000 (GMT) X-Virus-Scanned: by MailRoute Received: from red.stonehenge.com (red.stonehenge.com [208.79.95.2]) by lax-gw02.mroute.net (Postfix) with ESMTP id EF8E51DF59A for ; Fri, 2 Mar 2012 22:27:23 +0000 (GMT) Received: by red.stonehenge.com (Postfix, from userid 1001) id DF0CA1B3A; Fri, 2 Mar 2012 14:27:23 -0800 (PST) From: merlyn@stonehenge.com (Randal L. Schwartz) To: FreeBSD References: <86fwdqvf2x.fsf@red.stonehenge.com> <20120302171631.775dd715@scorpio> x-mayan-date: Long count = 12.19.19.3.6; tzolkin = 9 Cimi; haab = 14 Kayab Date: Fri, 02 Mar 2012 14:27:23 -0800 In-Reply-To: <20120302171631.775dd715@scorpio> (jerry@seibercom.net's message of "Fri, 2 Mar 2012 17:16:31 -0500") Message-ID: <867gz2vdtg.fsf@red.stonehenge.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: Re: openssl from ports X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 02 Mar 2012 22:27:26 -0000 >>>>> "Jerry" == Jerry writes: Jerry> I have used the port's version for quite some time now. I am not sure Jerry> if it is still required; however, I placed the following in the Jerry> "/etc/make.conf" file: Jerry> WITH_OPENSSL_PORT=yes Jerry> I then rebuilt all of the ports that require OpenSSL. Perhaps someone Jerry> else has an easier solution. Ahh, according to my read of /usr/ports/Mk/bsd.openssl.mk, it looks like: # if no preference was set, check for an installed base version # but give an installed port preference over it. .if !defined(WITH_OPENSSL_BASE) && \ !defined(WITH_OPENSSL_PORT) && \ !exists(${DESTDIR}/${LOCALBASE}/lib/libcrypto.so) && \ exists(${DESTDIR}/usr/include/openssl/opensslv.h) WITH_OPENSSL_BASE=yes .endif and later .if exists(${LOCALBASE}/lib/libcrypto.so) check-depends:: @${ECHO_CMD} "Dependency error: this port wants the OpenSSL library from the FreeBSD" @${ECHO_CMD} "base system. You can't build against it, while a newer" @${ECHO_CMD} "version is installed by a port." @${ECHO_CMD} "Please deinstall the port or undefine WITH_OPENSSL_BASE." @${FALSE} .endif So it looks like modern FreeBSD will Do The Right Thing if I just recompile the apache22 port. Once I knew what to look for, I found it with a bit of grepping. Thanks! -- Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095 Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc. See http://methodsandmessages.posterous.com/ for Smalltalk discussion