blob: 28739e059959d0e8a7aa0e10d77ce91d8384a1c6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
<br><br><div class="gmail_quote">On Thu, Jan 3, 2013 at 6:22 PM, Juan Luis Baptiste <span dir="ltr"><<a href="mailto:juancho@mageia.org" target="_blank">juancho@mageia.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br><br><div class="gmail_quote">On Thu, Jan 3, 2013 at 6:10 PM, Charles A Edwards <span dir="ltr"><<a href="mailto:CAE@eslrahc.com" target="_blank">CAE@eslrahc.com</a>></span> wrote:.<div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div>
<br>
</div></div>Why not have it created in post by the warsow-data rpm?<br>
<br>
%post<br>
ln -sf %{_datadir}/warsow/basewsw/* %{gamelibdir}/basewsw<br>
<br>
%postun<br>
rm -rf %{gamelibdir}/basewsw<br>
<span><font color="#888888"><br>
<br></font></span></blockquote><div><br></div></div><div class="im"><div><span style="color:rgb(34,34,34);font-size:13px;font-family:arial,sans-serif">Good idea, going to try this.</span> </div></div></div><span class="HOEnZb"><font color="#888888"><br clear="all">
<div><br></div></font></span></blockquote><div><br></div><div>Nope it didn't work either, with Charle's suggestion I get this error:</div><div><br></div><div>ln: target ‘/usr/lib64/games/warsow/basewsw/’ is not a directory: No such file or directory</div>
<div><br></div><div>Which I don't understand why it says no such file or directory if that's the link I want to create. And /usr/lib64/games/warsow exists. I also tried the for loop option with no success either:</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 %{gamelibdir}/basewsw/$file</div><div>done</div></div><div><br></div></div><div>/var/tmp/rpm-tmp.HdlyUk: line 7: /usr/share/warsow-data/basewsw/*: No such file or directory</div>
<div><br></div><div>It seems as if the expression `%{_datadir}/%{name}/basewsw/*` (don't mind the left quotes, it happens the same with them or not) of the for loop wasn't being expanded and $i ends with the literal value '*'.</div>
<div><br></div><div>Any other suggestions ?</div><div><br></div>-- <br>Juancho
|