Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 30488 - Clanlib ebuild requires clanlib-config to be installed
Summary: Clanlib ebuild requires clanlib-config to be installed
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Games (show other bugs)
Hardware: x86 Linux
: High normal
Assignee: Gentoo Games
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-10-06 09:31 UTC by Richard Lärkäng
Modified: 2003-10-07 12:52 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
Patch to fix the problem (clanlib.patch,389 bytes, patch)
2003-10-06 09:32 UTC, Richard Lärkäng
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Richard Lärkäng 2003-10-06 09:31:07 UTC
The clanlib libs are installed in a non-standard location (/usr/lib/clanlib), but the ebuild doesn't set an ld-path, so programs built with a clanlib library can't be run by default.

I will submit a patch to fix this.
Comment 1 Richard Lärkäng 2003-10-06 09:32:06 UTC
Created attachment 18856 [details, diff]
Patch to fix the problem
Comment 2 SpanKY gentoo-dev 2003-10-06 09:56:19 UTC
links are created for the libraries ... what version of clanlib are you using
?
Comment 3 Richard Lärkäng 2003-10-06 13:23:16 UTC
I'm using 0.7.3.

Looking at the ebuilds and in /usr/lib, I can't understand where the files
are supposed to be, are you really sure that links are created somewhere?
Comment 4 SpanKY gentoo-dev 2003-10-06 13:43:46 UTC
err it used to ... seems karl's version bump broke this ...
Comment 5 SpanKY gentoo-dev 2003-10-06 17:05:08 UTC
ok i ver bumped to 0.7.4 and re-instated the 0.7.2 way of SLOT-ing things

you should be all set now (after you update to 0.7.4 and clean out 0.7.3
that is)
Comment 6 Richard Lärkäng 2003-10-07 10:55:48 UTC
Hmm, looks like I failed to explain what the bug was about, or I'm just incredibly
stupid, because I can't see how this would be fixed with the new ebuild.

I am developing a small game, and to link it I have to provide -L/usr/lib/clanlib-0.7.4,
and there's no problem there, but when I run it, I get an error complaining
that libClanCore can't be found, which is expected, since it is installed
in an non-standard location, and there isn't an LDPATH set in /etc/env.d
which contains /usr/lib/clanlib-0.7.4. So you can't run programs linked to
clanlib without modifying the system.

So I guess the solution would be to either use the patch I attached, or install
the clanlib libs in /usr/lib.

Hope I managed to explain what I want, as I'm not really sure about the terminology
used here.
Comment 7 SpanKY gentoo-dev 2003-10-07 11:58:04 UTC
i know exactly what you're talking about and i said you shouldnt have to

the package creates symlinks in /usr/lib to the libraries in clanlib-0.7.4
... the reason for this is to SLOT clanlib 0.6.x and 0.7.x ...

root@vapier 0 root # readlink /usr/lib/libclanCore.a
/usr/lib/clanlib-0.7.4/libclanCore.a
root@vapier 0 root # readlink /usr/lib/libclanCore.so
/usr/lib/clanlib-0.7.4/libclanCore.so
Comment 8 Richard Lärkäng 2003-10-07 12:20:12 UTC
Strange, I don't have those files...

local root # ls /usr/lib/libclan*
ls: /usr/lib/libclan*: No such file or directory
Comment 9 Richard Lärkäng 2003-10-07 12:44:49 UTC
Oh, finally understanding what the problem is :-)
When I tried to unmerge both 0.7.3 and 0.7.4 and the emerge 0.7.4 again I
saw this at the end:

>>> /usr/share/doc/clanlib-0.7.4/README.distros.gz
>>> /usr/share/doc/clanlib-0.7.4/README.kdevelop.gz
>>> /usr/share/doc/clanlib-0.7.4/README.upgrade.gz
*****************
/usr/sbin/ebuild.sh: line 63: clanlib-config: command not found
*****************
>>> Regenerating /etc/ld.so.cache...
 * Caching service dependencies...                                      
   [ ok ]
>>> dev-games/clanlib-0.7.4 merged.
>>> Recording dev-games/clanlib in "world" favorites file...
>>> clean: No packages selected for removal.
>>> Regenerating /etc/ld.so.cache...

Appearantly the ebuild requires an old and working clanlib, which installed
clanlib-config to be installed previously...

(I apologize if I should have opened a new bug instead)
Comment 10 SpanKY gentoo-dev 2003-10-07 12:52:37 UTC
ah, i missed that ...
karl's upgrade to 0.7.3 removed the dobin cmd and i forgot to add it back
in ...

fixed in cvs ...
just do this so you dont have to re-emerge the pkg:
cp /usr/portage/dev-games/clanlib/files/clanlib-config /usr/bin/
clanlib-config 0.7.4