Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 135834 - emerge --usepkg doesn't use a binary package unless it has a matching ebuild in the tree
Summary: emerge --usepkg doesn't use a binary package unless it has a matching ebuild ...
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Binary packages support (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
: 135836 135837 (view as bug list)
Depends on:
Blocks: 136244 142283
  Show dependency tree
 
Reported: 2006-06-06 17:32 UTC by Nick
Modified: 2006-07-31 12:42 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 Nick 2006-06-06 17:32:30 UTC
-k Tells emerge to use binary packages *if available*.

I have tried emerge -k '=packageversion' including the needed '', but, failing to find the corresponding ebuild (I've synced and tried to install modular X), it merely states "there are no ebuilds" without looking for a binary package.

To reproduce: see #135700

Workaround: emerge -K '=packageversion'
Comment 1 Zac Medico gentoo-dev 2006-06-06 18:04:08 UTC
*** Bug 135836 has been marked as a duplicate of this bug. ***
Comment 2 Zac Medico gentoo-dev 2006-06-06 18:06:33 UTC
*** Bug 135837 has been marked as a duplicate of this bug. ***
Comment 3 Brian Harring (RETIRED) gentoo-dev 2006-06-06 18:09:05 UTC
don't do post refreshs... you're submitting dupes every time you refresh (like 135841)
Comment 4 Zac Medico gentoo-dev 2006-06-06 18:11:29 UTC
It works for me.  Please post the output of `emerge --info` and a list of files in $PKGDIR/All/.
Comment 5 Nick 2006-06-06 18:40:44 UTC
Do you have a binary package with no corresponding ebuild?

emerge -k "=xorg-x11-6.8.2-r2"
These are the packages that would be merged, in reverse order:

Calculating dependencies   
emerge: there are no ebuilds to satisfy "=xorg-x11-6.8.2-r2".
---------------
ls -l
total 37080
-rw-r--r--  1 root root 37930448 Jun  5 02:21 xorg-x11-6.8.2-r2.tbz2

Gentoo Base System version 1.12.0_pre8
Portage 2.1_rc4-r3 (default-linux/x86/2005.1, gcc-3.4.4, glibc-2.3.4.20040808-r1, 2.6.14-gentoo-r1 i586)
=================================================================
System uname: 2.6.14-gentoo-r1 i586 AMD-K6(tm) 3D+ Processor
dev-lang/python:     2.3.4-r1, 2.4.2
dev-python/pycrypto: 2.0.1-r5
dev-util/ccache:     [Not Present]
dev-util/confcache:  [Not Present]
sys-apps/sandbox:    1.2.8
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-r1
sys-devel/binutils:  2.16.1-r2
sys-devel/libtool:   1.5.20
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86 ~x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O3 -march=k6-3 -mtune=k6-3 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.4/env /usr/kde/3.4/share/config /usr/kde/3.4/shutdown /usr/share/X11/xkb /usr/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/texmf/web2c /etc/env.d"
CXXFLAGS="-O3 -march=k6-3 -mtune=k6-3 -fforce-addr -momit-leaf-frame-pointer -fomit-frame-pointer -funroll-loops -ftracer -pipe -fvisibility-inlines-hidden"
DISTDIR="/mnt/gentoo5/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS=""
FEATURES="autoconfig distlocks metadata-transfer sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.mirrorservice.org/sites/www.ibiblio.org/gentoo/ http://www.mirrorservice.org/sites/www.ibiblio.org/gentoo/"
LANG="en_GB"
LC_ALL="en_GB"
LINGUAS="uk"
MAKEOPTS="-j2"
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="/mnt/gentoo5/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.uk.gentoo.org/gentoo-portage"
USE="x86 3dnow X Xaw3d aalib alsa apache2 apm arts avi berkdb bitmap-fonts blas bzip2 cairo cli cups curl dga dri dvd eds emboss encode expat foomaticdb fortran gdbm ggi gif ginac gpm gstreamer gtk gtk2 imlib isdnlog jpeg kerberos lcms ldap lesstif libcaca libg++ libwww mad mikmod mmx motif mpeg mpi mysql ncurses nls nptl nvidia ogg oggvorbis opengl pam pcre pdflib perl plotutils png pppd python qt readline reflection sdl session slang spell spl ssl svg tcpd tetex theora tiff truetype truetype-fonts type1-fonts vorbis wmf xml2 xmms xorg xv xvmc zlib elibc_glibc input_devices_keyboard input_devices_mouse kernel_linux linguas_uk userland_GNU video_cards_nvidia video_cards_nv video_cards_vesa video_cards_fbdev"
Unset:  CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_RSYNC_EXTRA_OPTS
Comment 6 solar (RETIRED) gentoo-dev 2006-06-10 06:22:17 UTC
Bug confirmed.
Portage 2.1 (hardened/x86, gcc-3.4.5, glibc-2.3.6-r2, 2.4.32-hardened-r4 i686)
--

cd /var/cvsroot/gentoo-x86/*/libusb ; rm -f *.ebuild ; emerge -Kpv usbutils

[binary  N    ] dev-libs/libusb-0.1.10a  USE="-debug -doc" [No ebuild?]
[binary  N    ] sys-apps/usbutils-0.71-r1

...

cd /var/cvsroot/gentoo-x86/*/libusb ; rm -f *.ebuild ; emerge -kpv usbutils

emerge: there are no ebuilds to satisfy "dev-libs/libusb".
(dependency required by "sys-apps/usbutils-0.71-r1" [binary])
Comment 7 Zac Medico gentoo-dev 2006-07-09 17:38:33 UTC
In my testing I've found 2 distinct bugs here.  Currently you can merge a binary package for which no ebuild exists, but you must specify the category (due to a bug in the matching behavior) and you must also use the --usepkgonly option due to breakage from the fix for bug #55871.  I'll work on correcting both of these issues...
Comment 8 Zac Medico gentoo-dev 2006-07-09 19:03:59 UTC
Both issues are fixed in svn r3827 to r3829.
Comment 9 Zac Medico gentoo-dev 2006-07-11 12:24:02 UTC
This has been released in 2.1.1_pre2-r7.