1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<br><br><div class="gmail_quote">On Thu, Jan 3, 2013 at 5:23 PM, David Walser <span dir="ltr"><<a href="mailto:luigiwalser@yahoo.com" target="_blank">luigiwalser@yahoo.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="im"><br></div><div class="im">
> for i in %{_datadir}/%{name}/basewsw/*;<br>
> do<br>
> file=`basename $i`<br>
><br>
> ln -sf $i %{buildroot}%{gamelibdir}/basewsw/$file<br>
> done<br>
<br>
</div>Looks better, that should make relative links.<br>
<br>
The problem is in the first line, the %{_datadir}/%{name}/basewsw/*<br>
should have a %{buildroot} at the beginning of it. Otherwise, it's matching<br>
against files on your actual system already installed at that location,<br>
which of course won't be there on the build system. That's why the * doesn't<br>
match anything, and becomes a literal *.<br>
<br>
</blockquote></div><br><br clear="all"><div><span style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">I had tried that before, but on that case, on my local build the symlinks are created like this:</span><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)">
<br></div><div style="color:rgb(34,34,34);font-family:arial,sans-serif;font-size:13px;background-color:rgb(255,255,255)"><div>ll /usr/lib64/games/warsow/basewsw/</div><div>total 4</div><div>lrwxrwxrwx 1 root root 114 Jan 3 18:01 * -> ../../../../../home/cauldron/mageia/cauldron/warsow/BUILDROOT/warsow-1.02-5.mga3.x86_64/usr/share/warsow/basewsw/*</div>
<div><br></div></div></div>-- <br>Juancho
|