Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 94867 - media-libs/libjsw fails during compile (jscalibrator links against /usr/lib/libjsw.so)
Summary: media-libs/libjsw fails during compile (jscalibrator links against /usr/lib/l...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Other
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-06-02 14:51 UTC by ferret
Modified: 2005-06-02 17:48 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 ferret 2005-06-02 14:51:07 UTC
The build process for media-libs/libjsw appears to be slightly broken.

According to the INSTALL file distributed with the package, you should issue
make and make install on libjsw BEFORE making jscalibrator.  While it will fall
back to finding libjsw in its build directory if it isn't already installed,
this is still bad.  If you're updating libjsw, or re-emerging because your
/usr/lib/libjsw.so is broken, then it will not work!

What happens is...
a) make libjsw/ subdir
b) go to jscalibrator/ subdir
c) make there
d) it tries to link against the existing (but broken, or outdated)
/usr/lib/libjsw.so
e) DEATH!

In my case libjsw.so had a broken shared library, so I had to
rm /usr/lib/libjsw.so in order for media-libs/libjsw build process to complete
successfully.

Suggested solutions:
a) patch the source to not look in /usr/lib/ first, but in ../libjsw/.
b) split it into two ebuilds.

I prefer a) personally.
Comment 1 SpanKY gentoo-dev 2005-06-02 16:39:11 UTC
read the ebuild, we already force this
Comment 2 SpanKY gentoo-dev 2005-06-02 17:47:58 UTC
mr bones pointed out the issue ...

jscalibrator links with $(LIBS) $(LIB_DIRS) ... LIBS is set to `gtk-config
--libs` and we force LIB_DIRS to -L../libjsw ... the prob is that gtk-config
inserts its own -L/usr/lib search patch and the precedence of -L is that they
are searched as specified ...

so -L/usr/lib -L../libjsw breaks since the linker looks first in /usr/lib before
../libjsw
Comment 3 SpanKY gentoo-dev 2005-06-02 17:48:32 UTC
added patch to cvs to re-order LIB_DIRS and LIBS