From: "Abraham Marín Pérez" <tecnic5@silvanoc.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] portage inconsistency?
Date: Mon, 06 Aug 2007 10:45:25 +0200 [thread overview]
Message-ID: <46B6DFA5.7080406@silvanoc.com> (raw)
In-Reply-To: <200708051632.36725.bo.andresen@zlin.dk>
Bo Ørsted Andresen escribió:
> On Tuesday 17 July 2007 00:46:08 maxim wexler wrote:
>
>> So, emerge portage results in one package being
>> installed, portage, 61kb.
>>
>> emerge -u portage lines up 5 or 6 packages plus
>> portage, 18Mb.
>>
>> Went ahead and just did the one package, figuring
>> later I could do an emerge -u for the rest of it.
>>
>> But this is what happens:
>>
>> heathen@localhost ~ $ emerge -pv portage
>>
>> These are the packages that would be merged, in order:
>>
>> Calculating dependencies... done!
>> [ebuild R ] sys-apps/portage-2.1.2.9 USE="-build
>> -doc -epydoc (-selinux)" LINGUAS="-pl" 0 kB
>>
>> Total: 1 package (1 reinstall), Size of downloads: 0
>> kB
>>
>> What I expected.
>>
>> heathen@localhost ~ $ emerge -puv portage
>>
>> These are the packages that would be merged, in order:
>>
>> Calculating dependencies... done!
>>
>> Total: 0 packages, Size of downloads: 0 kB
>>
>> So why doesn't it list the upgrade part now?
>>
>
> Because --update stops calculating deps when none of the specified targets
> need updating. Only --deep checks the consistency of all dependencies even
> when none of the targets need updating. You could argue it's a deficiency in
> portage (although well-known)..
>
>
It may sound a bit off-topic, but there is (at least) one very good
reason for portage behaving this way, just think of the following scenario:
We have installed an application called APP (yes, very smart name) and
this application depends on a dynamic library called LIB (yet smarter
name). At installation APP was in version 1.0 and LIB in version 2.0.
Now think there's a new version available of LIB, let's say version 2.1,
but the latest version of APP is still 1.0. If portage performed a deep
update by default LIB would be rebuilt, but no APP, what would cause
broken dependencies on APP (remember LIB is a dynamic library). However,
is you don't update LIB unless you update also APP you will prevent this
problem*.
Just my 0.02 ;-)
Abraham
* Needless to say, the problem will still arise if two applications
depend on the same dynamic library, which is a common case, and only one
of them is updated, but still it's an improvement.
--
gentoo-user@gentoo.org mailing list
next prev parent reply other threads:[~2007-08-06 8:51 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-07-16 22:46 [gentoo-user] portage inconsistency? maxim wexler
2007-07-17 1:36 ` Александър Л. Димитров
2007-07-17 12:35 ` Iván Pérez Domínguez
2007-07-17 19:27 ` maxim wexler
2007-08-05 14:32 ` Bo Ørsted Andresen
2007-08-05 15:13 ` Tim Allingham
2007-08-05 15:20 ` Mark Shields
2007-08-05 16:33 ` Bo Ørsted Andresen
2007-08-06 8:45 ` Abraham Marín Pérez [this message]
2007-08-06 9:11 ` [gentoo-user] " Remy Blank
2007-08-06 9:59 ` Abraham Marín Pérez
2007-08-06 10:40 ` Remy Blank
2007-08-06 10:53 ` Abraham Marín Pérez
2007-08-06 10:57 ` Neil Bothwick
2007-08-06 9:17 ` [gentoo-user] " Neil Bothwick
2007-08-06 10:19 ` Abraham Marín Pérez
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=46B6DFA5.7080406@silvanoc.com \
--to=tecnic5@silvanoc.com \
--cc=gentoo-user@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox