From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-user+bounces-167690-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id C28DD13881D
	for <garchives@archives.gentoo.org>; Sun, 27 Sep 2015 16:13:11 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id 0150C21C065;
	Sun, 27 Sep 2015 16:12:59 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id CF916E087C
	for <gentoo-user@lists.gentoo.org>; Sun, 27 Sep 2015 16:12:57 +0000 (UTC)
Received: from mail-io0-f173.google.com (mail-io0-f173.google.com [209.85.223.173])
	(using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits))
	(No client certificate requested)
	(Authenticated sender: floppym)
	by smtp.gentoo.org (Postfix) with ESMTPSA id BB7A1340F67
	for <gentoo-user@lists.gentoo.org>; Sun, 27 Sep 2015 16:12:55 +0000 (UTC)
Received: by iofb144 with SMTP id b144so153950392iof.1
        for <gentoo-user@lists.gentoo.org>; Sun, 27 Sep 2015 09:12:53 -0700 (PDT)
X-Received: by 10.107.8.212 with SMTP id h81mr14612256ioi.89.1443370373568;
 Sun, 27 Sep 2015 09:12:53 -0700 (PDT)
Precedence: bulk
List-Post: <mailto:gentoo-user@lists.gentoo.org>
List-Help: <mailto:gentoo-user+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-user+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-user+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-user.gentoo.org>
X-BeenThere: gentoo-user@lists.gentoo.org
Reply-to: gentoo-user@lists.gentoo.org
MIME-Version: 1.0
Received: by 10.107.20.85 with HTTP; Sun, 27 Sep 2015 09:12:34 -0700 (PDT)
In-Reply-To: <56080B2A.3040709@gmail.com>
References: <56080616.5090406@gmail.com> <CAJ0EP43cNPV0XAgAcm9vMQ-V+o+vjWA3Zv=-SKryruR_CJYG4g@mail.gmail.com>
 <56080B2A.3040709@gmail.com>
From: Mike Gilbert <floppym@gentoo.org>
Date: Sun, 27 Sep 2015 12:12:34 -0400
Message-ID: <CAJ0EP403_WuJSjpmvX5-A179SGQOJ4GewQiFZnXiGdfN4oCWtw@mail.gmail.com>
Subject: Re: [gentoo-user] dynamic deps, wtf are they exactly
To: gentoo-user@lists.gentoo.org
Content-Type: text/plain; charset=UTF-8
X-Archives-Salt: 1e2ae736-9a9f-486a-8df8-6a345502f855
X-Archives-Hash: 1ba0e9352f5bf1f5d26afaaffb612f36

On Sun, Sep 27, 2015 at 11:28 AM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
> On 27/09/2015 17:12, Mike Gilbert wrote:
>> On Sun, Sep 27, 2015 at 11:07 AM, Alan McKinnon <alan.mckinnon@gmail.com> wrote:
>>> So, my question: wtf are dynamic deps? How do I find the records they
>>> must leave behind in portage?
>>
>> For the latter question, you can rebuild affected packages like so:
>>
>> emerge --with-bdeps=y @changed-deps.
>>
>> You can also add --changed-deps to your emerge command line for world updates.
>>
>
>
> Thanks. Running that gives surprising and unexpected results. I'm now
> curious what changed-deps really does, and the man page is terse on this.
>
> I would have thought portage already does that automatically, but I see
> a difference. If a package's deps change, but everything is still
> satisfied, portage will do nothing. Does @changed-deps rebuild
> everything that changed anyway, regardless is portage thinks it still OK?

Basically, yes. If [R]DEPEND in /var/db/pkg is different from the
values in the ebuilds in the tree, @changed-deps will select it.

> Also, these two similar commands return different results (I have
> bdeps=y in DEFAULT_OPTS btw):
>
> emerge -uND --changed-deps=y world         (51 packages)
> emerge @changed-deps                       (11 packages)
>
> Do you know why those commands give different results?
> The smaller list is a strict subset of the longer one.

That difference is surprising; you would probably need to ask the
portage developers to get a real answer.