Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30987 - portage doesn't set RDEPEND="${DEPEND}" ?
Summary: portage doesn't set RDEPEND="${DEPEND}" ?
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High blocker (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-12 13:44 UTC by keir
Modified: 2003-12-24 12:37 UTC (History)
3 users (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 keir 2003-10-12 13:44:51 UTC
Simple.  Just change DEPEND to RDEPEND so emerge --depclean works properly.  Otherwise, it tries to uninstall all the packages.
Comment 1 Martin Holzer (RETIRED) gentoo-dev 2003-10-12 13:56:32 UTC
which portage version ?
Comment 2 Martin Holzer (RETIRED) gentoo-dev 2003-10-12 13:57:51 UTC
from portage manpage

       RDEPEND
              This should contain a list of all packages that are required
for
              this  program  to run (aka runtime depend).  If this is not
set,
              then it defaults to the value of DEPEND.
Comment 3 SpanKY gentoo-dev 2003-10-12 15:02:19 UTC
i dont see your bug ...
dep-clean removes everything that is not needed by packages in the world/system
for runtime ...
Comment 4 SpanKY gentoo-dev 2003-10-12 15:02:47 UTC
err nm, i didnt see the summary change
Comment 5 keir 2003-10-12 16:24:28 UTC
I'll try to clarify.
If you emerge xfce4-base it installs all of the basic components of XFCE4.
 However these are installed as depend not rdepend.  Therefore if you do
emerge --depclean, portage tries to remove all the packages including the
window manager.  Since it is a base package it should be RDEPEND.
Comment 6 Marius Mauch (RETIRED) gentoo-dev 2003-10-12 20:54:19 UTC
How did you notice they are not installed as RDEPEND (they are listed as
such in /var/db/pkg for me) ? I can confirm the bug but not the solution.
Comment 7 keir 2003-10-12 21:46:41 UTC
I just ran --depclean and it tried to remove them, so I took a look at the
ebuild.  I figured that was the problem so I changed it in my directory and
it solved the problem.  I also have a habit of editing the wrapper ebuilds.
Comment 8 Martin Holzer (RETIRED) gentoo-dev 2003-10-12 22:54:36 UTC
see bug #30998. same issue
Comment 9 Martin Holzer (RETIRED) gentoo-dev 2003-10-12 22:56:53 UTC
xfce4-base: Change DEPEND to RDEPEND so emerge --depclean works
Comment 10 SpanKY gentoo-dev 2003-10-12 23:00:32 UTC
*** Bug 30998 has been marked as a duplicate of this bug. ***
Comment 11 SpanKY gentoo-dev 2003-10-12 23:01:08 UTC
ok, so rdiff also shows this
Comment 12 Marius Mauch (RETIRED) gentoo-dev 2003-10-13 01:00:26 UTC
Hmm, adding RDEPEND="${DEPEND}" didn't work here (I didn't re-emerge xfce4-base
as
RDEPEND in /var/db/pkg was already correct), neither did changing DEPEND
to 
RDEPEND. I tried it with the ebuild in PORTDIR and the one in /var/db/pkg,

emerge --depclean -p always shows the xfce4-base dependencies.

Also bug 30998 seems unrelated to this bug for me. And DEPEND="${RDEPEND}"
would be the reverse of the current description, so I assume this was a typo.

As I said, I can confirm the problem, but not the cause/solution.
Comment 13 keir 2003-10-13 15:51:06 UTC
The fix no longer works on my system (the original reporter).  In /var/db/pkg
all deps are listed as RDEPEND.
Comment 14 Martin Holzer (RETIRED) gentoo-dev 2003-11-02 09:28:50 UTC
2.0.49-r16 seems to fix this
Comment 15 Nicholas Jones (RETIRED) gentoo-dev 2003-12-24 12:37:24 UTC
This (or something vaguely resembling this) was fixed a while back.