Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 92703 - why does kdrive depend on portage?
Summary: why does kdrive depend on portage?
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All All
: High normal (vote)
Assignee: Gentoo X packagers
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-15 06:19 UTC by Radek Podgorny
Modified: 2005-05-17 11:44 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 Radek Podgorny 2005-05-15 06:19:37 UTC
I'm trying to cross-compile minimal embedded gentoo system for my ipaq pda. The idea is not to include portage nor gcc and install everything over a nfs-mount using the ${ROOT} envar. The problem is that kdrive ebuild depends on portage. Is it really necessary?
Comment 1 Joshua Baergen (RETIRED) gentoo-dev 2005-05-15 12:53:23 UTC
I think that there were commands in the ebuild that required a specific version of Portage, looking at the ebuild.  You can safely ignore the requirement if you're installing remotely, just remove it from the ebuild.

Donnie: cyfred did the commit on this, but do you know why the Portage req is in the build?
Comment 2 Radek Podgorny 2005-05-15 17:32:51 UTC
Yeah, of course I can remove the dep from the ebuild, I just wanted it to get fixed upstream... :-)
Comment 3 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-15 17:42:06 UTC
It falls into RDEPEND because there's no RDEPEND specified. It could just be in DEPEND. If you'd like to split them up, based on what's in current xorg-x11, that would work for your situation.

The reason is perhaps USE_EXPAND, as the comment directly above DEPEND states.
Comment 4 Joshua Baergen (RETIRED) gentoo-dev 2005-05-16 19:34:38 UTC
After talking to Donnie I've discovered this isn't really a bug.  Marking as such.
Comment 5 Radek Podgorny 2005-05-16 23:09:59 UTC
Could you, please, also specify why this isn't a bug? Thanks...
Comment 6 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-16 23:17:00 UTC
Generally, comment #1 is correct. The use of USE_EXPAND (video_cards_*) required
a specific version of portage -- as such, that became a dependency of the ebuild
itself, rather than the source.
Comment 7 Radek Podgorny 2005-05-17 03:42:14 UTC
Yeah, right. I do understand the depend but it's not a clean solution (can't
provide any better :-( ). ${ROOT} variable support is an official portage
feature so we'll have to find a better solution to this. It makes Gentoo
unusable on embedded devices for (almost) nothing. Maybe it would require some
portage internals changes but it's worth it...
Comment 8 Donnie Berkholz (RETIRED) gentoo-dev 2005-05-17 03:56:59 UTC
No it doesn't, the DEPEND is only installed on the build system, not the target.
RDEPEND goes to target. I've already suggested a solution in this specific case
in comment #3.
Comment 9 Radek Podgorny 2005-05-17 05:24:02 UTC
Ahhh, right. Didn't know DEPEND only applies to build system. Let's split DEPEND
and RDEPEND then...
Comment 10 Joshua Baergen (RETIRED) gentoo-dev 2005-05-17 08:12:21 UTC
Or just remove Portage on the build system.  Only Portage actually cares about
what's in DEPEND anyways, so once you've removed it the issue disappears.

Really, that's a good reason not to change it.  Changes like that still cause
the re-download of the ebuild during sync operations and thus the change has to
be useful before we can justify making it.
Comment 11 Radek Podgorny 2005-05-17 08:49:18 UTC
Remove portage on the build system??? How do I install stuff, then?
Comment 12 Joshua Baergen (RETIRED) gentoo-dev 2005-05-17 09:01:34 UTC
Well, if you're installing everything over a nfs-mount and you installed Portage
onto the target, you can remove it.  If you haven't installed Portage onto the
target, then this isn't an issue for you at all.
Comment 13 Radek Podgorny 2005-05-17 11:10:34 UTC
This is the problem, kdrive wants me to install portage onto the target! This is
what I was complaining about...
Comment 14 Joshua Baergen (RETIRED) gentoo-dev 2005-05-17 11:22:37 UTC
Well, since you're using Portage from the build machine you can simply tell it
to ignore the dependency or uninstall Portage from the target later.  It's not a
very large package anyway.
Comment 15 Joshua Baergen (RETIRED) gentoo-dev 2005-05-17 11:44:10 UTC
If you think this is an important change attach an appropriately modified ebuild
here and we'll update it in the tree.

I agree with you that the ebuild is wrong according the strict definitions of
DEPEND and RDEPEND. But since there are simple solutions that aren't really
wrong or a stretch in your situation, and since your situation is a specific
case as Donnie stated, this is not really a crippling bug.