Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 389843 - emerge --skipfirst without --resume tries to emerge wrong packages with portage 2.2.0_alpha72
Summary: emerge --skipfirst without --resume tries to emerge wrong packages with porta...
Status: UNCONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: AMD64 Linux
: Normal normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-08 00:35 UTC by Matteo Modesti
Modified: 2022-09-09 05:10 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 Matteo Modesti 2011-11-08 00:35:06 UTC
I always get a build error when I try to emerge net-nds/openldap, so I tried to use --skipfirst, not remembering that it required --resume. This way I discovered that when I use that parameter, portage tries to emerge totally different from what it should!
Here you can see the results of my "emerges".
Note that command 2 tries to emerge a package NOT listed by commands 4 and 6, so it's even more wrong!



[Command 1]

# emerge @system @world -DNupv

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

Calculating dependencies... done!
[ebuild  N    ~] net-nds/openldap-2.4.25-r1  USE="berkdb crypt gnutls icu ipv6 slp ssl syslog tcpd -cxx -debug -experimental -iodbc -kerberos -minimal -odbc -overlays -perl -samba -sasl (-selinux) -smbkrb5passwd" 0 kB                                                                                                                                         
[ebuild     U ~] app-emulation/virtualbox-bin-4.1.6-r1 [4.1.6] USE="additions chm -headless -python -rdesktop-vrdp -sdk -vboxwebsrv" 71,580 kB
[ebuild     U  ] app-office/libreoffice-bin-3.4.3.2-r1 [3.4.3-r2] USE="java kde%* (-aqua) -gnome (-kdeenablefinal)" 0 kB
[ebuild     U ~] app-emulation/wine-1.3.32 [1.3.30] USE="X alsa cups dbus fontconfig gecko gnutls jpeg lcms mp3 ncurses nls openal opengl perl png ssl threads truetype v4l win32 xml -capi -custom-cflags -gphoto2 -gsm (-gstreamer) -hardened -ldap -opencl -oss -samba -scanner -test -win64 -xcomposite -xinerama" 19,218 kB

Total: 4 packages (3 upgrades, 1 new), Size of downloads: 90,797 kB


[Command 2]

# emerge @system @world -DNuq --skipfirst --keep-going
*** Resuming merge...
>>> Verifying ebuild manifests                                                                                                                                                   
>>> Starting parallel fetch
>>> Emerging (1 of 8) sci-libs/hdf5-1.8.4-r1
^C
(stopped it with Ctrl-C)


[Command 3]

# emerge @system @world -DNupv

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

Calculating dependencies... done!
[ebuild  N    ~] net-nds/openldap-2.4.25-r1  USE="berkdb crypt gnutls icu ipv6 slp ssl syslog tcpd -cxx -debug -experimental -iodbc -kerberos -minimal -odbc -overlays -perl -samba -sasl (-selinux) -smbkrb5passwd" 0 kB                                                                                                                                         
[ebuild     U ~] app-emulation/virtualbox-bin-4.1.6-r1 [4.1.6] USE="additions chm -headless -python -rdesktop-vrdp -sdk -vboxwebsrv" 71,580 kB
[ebuild     U  ] app-office/libreoffice-bin-3.4.3.2-r1 [3.4.3-r2] USE="java kde%* (-aqua) -gnome (-kdeenablefinal)" 0 kB
[ebuild     U ~] app-emulation/wine-1.3.32 [1.3.30] USE="X alsa cups dbus fontconfig gecko gnutls jpeg lcms mp3 ncurses nls openal opengl perl png ssl threads truetype v4l win32 xml -capi -custom-cflags -gphoto2 -gsm (-gstreamer) -hardened -ldap -opencl -oss -samba -scanner -test -win64 -xcomposite -xinerama" 19,218 kB

Total: 4 packages (3 upgrades, 1 new), Size of downloads: 90,797 kB


[Command 4]

# emerge @system @world -DNupv --skipfirst --keep-going
[ebuild   R   ] media-libs/vigra-1.7.1-r1  USE="fftw hdf5 jpeg png python tiff -doc -test" 
[ebuild   R   ] dev-java/libreadline-java-0.8.0-r3  USE="-doc -source" 
[ebuild   R   ] dev-java/lucene-analyzers-2.3.2  USE="-source" 
[ebuild   R   ] dev-java/javacc-4.0-r4  USE="-doc -examples -source -test" 
[ebuild   R   ] dev-java/bsh-2.0_beta4-r3  USE="readline -bsf -doc -source" 
[ebuild   R   ] dev-java/lucene-2.9.4  USE="-doc -source -test" 
[ebuild   R   ] dev-java/saxon-8.4b-r3  USE="-doc -examples -source" 


[Command 5]

# emerge @system @world -DNupv --keep-going

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

