Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 55360

Summary: java-gnome-2.6.0.1 creates two wrong symlinks
Product: Gentoo Linux Reporter: Andrew Cowie <andrew>
Component: New packagesAssignee: Java team <java>
Status: RESOLVED FIXED    
Severity: major    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrew Cowie 2004-06-27 14:22:33 UTC
The java-gnome-2.6.0.1 ebuild has a small glitch: there are two dosym
commands at the end of src_install() which use ${PV}. That would be
fine, except that the upstream java-gnome-2.6.0.1 doesn't internally
call itself that, instead, it just calls itself 2.6.0

So all the libraries and symlinks that its `make install` create are of
the form 

        gtkhtml2.6.jar -> gtkhtml2.6-2.6.0.jar

which is fine. The two symlinks that the ebuild tries to make, for
example in /usr/lib,

        libgnomejava${SLOT}.so -> libgnomejava${SLOT}.so.${PV}

resolves to

        libgnomejava2.6.so -> libgnomejava2.6.so.2.6.0.1

which doesn't exist.

The obvious fix (manually creating the right symlink) works and now
java-gnome run.  So, I suggest this minor change to this ebuild only:


72c72
<       dosym /usr/share/java-gnome/lib/gnome${SLOT}-${PV}.jar /usr/share/java-gnome/lib/gnome${SLOT}.jar
---
>       dosym /usr/share/java-gnome/lib/gnome${SLOT}-2.6.0.jar /usr/share/java-gnome/lib/gnome${SLOT}.jar
74c74
<       dosym /usr/lib/libgnomejava${SLOT}.so.${PV} /usr/lib/libgnomejava${SLOT}.so
---
>       dosym /usr/lib/libgnomejava${SLOT}.so.2.6.0 /usr/lib/libgnomejava${SLOT}.so


AfC
Kristiansand
Comment 1 Thomas Matthijs (RETIRED) gentoo-dev 2004-07-20 07:31:19 UTC
thanks, fixed