[Mageia-dev] Help with package
Juan Luis Baptiste
juancho at mageia.org
Thu Jan 3 23:00:08 CET 2013
Hi,
I'm having a strange problem with warsow's package. To fix bug #8103 I need
to symlink the game data contents from warsow-data into the same directory
were the game libraries are located. The problem is that when I build the
package in my local cauldron installation, the symlinks are correctly
created, but when it's built by the BS they end up broken. I have tried two
ways to create the symlinks, both work fine on my machine but not on the BS:
ln -sf %{_datadir}/%{name}/basewsw/* %{buildroot}%{gamelibdir}/basewsw
or:
for i in %{_datadir}/%{name}/basewsw/*;
do
file=`basename $i`
ln -sf $i %{buildroot}%{gamelibdir}/basewsw/$file
done
With any of those two ways in my machine the symlinks are correctly created:
[root at cauldron-laptop cauldron]# ll /usr/lib64/games/warsow/basewsw/
total 28
lrwxrwxrwx 1 root root 47 Jan 3 16:42 configs ->
../../../../../usr/share/warsow/basewsw/configs/
lrwxrwxrwx 1 root root 52 Jan 3 16:42 data0_10.pk3 ->
../../../../../usr/share/warsow/basewsw/data0_10.pk3
lrwxrwxrwx 1 root root 56 Jan 3 16:42 data0_10pure.pk3 ->
../../../../../usr/share/warsow/basewsw/data0_10pure.pk3
lrwxrwxrwx 1 root root 52 Jan 3 16:42 data1_10.pk3 ->
../../../../../usr/share/warsow/basewsw/data1_10.pk3
[...]
But on the BS this is the result:
[root at localhost juancho]# ls -l /usr/lib64/games/warsow/basewsw/
total 0
lrwxrwxrwx 1 root root 41 Jan 3 11:13 * ->
../../../../../usr/share/warsow/basewsw/*
A broken link to '*'. What can be causing this ?
Thanks.
--
Juancho
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/mageia-dev/attachments/20130103/4113855d/attachment.html>
More information about the Mageia-dev
mailing list