From owner-freebsd-security@FreeBSD.ORG Sun May 4 06:18:12 2014 Return-Path: Delivered-To: FreeBSD-security@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id AA4ED61E for ; Sun, 4 May 2014 06:18:12 +0000 (UTC) Received: from hergotha.csail.mit.edu (wollman-1-pt.tunnel.tserv4.nyc4.ipv6.he.net [IPv6:2001:470:1f06:ccb::2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 440441317 for ; Sun, 4 May 2014 06:18:11 +0000 (UTC) Received: from hergotha.csail.mit.edu (localhost [127.0.0.1]) by hergotha.csail.mit.edu (8.14.7/8.14.7) with ESMTP id s446I9ah042094; Sun, 4 May 2014 02:18:09 -0400 (EDT) (envelope-from wollman@hergotha.csail.mit.edu) Received: (from wollman@localhost) by hergotha.csail.mit.edu (8.14.7/8.14.4/Submit) id s446I8mO042091; Sun, 4 May 2014 02:18:08 -0400 (EDT) (envelope-from wollman) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <21349.56224.889050.674760@hergotha.csail.mit.edu> Date: Sun, 4 May 2014 02:18:08 -0400 From: Garrett Wollman To: Scot Hetzel Subject: Re: ports/189208: Add a mention of WITH_OPENSSL_PORT to the pkg-descr of security/openssl In-Reply-To: References: <201405031619.s43GJbXQ095254@freefall.freebsd.org> <18F230B0-65F4-4DAE-A771-52AAE7B00573@proper.com> X-Mailer: VM 7.17 under 21.4 (patch 22) "Instant Classic" XEmacs Lucid X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.4.3 (hergotha.csail.mit.edu [127.0.0.1]); Sun, 04 May 2014 02:18:09 -0400 (EDT) X-Spam-Status: No, score=-1.0 required=5.0 tests=ALL_TRUSTED, HEADER_FROM_DIFFERENT_DOMAINS autolearn=disabled version=3.4.0 X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on hergotha.csail.mit.edu X-Mailman-Approved-At: Sun, 04 May 2014 11:26:06 +0000 Cc: FreeBSD Security X-BeenThere: freebsd-security@freebsd.org X-Mailman-Version: 2.1.17 Precedence: list List-Id: "Security issues \[members-only posting\]" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 04 May 2014 06:18:12 -0000 < said: > bsd.openssl.mk has the falling checks: > if WITH_OPENSSL_BASE is set, then use the base system's OpenSSL. > if WITH_OPENSSL_BASE or WITH_OPENSSL_PORT are not set, check if > ${LOCALBASE}/lib/libcrypto.so is installed, if it is then use the > OpenSSL port, otherwise use the base system's OpenSSL. > if WITH_OPENSSL_PORT is set, then use the OpenSSL port > So, if you install the OpenSSL port first, then ports that require > OpenSSL should be built against the OpenSSL Port. Doesn't work for package builds: the OpenSSL package will not be installed prior to building the port unless the port depends on it. On the other hand, it's probably necessary for non-poudriere builds, because if your build environment *does* have the OpenSSL port installed, chances are high that anything you build will end up linking against it unless it's installed with a nonstandard PREFIX. -GAWollman