From owner-freebsd-questions@FreeBSD.ORG Wed Jun 17 08:01:22 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 1CDB4106566C for ; Wed, 17 Jun 2009 08:01:22 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.31]) by mx1.freebsd.org (Postfix) with ESMTP id C913C8FC14 for ; Wed, 17 Jun 2009 08:01:21 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: by yw-out-2324.google.com with SMTP id 9so71033ywe.13 for ; Wed, 17 Jun 2009 01:01:21 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=FRagjJTcIAfKtLsYTYAWzMFdmZ0QNoFqeLeg1cnFIXg=; b=qGekHkDPY5TiME01UutSxQL9lBdl6beWSAos81hOg/dPN7oKHjE9Sq95ulp6nAmD6K Qyd2bxO7nOXug2volm/CaGd8iHvkzVVhwiVY7CflJgpSlqs8iOL2yk5SnYaO4M5NNUJc z7GaLK3GtvwfczYIeEqumn4c3N6Y4Ei0KThkQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlemail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=jRn8XWrBJxb2EEhRoekmqynptx+9L0JAUF9MsxgEoPLiS2o8oTI05yLTAdXCbgZjco BAF5cyeXa/U5h1qmoMg0kDyWcZ24CccvVsJnZKotgv9KPPsGswXIjmez4BXoooBEhlsE FOhd3tygO8+EUINx4erMCF1m6s3zo5gxn/yhU= MIME-Version: 1.0 Received: by 10.231.18.5 with SMTP id u5mr3226850iba.5.1245225681017; Wed, 17 Jun 2009 01:01:21 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Jun 2009 01:01:20 -0700 Message-ID: From: "b. f." To: freebsd-questions@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: drew@mykitchentable.net Subject: Re: OpenSSL Base vs. OpenSSL Port? 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: Wed, 17 Jun 2009 08:01:22 -0000 On 6/17/09, b. f. wrote: > Put WITH_OPENSSL_PORT=yes in your build environment -- /etc/make.conf is a > good > way -- and then rebuild all ports that depend on openssl. There are > many different > ways to do this -- you could use: > > pkgdb -L && portupgrade -fur openssl-* > > (The first command may not be necessary, but I find that the > dependencies of some > ports on openssl are sometimes missing from the pkgdb, and need to be > added.) > > or > > portmaster -t -r openssl-* > I should mention that if you are switching from using the base openssl to using the openssl from the port, and you intend to use portupgrade, then you will definitely need to to run pkgdb -L && pkgdb -F before running portupgrade, because otherwise no ports will be listed as being dependent upon the openssl port. I'm not sure if portmaster will do this properly, as it uses the existing /var/db/pkg in many cases, which will not contain the correct dependency information. You may need to get a list of ports that USE_OPENSSL, and then update those ports and the ports that depend upon them. For example, you could first install the openssl port, and then use: pkg_info -aoq | xargs -I % make -C /usr/ports/% -V USE_OPENSSL -V PKGNAME | sed -n '/[yY][eE][sS]/{n;p;}' | xargs portmaster -t -r or something like that. b.