Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 152084 - need a way to remove binary packages with higher version than highest visible ebuild
Summary: need a way to remove binary packages with higher version than highest visible...
Status: CONFIRMED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-10-20 04:04 UTC by Michał Wiernowolski
Modified: 2023-09-13 20:35 UTC (History)
1 user (show)

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 Michał Wiernowolski 2006-10-20 04:04:23 UTC
I am synchronizing a second computer using binary packages built on a 'master' computer. To do so the master portage tree is exported, and the metadata on the client get regenerated before update (emerge --metadata).
The problem is that dependencies calculated using binary packages are inconsistent with the 'source' ones. Here is a sample (executed on the client):

emerge -Dupvk world
These are the packages that would be merged, in order:
Calculating world dependencies... done!
Total size of downloads: 0 kB

emerge -Dupv world
These are the packages that would be merged, in order:
Calculating world dependencies... done!
[ebuild  N    ] net-misc/netkit-rsh-0.17-r6  USE="pam" 0 kB
[ebuild  N    ] x11-apps/xsm-1.0.1  USE="-debug -xprint" 0 kB
[ebuild     UD] media-video/mplayer-1.0_pre8 [1.0.20060415] USE="3dnow 3dnowext X aac alsa cdparanoia dvd encode gif gtk ipv6 joystick jpeg live mad mmx mmxext png real* rtc sse sse2 theora* truetype unicode vorbis win32codecs x264 xv xvid -3dfx -aalib (-altivec) -arts -bidi -bindist -bl -cpudetection -custom-cflags -debug -dga* -directfb -doc -dts -dv -dvb -dvdread -esd* -fbcon -ggi -i8x0 -jack -libcaca -lirc -livecd -lzo -matrox -musepack -nas -nvidia* -openal -opengl* -oss -samba -sdl* -speex -svga -tga -v4l -v4l2 -xanim -xinerama -xmms* -xvmc* (-edl%) (-matroska%)" LINGUAS="en%* pl%* -bg% -cs% -da% -de% -el% -es% -fr% -hu% -ja% -ko% -mk% -nl% -no% -pt_BR% -ro% -ru% -sk% -tr% -uk% -zh_CN% -zh_TW%" 220 kB
[ebuild     UD] net-libs/libgadu-1.7.0_pre20050719 [20050719] USE="ssl -threads" 0 kB
Total size of downloads: 220 kB

Please note, this is not an isolated case (it happened several times).

Master info:
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18-rc2 i686)
=================================================================
System uname: 2.6.18-rc2 i686 AMD Athlon(tm) 64 Processor 3200+
Gentoo Base System version 1.12.5
Last Sync: Fri, 20 Oct 2006 08:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -m32 -O2 -pipe -msse3 -fomit-frame-pointer -s"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -m32 -O2 -pipe -msse3 -fomit-frame-pointer -s"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg distlocks fixpackages metadata-transfer parallel-fetch sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl en"
MAKEOPTS=""
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa apache2 artworkextra asf atm audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr cli cracklib crypt ctype cups dba dlloader dri dvd dvdr elibc_glibc emboss encode ethereal exif expat fam fastbuild ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gdbm gecko-sdk gif gimp gimpprint glut gmp gnome gtk gtk2 gtkhtml guile hddtemp idn imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java joystick jpeg kernel_linux lcms libg++ libwww linguas_en linguas_pl live logrotate mad memlimit mikmod mmap mmx mmxext mng mod motif mp3 mpeg ncurses nfs nls nptl nptlonly nsplugin nvidia ogg opengl pam pcre pdflib perl png posix ppds pppd python qt quicktime readline real reflection rtc rtsp sdk sdl session simplexml skins slang soap sockets spell spl sse sse2 ssl stream symlink tcltk tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_nvidia vorbis win32codecs wxwindows x264 x86 xml xml2 xmms xorg xosd xsl xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY

