Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 353443 - [EAPI-4] unsatisfied REQUIRED_USE makes emerge printing false message about problems in world file
Summary: [EAPI-4] unsatisfied REQUIRED_USE makes emerge printing false message about p...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS, REGRESSION
Depends on:
Blocks: 349307
  Show dependency tree
 
Reported: 2011-02-01 20:05 UTC by Lars Wendler (Polynomial-C) (RETIRED)
Modified: 2011-02-05 08:30 UTC (History)
0 users

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


Attachments
emerge.output.xz (emerge.output.xz,99.39 KB, application/x-xz; charset=binary)
2011-02-01 20:07 UTC, Lars Wendler (Polynomial-C) (RETIRED)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-02-01 20:05:03 UTC
emerge prints a totally unrelated error message when trying to update a package which doesn't satisfy REQUIRED_USE settings (app-misc/mc in this case):

shanghai:~ # emerge -uDpv @world

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

Calculating dependencies... done!
[ebuild     U ] net-libs/libssh-0.4.8 [0.4.6] USE="-debug -examples -gcrypt -pcap% -server sftp -ssh1 -static-libs zlib" 272 kB                                 

Total: 1 package (1 upgrade), Size of downloads: 272 kB

!!! Problems have been detected with your world file
!!! Please run emaint --check world


!!! Ebuilds for the following packages are either all
!!! masked or don't exist:
app-misc/mc
shanghai:~ # emerge -qpv =mc-4.7.4*
[ebuild   R   ] app-misc/mc-4.7.4-r1  USE="-X edit -gpm nls -samba slang" 
shanghai:~ # emerge -pv mc

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

Calculating dependencies... done!

!!! The ebuild selected to satisfy "mc" has unmet requirements.
- app-misc/mc-4.7.5::gentoo USE="-X edit -gpm (multilib) ncurses nls -samba slang"                                                                              

  The following REQUIRED_USE flag constraints are unsatisfied:
    exactly-one-of ( ncurses slang )
shanghai:~ # USE="-ncurses" emerge -pv mc

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

Calculating dependencies... done!
[ebuild     U ] app-misc/mc-4.7.5 [4.7.4-r1] USE="-X edit -gpm -ncurses% nls -samba slang" 0 kB                                                                 

Total: 1 package (1 upgrade), Size of downloads: 0 kB
shanghai:~ # grep mc /var/lib/portage/world
app-misc/mc
shanghai:~ #
Comment 1 Lars Wendler (Polynomial-C) (RETIRED) gentoo-dev 2011-02-01 20:07:36 UTC
Created attachment 261284 [details]
emerge.output.xz
Comment 3 Zac Medico gentoo-dev 2011-02-02 21:32:32 UTC
There's a somewhat related fix here which makes || choices independent of REQUIRED_USE:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=3e343a2e66053dc6375ba7ea04c6966afef995f7
Comment 4 Zac Medico gentoo-dev 2011-02-02 23:55:43 UTC
Now it will display like a normal unsatisfied dep, since the "skipped update" message may be inappropriate:

http://git.overlays.gentoo.org/gitweb/?p=proj/portage.git;a=commit;h=ebc2fafe4a7261ba6e97c3f0ec134b7ca542d1d7
Comment 5 Zac Medico gentoo-dev 2011-02-05 08:30:22 UTC
This is fixed in 2.1.9.36 and 2.2.0_alpha20.