Calculating dependencies... done!
[ebuild  N    ~] net-nds/openldap-2.4.25-r1  USE="berkdb crypt gnutls icu ipv6 slp ssl syslog tcpd -cxx -debug -experimental -iodbc -kerberos -minimal -odbc -overlays -perl -samba -sasl (-selinux) -smbkrb5passwd" 0 kB                                                                                                                                         
[ebuild     U ~] app-emulation/virtualbox-bin-4.1.6-r1 [4.1.6] USE="additions chm -headless -python -rdesktop-vrdp -sdk -vboxwebsrv" 71,580 kB
[ebuild     U  ] app-office/libreoffice-bin-3.4.3.2-r1 [3.4.3-r2] USE="java kde%* (-aqua) -gnome (-kdeenablefinal)" 0 kB
[ebuild     U ~] app-emulation/wine-1.3.32 [1.3.30] USE="X alsa cups dbus fontconfig gecko gnutls jpeg lcms mp3 ncurses nls openal opengl perl png ssl threads truetype v4l win32 xml -capi -custom-cflags -gphoto2 -gsm (-gstreamer) -hardened -ldap -opencl -oss -samba -scanner -test -win64 -xcomposite -xinerama" 19,218 kB

Total: 4 packages (3 upgrades, 1 new), Size of downloads: 90,797 kB


[Command 6]

# emerge @system @world -DNupq --skipfirst --keep-going
[ebuild   R   ] media-libs/vigra-1.7.1-r1 
[ebuild   R   ] dev-java/libreadline-java-0.8.0-r3 
[ebuild   R   ] dev-java/lucene-analyzers-2.3.2 
[ebuild   R   ] dev-java/javacc-4.0-r4 
[ebuild   R   ] dev-java/bsh-2.0_beta4-r3 
[ebuild   R   ] dev-java/lucene-2.9.4 
[ebuild   R   ] dev-java/saxon-8.4b-r3

Reproducible: Always



Expected Results:  
Portage tries to emerge the right packages.

