From owner-freebsd-stable@FreeBSD.ORG Mon Oct 27 12:00:52 2014 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id 88ED629C for ; Mon, 27 Oct 2014 12:00:52 +0000 (UTC) Received: from mail14.tpgi.com.au (smtp-out14.tpgi.com.au [220.244.226.124]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "*.tpg.com.au", Issuer "RapidSSL CA" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 1345BB88 for ; Mon, 27 Oct 2014 12:00:51 +0000 (UTC) X-TPG-Junk-Status: Message not scanned X-TPG-Antivirus: Passed X-TPG-Abuse: host=[202.161.115.54]; ip=202.161.115.54; date=Mon, 27 Oct 2014 22:34:12 +1100 Received: from fish.ish.com.au (202-161-115-54.static.tpgi.com.au [202.161.115.54] (may be forged)) by mail14.tpgi.com.au (envelope-from ari@ish.com.au) (8.14.3/8.14.3) with ESMTP id s9RBYAmh019745 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Mon, 27 Oct 2014 22:34:12 +1100 Received: from ip-211.ish.com.au ([203.29.62.211]:15128 helo=ish.com.au) by fish.ish.com.au with esmtp (Exim 4.82_1-5b7a7c0-XX) (envelope-from ) id 1XiiYn-0004f4-1N; Mon, 27 Oct 2014 22:34:06 +1100 Received: from [203.29.62.136] (HELO ip-136.ish.com.au) by ish.com.au (CommuniGate Pro SMTP 6.0.9) with ESMTPS id 17790641; Mon, 27 Oct 2014 22:34:05 +1100 Message-ID: <544E2DAB.2090309@ish.com.au> Date: Mon, 27 Oct 2014 22:34:03 +1100 From: Aristedes Maniatis User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:33.0) Gecko/20100101 Thunderbird/33.0 MIME-Version: 1.0 To: John Nielsen , freebsd-stable Subject: Re: pkgng upgrade -> force upgrade of dependencies References: <5448A373.1070707@ish.com.au> <97F5BECA-C7D0-49EE-AC91-7B87A990307D@jnielsen.net> In-Reply-To: <97F5BECA-C7D0-49EE-AC91-7B87A990307D@jnielsen.net> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2014 12:00:52 -0000 On 26/10/2014 1:57am, John Nielsen wrote: >> On Oct 23, 2014, at 12:42 AM, Aristedes Maniatis wrote: >> >> I've scoured the documentation, but I cannot for the life of me figure how to do this. Let's say I want to upgrade a package "apache22" without upgrading everything on the system. Now I want to ensure I get enough of the dependencies into the upgrade that apache will actually work. So I try this: >> >> # pkg upgrade apache22-worker-mpm >> Installed packages to be UPGRADED: >> apache22-worker-mpm: 2.2.27_6 -> 2.2.29_2 >> >> Hmmm, that doesn't seem right. >> >> # pkg upgrade | grep openssl >> openssl: 1.0.1_15 -> 1.0.1_16 >> >> # pkg info -d apache22-worker-mpm >> apache22-worker-mpm-2.2.27_6: >> expat-2.1.0_1 >> openssl-1.0.1_15 >> perl5-5.16.3_11 >> pcre-8.34_2 >> apr-1.5.1.1.5.3_4 >> libiconv-1.14_3 >> >> So, a new version of openssl is needed and is linked to the new binary. But it will not be installed when I upgrade apache. >> >> >> Before I moved to pkgng/poudriere I used to use portmaster. That would more thoroughly examine the dependencies and make sure everything that was inter-related (both as parent and child dependencies) was upgraded together. But it did not force me to upgrade Java when I just wanted to get the new version of bash installed. > > I'm not certain that it handles dependencies (it ought to), but the documented way to upgrade selectively is via "pkg install pkgname ..." For anyone following along, I found a bug report for this problem in pkgng. It isn't where I was originally looking (bugzilla) since it seems they use github for development: https://github.com/freebsd/pkg/issues/964 -- --------------------------> Aristedes Maniatis ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 GPG fingerprint CBFB 84B4 738D 4E87 5E5C 5EFA EF6A 7D2E 3E49 102A