Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 354681 - weird behaviour of --skip-first
Summary: weird behaviour of --skip-first
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-13 03:06 UTC by David Carlos Manuelda
Modified: 2011-02-13 06:23 UTC (History)
0 users

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


Attachments
emerge --info (emergeinfo.txt,13.56 KB, text/plain)
2011-02-13 03:07 UTC, David Carlos Manuelda
Details

Note You need to log in before you can comment on or make changes to this bug.
Description David Carlos Manuelda 2011-02-13 03:06:51 UTC
I don't know why, but --skip-first option is doing some things strange.
For example:
emerge -uDN world

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

Calculating dependencies... done!
[ebuild   R    ] net-print/foo2zjs-20081129  USE="cups -foomaticdb usb" FOO2ZJS_DEVICES="-hp1000% -hp1005% hp1018 -hp1020% -hp1215% -hp1500% -hp1600% -hp2600n% -hpp1005% -hpp1006% -hpp1007% -hpp1008% -hpp1505% -km2200% -km2300% -km2430% -km2480% -km2490% -km2530% -kmcpwl% -lm500% -oki3200% -oki3300% -oki3400% -oki3530% -oki5100% -oki5200% -oki5500% -oki5600% -oki5800% -sa2160% -sa300% -sa315% -sa3160% -xp6110% -xp6115%" 69 kB
[ebuild     U  ] dev-vcs/git-1.7.4.1 [1.7.4] USE="bash-completion blksha1 -cgi curl -cvs -doc -emacs -gtk iconv perl (-ppcsha1) python -subversion threads -tk webdav -xinetd" 0 kB
[ebuild  N     ] gnome-base/gnome-keyring-2.32.1  USE="-debug -doc pam -test" 0 kB
[ebuild  N     ] gnome-base/libgnome-keyring-2.32.0  USE="-debug -doc -test" 0 kB
[ebuild  N     ] net-libs/libsoup-gnome-2.32.2  USE="-debug -doc (-introspection)" 0 kB
[ebuild  N     ] gnome-base/gvfs-1.6.6-r1  USE="-archive avahi bash-completion bluetooth -cdda -doc -fuse gdu -gnome -gnome-keyring -gphoto2 -hal http -iphone -samba udev" 0 kB

Saying NO, and running: emerge -uDN world --skip-first

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

Calculating dependencies... done!
[ebuild   R    ] x11-libs/qt-dbus-4.7.1  USE="(-aqua) -debug exceptions -pch" 206,806 kB
[ebuild   R    ] x11-libs/qt-gui-4.7.1-r1  USE="accessibility (-aqua) cups dbus -debug -egl exceptions glib mng -nas -nis -pch private-headers qt3support raster tiff -trace xinerama" 0 kB
[ebuild   R    ] kde-base/kdelibs-4.6.0-r1  USE="-3dnow acl alsa (-altivec) (-aqua) -bindist bzip2 -debug -doc fam handbook jpeg2k (-kdeenablefinal) (-kdeprefix) -kerberos -lzma mmx nls openexr opengl policykit semantic-desktop spell sse sse2 ssl -test udev -zeroconf" 12,611 kB

That was en emerge I cancelled some minutes ago! It should emerge world BUT foo2zjs, and not the completelly different package list!

Using portage-2.2.0_alpha23 on a full ~amd64 system.

Reproducible: Always
Comment 1 David Carlos Manuelda 2011-02-13 03:07:26 UTC
Created attachment 262297 [details]
emerge --info
Comment 2 Zac Medico gentoo-dev 2011-02-13 06:23:58 UTC
This --skipfirst option implies --resume, so we need to make sure that's clear in the documentation and make it bails out if there are any unused arguments (in your example, "world" was the unused argument).

Apparently, what you really wanted was the --exclude option.