Bug#342341: [SPAM?]: Bug#342341: eclipse: too many unneeded dependencies

Jan Schulz debian at katzien.de
Sat Dec 17 18:00:02 UTC 2005


Hi You,

Michael Koch wrote:
 > If there is a constructive patch which is not too hard to maintain and
 > is not too intrusive to change Eclipse' behavior drastically I will
 > apply it for sure.

AFAIK, there is a easy patch to debian/rules: Just change one debhelper 
call to add the dependencies of one .so-file as a Recommends:. I had 
this in my 2.1 packaging:

 From 
http://www.linex.org/sources/linex/debian/dists/cl/eclipse-2.1/source/eclipse_2.1.3-4.diff.gz

dpkg-shlibdeps -dDepends \
debian/libswt2.1-gtk2-jni/usr/lib/jni/libswt-gtk-2136.so 
debian/libswt2.1-gtk2-jni/usr/lib/jni/libswt-pi-gtk-2136.so \
-dSuggests \
debian/libswt2.1-gtk2-jni/usr/lib/eclipse/libswt-gnome-gtk-2136.so \
-Tdebian/libswt2.1-gtk2-jni.substvars
dpkg-shlibdeps -dDepends \
debian/libswt2.1-motif-jni/usr/lib/jni/libswt-motif-2136.so  \
-dSuggests \
debian/libswt2.1-motif-jni/usr/lib/eclipse/libswt-gnome-motif-2136.so \
debian/libswt2.1-motif-jni/usr/lib/eclipse/libswt-kde-motif-2136.so \
-Tdebian/libswt2.1-motif-jni.substvars
dpkg-shlibdeps \
-dDepends debian/libeclipse-jni/usr/lib/eclipse/libcore_2_1_0a.so \
         debian/libeclipse-jni/usr/lib/eclipse/libupdate.so \
-dSuggests debian/libeclipse-jni/usr/lib/eclipse/eclipse \
-Tdebian/libeclipse-jni.substvars

 From the light of this discussion, I would change Suggests: to 
Recommends:, which would let aptitude do the right thing in any case and 
I would add the Mozilla and whatever Deps to the sdk Package, so that 
"apt-get install eclipse" will also do the right thing.

If you don't want mozilla, you will have to remove eclipse and install 
the RCP or JDT packages and get what you want. That way, in *most* 
cases, the right thing will happen and it will bepossible to remove the 
mozilla and gnome libs.

Maybe that makes everybody happy :-)

Jan





More information about the pkg-java-maintainers mailing list