Client info:
Portage 2.1.1 (default-linux/x86/2006.1, gcc-4.1.1, glibc-2.4-r3, 2.6.18 i686)
=================================================================
System uname: 2.6.18 i686 AMD Athlon(tm) 64 Processor 3000+
Gentoo Base System version 1.12.5
Last Sync: Fri, 20 Oct 2006 08:30:01 +0000
app-admin/eselect-compiler: [Not Present]
dev-java/java-config: 1.3.7, 2.0.30
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.13-r4
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon64 -m32 -O2 -pipe -msse3 -fomit-frame-pointer -s"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/share/X11/xkb"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-march=athlon64 -m32 -O2 -pipe -msse3 -fomit-frame-pointer -s"
DISTDIR="/mnt/nfs_portage/distfiles"
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LANG="pl_PL"
LC_ALL="pl_PL"
LINGUAS="pl en"
MAKEOPTS=""
PKGDIR="/mnt/nfs_portage/packages"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude='/distfiles' --exclude='/local' --exclude='/packages'"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/mnt/nfs_portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X a52 aac acpi alsa apache2 artworkextra asf atm audiofile avi berkdb bitmap-fonts bzip2 cdparanoia cdr cli cracklib crypt ctype cups dba dlloader dri dvd dvdr elibc_glibc emboss encode ethereal exif expat fam fastbuild ffmpeg foomaticdb force-cgi-redirect fortran ftp gd gdbm gecko-sdk gif gimp gimpprint glut gmp gnome gtk gtk2 gtkhtml guile hddtemp idn imlib input_devices_evdev input_devices_keyboard input_devices_mouse ipv6 isdnlog java joystick jpeg kernel_linux lcms libg++ libwww linguas_en linguas_pl live logrotate mad memlimit mikmod mmap mmx mmxext mng mod motif mp3 mpeg ncurses nfs nls nptl nptlonly nsplugin nvidia ogg opengl pam pcre pdflib perl png posix ppds pppd python qt quicktime readline real reflection rtc rtsp sdk sdl session simplexml skins slang soap sockets spell spl sse sse2 ssl stream symlink tcltk tcpd theora tiff tokenizer truetype truetype-fonts type1-fonts udev unicode usb userland_GNU vcd video_cards_nvidia vorbis win32codecs wxwindows x264 x86 xml xml2 xmms xorg xosd xsl xv xvid zlib"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS, PORTDIR_OVERLAY
Comment 1 Zac Medico gentoo-dev 2006-11-01 14:18:13 UTC
I think this is a duplicate of bug 132355.  If you use --with-bdeps=y, then the binary package dependencies will be processed in exactly the same way as the ebuilds that they were build from.
Comment 2 Zac Medico gentoo-dev 2006-11-01 23:05:15 UTC

*** This bug has been marked as a duplicate of 132355 ***
Comment 3 Michał Wiernowolski 2008-03-29 15:12:28 UTC
The option --with-bdeps=y did not help in my case.
Finally, I've took a closer look and found what's going on.

It seems the problem is caused by binary packages inconsistent with current stable repository.
A good example (as of now) is sys-devel/patch, which has been stabilized to version 2.5.9-r1 and then downgraded to 2.5.9. Therefore I have a binary package sys-devel/patch-2.5.9-r1, which is taken into account with emerge -k, but "normal" emerge wants sys-devel/patch-2.5.9.
Another cause of inconsistency may result from changes in version numbering like mplayer-20070622 and mplayer-1.0_rc2_p25993.

Please reconsider this issue again and note this is not a 132355 duplicate.
Comment 4 Michał Wiernowolski 2010-09-25 11:51:13 UTC
I think I've found the reason for this binary packages problem.

Sometimes packages gets upgraded (say to ver.  2.0) and later downgraded (say to ver. 1.0). Then, when you pull binary package you get the upgraded version (2.0) instead of current stable version (1.0). In result the dependencies go wrong.

Moreover it seems that eclean-pkg will not remove the 'upgraded' versions (2.0), so there is no easy way to clean up things.
Comment 5 Zac Medico gentoo-dev 2010-09-25 11:57:16 UTC
Yes, I notice this problem sometimes too. Usually I solve it by checking the diff between emerge -puD world and emerge -puDK world and then manually removing the ones that -K exposed. I agree that it would be nice to have a better way to remove these packages. I suppose that we could add an emaint command for this.