# emerge --info
Portage 2.2.0_alpha72 (default/linux/amd64/10.0, gcc-4.5.3, glibc-2.12.2-r0, 2.6.39-gentoo-r4 x86_64)
=================================================================
System uname: Linux-2.6.39-gentoo-r4-x86_64-AMD_Phenom-tm-_9850_Quad-Core_Processor-with-gentoo-2.0.3
Timestamp of tree: Mon, 07 Nov 2011 22:45:01 +0000
ccache version 2.4 [enabled]
app-shells/bash:          4.1_p9
dev-java/java-config:     2.1.11-r3
dev-lang/python:          2.7.2-r3, 3.1.4-r3
dev-util/ccache:          2.4-r9
dev-util/cmake:           2.8.4
dev-util/pkgconfig:       0.26
sys-apps/baselayout:      2.0.3
sys-apps/openrc:          0.8.3-r1
sys-apps/sandbox:         2.4
sys-devel/autoconf:       2.13, 2.68
sys-devel/automake:       1.9.6-r3, 1.10.3, 1.11.1
sys-devel/binutils:       2.21.1-r1
sys-devel/gcc:            4.5.3-r1
sys-devel/gcc-config:     1.4.1-r1
sys-devel/libtool:        2.4-r1
sys-devel/make:           3.82-r1
sys-kernel/linux-headers: 2.6.39 (virtual/os-headers)
sys-libs/glibc:           2.12.2
Repositories: gentoo gentoo-zh Mio_overlay
Installed sets: @system
ACCEPT_KEYWORDS="amd64"
ACCEPT_LICENSE="* -@EULA PUEL dlj-1.1 skype-eula AdobeFlash-10.1"
CBUILD="x86_64-pc-linux-gnu"
CFLAGS="-march=native -O2 -pipe"
CHOST="x86_64-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/config /usr/share/gnupg/qualified.txt /var/lib/hsqldb"
CONFIG_PROTECT_MASK="/etc/ca-certificates.conf /etc/env.d /etc/env.d/java/ /etc/fonts/fonts.conf /etc/gconf /etc/gentoo-release /etc/php/apache2-php5.3/ext-active/ /etc/php/cgi-php5.3/ext-active/ /etc/php/cli-php5.3/ext-active/ /etc/revdep-rebuild /etc/sandbox.d /etc/terminfo /etc/texmf/language.dat.d /etc/texmf/language.def.d /etc/texmf/updmap.d /etc/texmf/web2c"
CXXFLAGS="-march=native -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--with-bdeps y"
FEATURES="assume-digests binpkg-logs ccache distlocks ebuild-locks fixlafiles news parallel-fetch preserve-libs protect-owned sandbox sfperms strict unknown-features-warn unmerge-logs unmerge-orphans userfetch"
FFLAGS=""
GENTOO_MIRRORS="http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gd.tuwien.ac.at/opsys/linux/gentoo/"
LANG="it_IT.UTF-8"
LC_ALL="it_IT.UTF-8"
LDFLAGS="-Wl,-O1 -Wl,--as-needed"
LINGUAS="it"
MAKEOPTS="-j 3 -l 3.5"
PKGDIR="/usr/portage/packages"
PORTAGE_CONFIGROOT="/"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/var/lib/layman/gentoo-zh /home/mattemod/mio-portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext 3ds 64bit X Xaw3d a52 aac ace acl acpi additions aio akode alsa amd64 ao apache2 apng audacious audiofile autoreplace bash-completion berkdb branding bzip2 cairo cal3d caps ccache cdda cddb cdio cdparanoia cdr chardet chroot cli consolekit cracklib crypt css cups curl cxx dbus dga dirac directfb djvu double-precision dri dts dv dvb dvd dvdr ecc emovix enca encode exif expat fam fame fbcon fbdev ffmpeg fftw firefox flac flash fontconfig fortran fpx ftp gcj gd gdbm ggi gif gimp glib glitz glut gmp gnutls gpm graphviz gs gtk gtkhtml guile gzip hdri history iconv icu id3 id3tag idea imagemagick imlib inkjar ipv6 jabber java5 java6 javascript jbig jpeg jpeg2k justify kde kdrive ladspa lame lcms libcaca libffi libnotify libsamplerate loop-aes lzma lzo mad matroska md5sum mikmod mime mjpeg mmap mmx mmxext mng modplug modules mono moonlight motif mozdom mp2 mp3 mp4 mpeg mplayer msn mudflap multilib musepack musicbrainz ncurses networking nls nptl nptlonly nsplugin ntlm nuv oav objc objc++ objc-gc odk offensive ogg openal openexr opengl openmp openssl pam pcre pdf physfs plasma pm-utils png postproc ppds pppd pth qt3 qt3support qt4 quicktime radio rar readline replytolist rtc rtsp schroedinger scrobbler sdl sdl-image sdl-sound sdlaudio semantic-desktop sensord session shout slang slp smp sms sndfile sockets speex spell srp srt sse sse2 sse3 ssl static-libs stream svg sysfs syslog szip t1lib tcpd tga theora threads tidy tiff toolbar truetype tta unicode unzip usb utempter v4l v4l2 vcd vdr vlc vorbis wav wavpack webkit wifi winbind wma wmf x264 xanim xforms xine xml xnest xorg xpm xprint xsl xulrunner xv xvid xvmc yv12 zip zlib" ALSA_CARDS="ca0106" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mmap_emul mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic auth_digest authn_anon authn_dbd authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock dbd deflate dir disk_cache env expires ext_filter file_cache filter headers ident imagemap include info log_config logio mem_cache mime mime_magic negotiation proxy proxy_ajp proxy_balancer proxy_connect proxy_http rewrite setenvif speling status unique_id userdir usertrack vhost_alias" CALLIGRA_FEATURES="kexi words flow plan stage tables krita karbon braindump" CAMERAS="ptp2" COLLECTD_PLUGINS="df interface irq load memory rrdtool swap syslog" DVB_CARDS="usb-dib0700" ELIBC="glibc" GPSD_PROTOCOLS="ashtech aivdm earthmate evermore fv18 garmin garmintxt gpsclock itrax mtk3301 nmea ntrip navcom oceanserver oldstyle oncore rtcm104v2 rtcm104v3 sirf superstar2 timing tsip tripmate tnt ubx" INPUT_DEVICES="keyboard mouse evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="it" PHP_TARGETS="php5-3" RUBY_TARGETS="ruby18" USERLAND="GNU" VIDEO_CARDS="fglrx radeon radeonhd fbdev" XTABLES_ADDONS="quota2 psd pknock lscan length2 ipv4options ipset ipp2p iface geoip fuzzy condition tee tarpit sysrq steal rawnat logmark ipmark dhcpmac delude chaos account"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, PORTAGE_BUNZIP2_COMMAND, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 1 Zac Medico gentoo-dev 2011-11-08 01:14:55 UTC
(In reply to comment #0)
> I always get a build error when I try to emerge net-nds/openldap, so I tried to
> use --skipfirst, not remembering that it required --resume. This way I
> discovered that when I use that parameter, portage tries to emerge totally
> different from what it should!

As noted in the emerge --resume document `man emerge`:

The resume history is capable of storing two merge lists. After one resume list completes, it is possible to invoke --resume once again in order to resume an older list.

So, if you get unexpected results then it's probably do to emerge using an older saved list. You can use `emaint --fix cleanresume` to discard old lists.

Maybe we can consider this bug a duplicate of bug 366723. As noted in bug 366723, comment #4, I'd like to display a warning message when the backup resume list is used.
Comment 2 Nikita Zlobin 2022-09-09 05:10:50 UTC
This could be caused by pointless dependencies check, not inhibited by --resume (though I did not check that). I already discovered, that --nodeps --resume combo prevents "Invalid resume list" error, which could also prevent reordering.