summaryrefslogtreecommitdiffstats
path: root/zarb-ml/mageia-dev/attachments/20130103/4113855d/attachment.html
blob: 595a167af0b1c29a959c966afa4d50c89a01d5ae (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<div><div>Hi,</div><div><br></div><div>I&#39;m having a strange problem with warsow&#39;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&#39;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:</div>

<div><br></div><div>ln -sf %{_datadir}/%{name}/basewsw/*  %{buildroot}%{gamelibdir}/basewsw</div><div><br></div><div>or:</div><div><br></div><div><div>for i in %{_datadir}/%{name}/basewsw/*;</div><div>do</div><div>  file=`basename $i`</div>

<div>  ln -sf $i  %{buildroot}%{gamelibdir}/basewsw/$file</div><div>done</div></div><div><br></div><div>With any of those two ways in my machine the symlinks are correctly created:</div><div><br></div><div>[root@cauldron-laptop cauldron]# ll /usr/lib64/games/warsow/basewsw/</div>

<div>total 28</div><div>lrwxrwxrwx 1 root root 47 Jan  3 16:42 configs -&gt; ../../../../../usr/share/warsow/basewsw/configs/</div><div>lrwxrwxrwx 1 root root 52 Jan  3 16:42 data0_10.pk3 -&gt; ../../../../../usr/share/warsow/basewsw/data0_10.pk3</div>

<div>lrwxrwxrwx 1 root root 56 Jan  3 16:42 data0_10pure.pk3 -&gt; ../../../../../usr/share/warsow/basewsw/data0_10pure.pk3</div><div>lrwxrwxrwx 1 root root 52 Jan  3 16:42 data1_10.pk3 -&gt; ../../../../../usr/share/warsow/basewsw/data1_10.pk3</div>

</div><div>[...]</div><div><br></div><div>But on the BS this is the result:</div><div><br></div><div>[root@localhost juancho]# ls -l /usr/lib64/games/warsow/basewsw/</div><div>total 0</div><div>lrwxrwxrwx 1 root root 41 Jan  3 11:13 * -&gt; ../../../../../usr/share/warsow/basewsw/*</div>

<div><br></div><div>A broken link to &#39;*&#39;. What can be causing this ?</div><br clear="all"><div>Thanks.</div><div><br></div>-- <br>Juancho