[Mageia-dev] Help with package

sardine sardine213 at sfr.fr
Fri Jan 4 13:11:05 CET 2013


Hi,

This should work :

pushd %{buildroot}%{_datadir}/%{name}/basewsw
for i in *;
do
  file=`basename $i`
  ln -sf %{_datadir}/%{name}/basewsw/$i  %{buildroot}%{gamelibdir}/basewsw/$file
done
popd





========================================

Message du : 03/01/2013 23:00
De : "Juan Luis Baptiste " <juancho at mageia.org>
A : "Mageia development mailing-list" <mageia-dev at mageia.org>
Copie à : 
Sujet : [Mageia-dev] Help with package


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


More information about the Mageia-dev mailing list