Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 82596 - Small typo in ebuild breaks gnome support in dev-java/swt-3.1
Summary: Small typo in ebuild breaks gnome support in dev-java/swt-3.1
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Java team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-19 10:14 UTC by Olivier Castan
Modified: 2005-05-12 16:29 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 Olivier Castan 2005-02-19 10:14:45 UTC
Porgrams using swt (azureus for example...) can't start because there are unresolved symbols in /usr/lib/libswt-gnome-gtk-3106.so
"ldd /usr/lib/libswt-gnome-gtk-3106.so" says libswt-gnome-gtk-3106.so is statically linked... but nm shows unresolved symbols.
In fact it's a small problem in the ebuild :
$ grep gnome_lib /usr/portage/dev-java/swt/swt-3.1.ebuild
            gnome_lib=`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export-dynamic:--export-dynamic:"`
                -e "s:\`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0\`:${gnome_libs}:" \

... gnome_lib is defined and gnome_libs used !

Here is the patch :

--- /usr/portage/dev-java/swt/swt-3.1.ebuild.old        2005-02-18 22:25:26.000000000 +0100
+++ /usr/portage/dev-java/swt/swt-3.1.ebuild    2005-02-18 22:25:59.000000000 +0100
@@ -53,7 +53,7 @@

 src_compile() {
        if use gnome ; then
-           gnome_lib=`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export-dynamic:--export-dynamic:"`
+           gnome_libs=`pkg-config --libs gnome-vfs-module-2.0 libgnome-2.0 libgnomeui-2.0 | sed -e "s:-pthread:-lpthread:" -e "s:-Wl,--export-dynamic:--export-dynamic:"`
        fi

        gtk_libs=`pkg-config --libs gtk+-2.0 | sed -e "s:-Wl,--export-dynamic:--export-dynamic:"`



Reproducible: Always
Steps to Reproduce:
Comment 1 Jan Brinkmann (RETIRED) gentoo-dev 2005-02-19 11:12:17 UTC
thanks for your report, fixed in cvs.
Comment 2 Aarcane 2005-05-12 16:29:40 UTC
This problem seems to be in dev-java/swt-3.0-r2 as well as of may 12, 2005.