From owner-freebsd-questions@FreeBSD.ORG Wed Jun 17 08:39:39 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 D3633106564A for ; Wed, 17 Jun 2009 08:39:39 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: from yw-out-2324.google.com (yw-out-2324.google.com [74.125.46.29]) by mx1.freebsd.org (Postfix) with ESMTP id 8EB9B8FC14 for ; Wed, 17 Jun 2009 08:39:39 +0000 (UTC) (envelope-from bf1783@googlemail.com) Received: by yw-out-2324.google.com with SMTP id 9so76053ywe.13 for ; Wed, 17 Jun 2009 01:39:39 -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=+14wUASxMJMxscP/NQ/2Wp9Z517LbHKmN1CNy0LB594=; b=NkuYf65X5H2EUv/Rije9YMQWwYN4ZjAxjd9pESCz4fhAGmxBDyUsTwmdsfiMWnK7u6 qOZ6m8I9KUCTyWT5YJlZdIHlXnW1WoHkV8NY74dbfh7GxAtrco4uFJWJSzHhxFoBgSI/ BwTF3mnIeG95cnSUiU0qauubwT9bYoakqj5hk= 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=We/Mc+BLPT6VfCsWqfNjs/YcjHcFxJyKIze9wUIkswKKulUZJSCUGi89hWXESQTnb2 O6FipB4zIgJSFsD4+p+znshXjFeEa5h2aGwKxwR+vE0YE4F3Rx4l/ox/B8+iYfcbXHFB SsmenlyH0OE7tLwPnd8JR6UnpDt0HqUTnZvTk= MIME-Version: 1.0 Received: by 10.231.15.138 with SMTP id k10mr3316089iba.26.1245227978833; Wed, 17 Jun 2009 01:39:38 -0700 (PDT) In-Reply-To: References: Date: Wed, 17 Jun 2009 01:39:38 -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:39:40 -0000 On 6/17/09, b. f. wrote: > 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. > Argh. Sorry about the last (non-)message. I meant to say: Or rather, since (portmaster -r only accepts a single port as an argument -- _sigh_ ) : pkg_info -aoq | xargs -I % make -C /usr/ports/% -V USE_OPENSSL -V PKGNAME | sed -n '/[yY][eE][sS]/{n;p;}' | xargs portmaster -f which is thorough, but overkill. I'd stick with portupgrade or manual 'make deinstall clean install && make clean' for this task. b.