1 |
nyhm 08/09/11 16:57:15 |
2 |
|
3 |
Modified: games.eclass |
4 |
Log: |
5 |
fix LDPATH on multilib systems, bug #202032 |
6 |
|
7 |
Revision Changes Path |
8 |
1.127 eclass/games.eclass |
9 |
|
10 |
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.127&view=markup |
11 |
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?rev=1.127&content-type=text/plain |
12 |
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/eclass/games.eclass?r1=1.126&r2=1.127 |
13 |
|
14 |
Index: games.eclass |
15 |
=================================================================== |
16 |
RCS file: /var/cvsroot/gentoo-x86/eclass/games.eclass,v |
17 |
retrieving revision 1.126 |
18 |
retrieving revision 1.127 |
19 |
diff -u -r1.126 -r1.127 |
20 |
--- games.eclass 5 Sep 2008 17:02:43 -0000 1.126 |
21 |
+++ games.eclass 11 Sep 2008 16:57:14 -0000 1.127 |
22 |
@@ -1,6 +1,6 @@ |
23 |
# Copyright 1999-2008 Gentoo Foundation |
24 |
# Distributed under the terms of the GNU General Public License v2 |
25 |
-# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.126 2008/09/05 17:02:43 nyhm Exp $ |
26 |
+# $Header: /var/cvsroot/gentoo-x86/eclass/games.eclass,v 1.127 2008/09/11 16:57:14 nyhm Exp $ |
27 |
|
28 |
# devlist: {vapier,wolf31o2,mr_bones_}@gentoo.org -> games@g.o |
29 |
# |
30 |
@@ -32,7 +32,7 @@ |
31 |
export GAMES_GROUP=${GAMES_GROUP:-games} |
32 |
|
33 |
games_get_libdir() { |
34 |
- echo ${GAMES_LIBDIR:-${GAMES_PREFIX}/$(get_libdir)} |
35 |
+ echo ${GAMES_PREFIX}/$(get_libdir) |
36 |
} |
37 |
|
38 |
egamesconf() { |
39 |
@@ -95,25 +95,16 @@ |
40 |
} |
41 |
|
42 |
gamesenv() { |
43 |
- # As much as I hate doing this, we need to be a bit more flexibility with |
44 |
- # our library directories. |
45 |
- local hasit=0 GAMES_LIBDIRS="" GAMES_LIBDIR=$(games_get_libdir) |
46 |
- if has_multilib_profile ; then |
47 |
- for libdir in $(get_all_libdirs) ; do |
48 |
- if [[ ${GAMES_LIBDIR} != ${GAMES_PREFIX}/${libdir} ]] ; then |
49 |
- GAMES_LIBDIRS="${GAMES_LIBDIRS}:${GAMES_PREFIX}/${libdir}" |
50 |
- else |
51 |
- hasit=1 |
52 |
- fi |
53 |
- done |
54 |
- fi |
55 |
- [[ ${hasit} == "1" ]] \ |
56 |
- && GAMES_LIBDIRS=${GAMES_LIBDIRS:1} \ |
57 |
- || GAMES_LIBDIRS="${GAMES_LIBDIR}:${GAMES_LIBDIRS}" |
58 |
+ local d libdirs |
59 |
+ |
60 |
+ for d in $(get_all_libdirs) ; do |
61 |
+ libdirs="${libdirs}:${GAMES_PREFIX}/${d}" |
62 |
+ done |
63 |
+ |
64 |
# Wish we could use doevnd here, but we dont want the env |
65 |
# file to be tracked in the CONTENTS of every game |
66 |
cat <<-EOF > "${ROOT}"/etc/env.d/${GAMES_ENVD} |
67 |
- LDPATH="${GAMES_LIBDIRS}" |
68 |
+ LDPATH="${libdirs:1}" |
69 |
PATH="${GAMES_BINDIR}" |
70 |
EOF |
71 |
} |