blob: 3d7d4bea9e094291bf6abde56aef2e407ecb0431 (
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<TITLE> [Mageia-dev] Help with package
</TITLE>
<LINK REL="Index" HREF="index.html" >
<LINK REL="made" HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Help%20with%20package&In-Reply-To=%3C1734869052.353397.1357301465134.JavaMail.www%40wsfrf1320%3E">
<META NAME="robots" CONTENT="index,nofollow">
<META http-equiv="Content-Type" content="text/html; charset=us-ascii">
<LINK REL="Previous" HREF="021132.html">
<LINK REL="Next" HREF="021152.html">
</HEAD>
<BODY BGCOLOR="#ffffff">
<H1>[Mageia-dev] Help with package</H1>
<B>sardine</B>
<A HREF="mailto:mageia-dev%40mageia.org?Subject=Re%3A%20%5BMageia-dev%5D%20Help%20with%20package&In-Reply-To=%3C1734869052.353397.1357301465134.JavaMail.www%40wsfrf1320%3E"
TITLE="[Mageia-dev] Help with package">sardine213 at sfr.fr
</A><BR>
<I>Fri Jan 4 13:11:05 CET 2013</I>
<P><UL>
<LI>Previous message: <A HREF="021132.html">[Mageia-dev] Regression testing for generated RPM
</A></li>
<LI>Next message: <A HREF="021152.html">[Mageia-dev] Help with package
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#21133">[ date ]</a>
<a href="thread.html#21133">[ thread ]</a>
<a href="subject.html#21133">[ subject ]</a>
<a href="author.html#21133">[ author ]</a>
</LI>
</UL>
<HR>
<!--beginarticle-->
<PRE>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 " <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">juancho at mageia.org</A>>
A : "Mageia development mailing-list" <<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">mageia-dev at mageia.org</A>>
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:
[<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at cauldron-laptop</A> 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:
[<A HREF="https://www.mageia.org/mailman/listinfo/mageia-dev">root at localhost</A> 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
</PRE>
<!--endarticle-->
<HR>
<P><UL>
<!--threads-->
<LI>Previous message: <A HREF="021132.html">[Mageia-dev] Regression testing for generated RPM
</A></li>
<LI>Next message: <A HREF="021152.html">[Mageia-dev] Help with package
</A></li>
<LI> <B>Messages sorted by:</B>
<a href="date.html#21133">[ date ]</a>
<a href="thread.html#21133">[ thread ]</a>
<a href="subject.html#21133">[ subject ]</a>
<a href="author.html#21133">[ author ]</a>
</LI>
</UL>
<hr>
<a href="https://www.mageia.org/mailman/listinfo/mageia-dev">More information about the Mageia-dev
mailing list</a><br>
</body></html>
|