Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 278568 - emerge -u does not perform proper visibility check on installed packages (was: emerge -pv package wants to downgrade package, but emerge -pvuDN world wants nothing.)
Summary: emerge -u does not perform proper visibility check on installed packages (was...
Status: RESOLVED DUPLICATE of bug 13632
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
: 223653 (view as bug list)
Depends on:
Blocks:
 
Reported: 2009-07-21 11:22 UTC by Fab
Modified: 2009-07-28 06:15 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
emerge --info (info,3.46 KB, text/plain)
2009-07-21 11:23 UTC, Fab
Details
package.keywords (package.keywords,90 bytes, text/plain)
2009-07-21 11:23 UTC, Fab
Details
emerge -pvDuN --debug world > /tmp/debug.log 2>&1 (debug.log.gz,99.26 KB, application/octet-stream)
2009-07-21 11:27 UTC, Fab
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Fab 2009-07-21 11:22:31 UTC
Hi,

My system is mostly stable, no overlays. I noticed something which seems to be strange : the two packages are installed  and required by xorg-7.4, emerge -pvuDN world should ask me to downgrade them, since they are not in package.keywords.

I will attach emerge --info, package.keywords and debug output from -uDN world.

Seems also related to bug #223653. Thanks.




$ emerge libFS font-xfree86-type1 -pv

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

Calculating dependencies... done!
[ebuild     UD] x11-libs/libFS-1.0.0 [1.0.1] USE="-debug -ipv6" 232 kB
[ebuild     UD] media-fonts/font-xfree86-type1-1.0.0 [1.0.1] USE="X" 65 kB

Total: 2 packages (2 downgrades), Size of downloads: 296 kB

$ emerge -pvuDN world

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

Calculating dependencies... done!

Total: 0 packages, Size of downloads: 0 kB

Reproducible: Always
Comment 1 Fab 2009-07-21 11:23:25 UTC
Created attachment 198689 [details]
emerge --info
Comment 2 Fab 2009-07-21 11:23:59 UTC
Created attachment 198691 [details]
package.keywords
Comment 3 Fab 2009-07-21 11:27:06 UTC
Created attachment 198693 [details]
emerge -pvDuN --debug world > /tmp/debug.log 2>&1
Comment 4 Samuli Suominen (RETIRED) gentoo-dev 2009-07-21 11:41:05 UTC
Because those pkgs are not in your world file.

Works fine here on ~arch.

[ebuild  N    ] media-fonts/font-alias-1.0.1  USE="-debug" 42 kB
[ebuild  N    ] x11-libs/libFS-1.0.1  USE="ipv6 -debug" 235 kB
[ebuild  N    ] media-fonts/font-xfree86-type1-1.0.1  USE="X" 70 kB

Not a bug, please see Gentoo documentation about unmasking packages.
Comment 5 Fab 2009-07-21 12:07:42 UTC
I'm sorry, I don't understand.

If I run :

# echo 'gnome-base/gnome-light ~x86' >> /etc/portage/package.keywords

and :

# emerge -pvuDN world

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

Calculating dependencies... done!

!!! All ebuilds that could satisfy ">=gnome-base/gvfs-1.2.3" have been masked.
!!! One of the following masked packages is required to complete your request:
- gnome-base/gvfs-1.2.3 (masked by: ~x86 keyword)

For more information, see the MASKED PACKAGES section in the emerge
man page or refer to the Gentoo Handbook.
(dependency required by "gnome-base/gnome-light-2.26.2" [ebuild])
(dependency required by "world" [argument])



gnome-base/gvfs is not in my world file, emerge tells me there's something wrong...
Comment 6 Samuli Suominen (RETIRED) gentoo-dev 2009-07-21 13:53:11 UTC
I'm saying you need to read the Gentoo documentation about package unmasking. This isn't a bug. "emerge -pvDuN world" won't touch packages that aren't listed in /var/lib/portage/world (packages that are explicitely emerged or deps of ones that are)

Don't reopen this bug again, if you need assistance please join irc.gentoo.org #gentoo or use Gentoo forums.
Comment 7 Fab 2009-07-21 15:42:42 UTC
Seriously, you read nothing.

> I'm saying you need to read the Gentoo documentation about package unmasking.
Thank you, I'm on gentoo since 4 years, I know how to unmask a package.
And no, this bug has nothing to do with the ridiculous documentation on *how to unmask a package* [1].

> "emerge -pvDuN world" won't touch packages that aren't listed
> in /var/lib/portage/world (packages that are explicitely emerged
> *or deps of ones that are*)

x11-libs/libFS and media-fonts/font-xfree86-type1 *ARE* deps of x11-base/xorg-x11-7.4 ! If you don't believe me, juste have a look to the ebuild.

These packages are NOT in the package.keyword file, how do you explain that the command which must update the entire system doesn't care about that ?

portage should downgrade the packages, or tell me that the required versions are masked by ~x86 keyword !

> Works fine here on ~arch.
Yes ? fine. You're on ~arch, but I'm not.

And I don't understand why some ~arch masked packages are installed on my *stable* system with no permission in the package.keyword file. For me, this is bug.


> Don't reopen this bug again, if you need assistance please
> join irc.gentoo.org #gentoo or use Gentoo forums.
I'm sorry, I don't use IRC, and no, i will not use the forums for a problem which is for me a portage bug. If you don't want bugs from users, don't open a public bugzilla.

And please, don't re-close the bug without a valid explanation. And don't answer me if it's just to tell me to read de doc, if you don't want to deal with this portage bug, give it to someone else, for example, the *portage team members* [2]

Thank you.

[1] http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=3&chap=3
[2] http://www.gentoo.org/proj/en/portage/index.xml
Comment 8 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-07-21 16:02:16 UTC
So the problem you're facing is that emerge -pv <package> wants to downgrade the package, but emerge -uDN world doesn't? In that case, I think this is pretty much identical to the bug you pointed out -- bug #223653

Please verify that this is the case.

Thanks.
Comment 9 Samuli Suominen (RETIRED) gentoo-dev 2009-07-21 16:27:18 UTC
-u means --update not --downgrade
Comment 10 Sebastian Luther (few) 2009-07-21 16:34:00 UTC
As you can see from the attached debug output both x11-libs/libFS-1.0.1 and media-fonts/font-xfree86-type1-1.0.1 are pulled into the dependency graph. This is either a bug or a (questionable) feature of --update.
Comment 11 Sebastian Luther (few) 2009-07-21 16:34:48 UTC
*** Bug 223653 has been marked as a duplicate of this bug. ***
Comment 12 Fab 2009-07-21 16:43:50 UTC
(In reply to comment #8)
> Please verify that this is the case.
> 

Yes, this seems to be the case, *but* the OP of bug #223653 is on ~amd64, I'm
on *stable* x86, and the bug seems to be dead, the OP doesn't respond to the
request, that's why I opened a new bug.


(In reply to comment #9)
> -u means --update not --downgrade
> 
Wrong. If I remove the xorg-x11 line in the package.keyword file, portage wants
to downgrade xorg.

# grep xorg /etc/portage/package.keywords
# emerge -pvuDN world

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

Calculating dependencies... done!
[ebuild     UD] x11-base/xorg-x11-7.2 [7.4] 0 kB

Total: 1 package (1 downgrade), Size of downloads: 0 kB
Comment 13 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-07-21 16:51:37 UTC
So this bug is a duplicate of bug 13632. In particular, bug 13632 comment 42. bug 13632 is a duplicate of the famous bug 1343
Comment 14 Fab 2009-07-21 21:23:38 UTC
(In reply to comment #13)
> So this bug is a duplicate of bug 13632. In particular, bug 13632 comment 42.
> bug 13632 is a duplicate of the famous bug 1343
> 

Ok, this means that I'm not totally crazy. That's a better explanation than "you're a noob, RTFM && STFU". Now if this bug is closed as duplicate, I will not reopen it. Thank you.
Comment 15 Nirbheek Chauhan (RETIRED) gentoo-dev 2009-07-22 06:09:59 UTC
(In reply to comment #14)
> (In reply to comment #13)
> > So this bug is a duplicate of bug 13632. In particular, bug 13632 comment 42.
> > bug 13632 is a duplicate of the famous bug 1343
> > 
> 
> Ok, this means that I'm not totally crazy. That's a better explanation than
> "you're a noob, RTFM && STFU". Now if this bug is closed as duplicate, I will
> not reopen it. Thank you.
> 

Alright then, doing so...

*** This bug has been marked as a duplicate of bug 13632 ***
Comment 16 Zac Medico gentoo-dev 2009-07-28 06:15:38 UTC
(In reply to comment #10)
> As you can see from the attached debug output both x11-libs/libFS-1.0.1 and
> media-fonts/font-xfree86-type1-1.0.1 are pulled into the dependency graph. This
> is either a bug or a (questionable) feature of --update.

Actually it's not possible to downgrade in this case without breaking the depgraph, since the debug output shows xorg-x11-7.4 depends on >=x11-libs/libFS-1.0.1. A command such as `emerge libFS font-xfree86-type1 -pv --complete-graph` would therefore result in a SLOT conflict (not with our new backtracking code though).