Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug
Bug#: 245661
Alias:
Product:
Component:
Status: RESOLVED
Resolution: FIXED
Assigned To: Portage team <dev-portage@gentoo.org>
Hardware:
OS:
Version:
Priority:
Severity:
Reporter: Joe Peterson <lavajoe@gentoo.org>
Add CC:
CC:
URL:
Summary:
Status Whiteboard:
Keywords:

Filename Description Type Creator Created Size Actions
Create a New Attachment (proposed patch, testcase, etc.) View All

Bug 245661 depends on: Show dependency tree
Bug 245661 blocks: 210077
Votes: 0    Show votes for this bug    Vote for this bug

Additional Comments: (this is where you put emerge --info)


Not eligible to see or edit group visibility for this bug.






View Bug Activity   |   Format For Printing   |   XML   |   Clone This Bug


Description:   Opened: 2008-11-05 15:19 0000
If packages are installed on a system that are later masked (e.g. can be done
by removing them from /etc/portage/package.keywords), and an emerge is done,
the warning about these masked packages will not appear the first time the
emerge is tried.  It will, however, appear on subsequent runs.  This can be
shown by rebooting and then trying the same emerge twice when such installed
packages exist on your system and should give the warning.

Here is example output of running the same emerge twice:


scorpius joe # emerge -av netkit-telnetd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-misc/netkit-telnetd-0.17-r8  0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

Would you like to merge these packages? [Yes/No] n

Quitting.


 * GNU info directory index is up-to-date.
scorpius joe # emerge -av netkit-telnetd

These are the packages that would be merged, in order:

Calculating dependencies... done!
[ebuild   R   ] net-misc/netkit-telnetd-0.17-r8  0 kB

Total: 1 package (1 reinstall), Size of downloads: 0 kB

!!! The following installed packages are masked:
- media-gfx/povray-3.6.1-r3 (masked by: ~x86 keyword)
- media-sound/squeezecenter-7.2.0-r1 (masked by: ~x86 keyword)
For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.


Would you like to merge these packages? [Yes/No] n

Quitting.


 * GNU info directory index is up-to-date.
scorpius joe #

------- Comment #1 From Zac Medico 2008-11-05 18:28:58 0000 -------
The difference in output can be explained by the fact that the --complete-graph
behavior is automatically triggered whenever the dependency calculation time
exceeds a 20 seconds. It would be preferable to enable the --complete-graph
behavior at all times, but the performance difference is not always acceptable,
so it's only triggered in cases when the dependency calculation time exceeds a
20 seconds. The reasoning is that the user is probably not focusing on the
dependency calculation if it has already taken 20 seconds, and after that much
time has passed, the extra time required to enable --complete-graph behavior is
usually negligible.

Something that is puzzling it that you report the warning the second time
rather than the first time. This is the reverse of the expected behavior since
normally the first invocation takes longer than the second. Anyway, you should
always get the same result in all invocations if you explicitly specify the
--complete-graph option.

------- Comment #2 From Joe Peterson 2008-11-06 05:56:36 0000 -------
Hey Zac,

I'll have to check out the timing to see why it seems reversed for my case.

IMHO, though, I think it'd be better to make the behavior predictable rather
than having the heuristic of time determine what happens.  As an example, I
would never have guessed this was why two identical commands produced different
output.

Why not just have the default be not to do --complete-graph, and have the user
choose whether or not this is in effect?  (A little like --deep).  I do think
that a single letter param would be nice (like "D" for --deep), as many people
would want to use it regularly.

I do see what the intent is, but I just think that the behavior now can change
in a seemingly random sense and potentially be confusing (and it gives the
impression there's a bug, as I thought).

------- Comment #3 From Zac Medico 2008-11-06 20:09:26 0000 -------
I've removed the automatic --complete-graph code in r11814.

------- Comment #4 From Zac Medico 2008-11-11 22:28:11 0000 -------
This is fixed in 2.2_rc14.

Bug List: (This bug is not in your last search results)   Show last search results      Search page      Enter new bug