Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 521770 - sys-apps/portage.2.2.8-r1: shoudn't update world file in case of an error
Summary: sys-apps/portage.2.2.8-r1: shoudn't update world file in case of an error
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-08-30 18:44 UTC by Toralf Förster
Modified: 2014-08-31 14:36 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Toralf Förster gentoo-dev 2014-08-30 18:44:41 UTC
n22 ~ # emerge -u xorg-server  

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

Calculating dependencies  ... ............. ......... done!

WARNING: One or more updates have been skipped due to a dependency conflict:

x11-proto/fontsproto:0

  (x11-proto/fontsproto-2.1.3::gentoo, ebuild scheduled for merge) conflicts with
    <x11-proto/fontsproto-2.1.3 required by (x11-libs/libXfont-1.4.8::gentoo, installed)


!!! The following update(s) have been skipped due to unsatisfied dependencies
!!! triggered by backtracking:

x11-base/xorg-server:0

>>> Recording x11-base/xorg-server in "world" favorites file...


This shouldn't happen at a stable x86, or ?
Comment 1 Alex Xu (Hello71) 2014-08-30 20:34:41 UTC
there are no ERRORs in your paste.
Comment 2 Toralf Förster gentoo-dev 2014-08-30 20:48:12 UTC
emerge rejected to update xorg-server- but added that atom to the world file.
That's wrong, or ?
Comment 3 Alex Xu (Hello71) 2014-08-30 22:13:45 UTC
emerge -uDN @world is required.
Comment 4 Toralf Förster gentoo-dev 2014-08-31 09:13:17 UTC
(In reply to Alex Xu (Hello71) from comment #3)
> emerge -uDN @world is required.

That issue happen when I added ~x11-base/xorg-server-1.16.0 to package.accept_keywords, but that's not the main point.

The main point is, that portage skipped the upgrade of a package due to missing dependencies but despite that it added that package to the world file - that's wrong IMO and independent from @world.
Comment 5 Alex Xu (Hello71) 2014-08-31 10:43:54 UTC
assigning, but I'm pretty sure it's invalid.
Comment 6 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2014-08-31 11:00:22 UTC
I don't know. There's nothing wrong with adding it to @world if a package satisfying the atom is installed (some version of xorg-server in your case). However, I'm not really convinced that emerge should write world changes on failure.
Comment 7 Zac Medico gentoo-dev 2014-08-31 14:36:56 UTC
(In reply to Michał Górny from comment #6)
> I don't know. There's nothing wrong with adding it to @world if a package
> satisfying the atom is installed (some version of xorg-server in your case).

Right.

> However, I'm not really convinced that emerge should write world changes on
> failure.

Given the existing logic, it's not really considered a failure because the highest possible version of xorg-server is already installed (given that we don't want to break that libXfont/fontsproto dependency). If the user wants a newer xorg-server, then they need to use --deep (perhaps emerge should suggest that). Also, if you don't want things added to the world file, you should use --oneshot (or set --select=n in EMERGE_DEFAULT_OPTS).