Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 02 Mar 2012 14:27:23 -0800
From:      merlyn@stonehenge.com (Randal L. Schwartz)
To:        FreeBSD <freebsd-questions@freebsd.org>
Subject:   Re: openssl from ports
Message-ID:  <867gz2vdtg.fsf@red.stonehenge.com>
In-Reply-To: <20120302171631.775dd715@scorpio> (jerry@seibercom.net's message of "Fri, 2 Mar 2012 17:16:31 -0500")
References:  <86fwdqvf2x.fsf@red.stonehenge.com> <20120302171631.775dd715@scorpio>

next in thread | previous in thread | raw e-mail | index | archive | help
>>>>> "Jerry" == Jerry  <jerry@seibercom.net> 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
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>;
Smalltalk/Perl/Unix consulting, Technical writing, Comedy, etc. etc.
See http://methodsandmessages.posterous.com/ for Smalltalk discussion



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