Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 55855 - Circular dependency in xemacs and xemacs-base
Summary: Circular dependency in xemacs and xemacs-base
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: XEmacs team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-07-01 23:23 UTC by Dirk Heinrichs
Modified: 2004-08-28 22:07 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 Dirk Heinrichs 2004-07-01 23:23:31 UTC
It seems that xemacs depends on xemacs-base, which in turn depends on xemacs.

# emerge -p xemacs

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

Calculating dependencies ...done!
[ebuild  N    ] x11-libs/dnd-1.1
[ebuild  N    ] app-editors/xemacs-21.4.15
[ebuild  N    ] app-xemacs/xemacs-base-1.75
[ebuild  N    ] app-xemacs/fsf-compat-1.12
[ebuild  N    ] app-xemacs/apel-1.26
[ebuild  N    ] app-xemacs/mule-base-1.42

# emerge -p xemacs-base

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

Calculating dependencies ...done!
[ebuild  N    ] x11-libs/dnd-1.1
[ebuild  N    ] app-editors/xemacs-21.4.15
[ebuild  N    ] app-xemacs/xemacs-base-1.75
[ebuild  N    ] app-xemacs/fsf-compat-1.12
[ebuild  N    ] app-xemacs/apel-1.26
[ebuild  N    ] app-xemacs/mule-base-1.42

This breaks a nice script to clean up the world file I found in the forums (http://home.jesus.ox.ac.uk/~ecatmur/my-bin/dep). It will remove both packages from the world file and a later emerge depclean would remove all of the packages listed above. This is a Bad Thing(tm).

OTOH, xemacs-packages-sumo doesn't depend on xemacs at all. It's pretty useless w/o xemacs installed, isn't it?

Reproducible: Always
Steps to Reproduce:
1. emerge -p xemacs
2. emerge -p xemacs-base
3. ./dep -w (the script mentioned above)
4. emerge -p depclean
Actual Results:  
Both xemacs and xemacs-base are removed from world file and would be 
completely removed by emerge depclean. 

Expected Results:  
One of xemacs,xemacs-base should stay in world file, thus preventing depclean 
from removing xemacs.
Comment 1 Robert Coie (RETIRED) gentoo-dev 2004-08-28 22:07:00 UTC
The dependency is not circular.  xemacs-base depends on xemacs, because it won't
build without it.  xemacs pdepends on xemacs-base, because it won't run properly
without it.  Thanks for noting the missing dependency in the sumo package, and
also moving that to app-xemacs while we're at it.