Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 79531 - documentation for --usepkgonly ambiguous
Summary: documentation for --usepkgonly ambiguous
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: SpanKY
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-01-25 17:17 UTC by Scott Smith
Modified: 2005-08-19 20:56 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 Scott Smith 2005-01-25 17:17:08 UTC
emerge '-k' recognizes the need to downgrade the version of rxvt from 2.7.10-r1 to 2.7.10, but '-K' thinks otherwise...


***********$ emerge -kpv --oneshot x11-terms/rxvt

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[binary     UD] x11-terms/rxvt-2.7.10 [2.7.10-r1] -cjk +motif -xgetdefault 

Total size of downloads: 0 kB


**********$ emerge -Kpv --oneshot x11-terms/rxvt

These are the packages that I would merge, in order:

Calculating dependencies ...done!
[binary   R   ] x11-terms/rxvt-2.7.10-r1  -cjk -debug +motif -xgetdefault 

Total size of downloads: 0 kB


****************$ emerge --version
Portage 2.0.51-r15 (default-linux/x86/2004.3, gcc-3.3.5, glibc-2.3.4.20040808-r1, 2.6.6 i686)


************$ grep KEYWORDS /usr/portage/x11-terms/rxvt/*.ebuild
/usr/portage/x11-terms/rxvt/rxvt-2.7.10-r1.ebuild:KEYWORDS="~x86 ~ppc ~alpha ~sparc ~mips ~amd64 ~ppc64"
/usr/portage/x11-terms/rxvt/rxvt-2.7.10.ebuild:KEYWORDS="x86 ppc alpha sparc ~mips amd64 ~ppc64"
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-01-25 17:20:00 UTC
This is by design. --usepkgonly does not use $PORTDIR for dep calculation at all and thus ignores all masking.
Comment 2 Scott Smith 2005-01-25 17:26:50 UTC
Then please fix the documentation in 'man emerge'.

       --usepkgonly (-K)
              Behaves just as --usepkg  except  that  this  will  only  emerge
              binary  packages.   All the binary packages must be available at
              the time of dependency calculation or emerge will simply  abort.

(emphasis on "just as --usepkg").

Is there a way to get the indicated behaviour of -K?  i.e. install the versions that -k would try to install, but fail if binary packages don't exist?  (I assume not).
Comment 3 Jason Stubbs (RETIRED) gentoo-dev 2005-01-26 03:17:51 UTC
emerge -kp foobar | grep ebuild > /dev/null || emerge -k foobar

Of course, that wouldn't work if "ebuild" is within the name of one of the packages to be installed.
Comment 4 SpanKY gentoo-dev 2005-08-19 20:56:58 UTC
fixed in cvs