1 |
Zac Medico wrote: |
2 |
> If you run "equery depends -a scons" and read some of those ebuilds |
3 |
> you'll see something like this: |
4 |
> |
5 |
> scons DESTDIR=${D} |
6 |
> |
7 |
> See the explanation of ${D} in the ebuild(5) manpage. That helps keep |
8 |
> you inside the sandbox. |
9 |
|
10 |
Thanks for the tip. It led me to a way off getting the paths mention in |
11 |
the error message (so I can prevent them...) but the DESTDIR=${D} only |
12 |
seems to be valid for scons install and not just scons (ie the compile). |
13 |
|
14 |
The problem now is that gtk-config and glib-config always returns the |
15 |
1.x version and not the 2.x version I need. |
16 |
|
17 |
Here's a hackish way I managed to put together, |
18 |
--- |
19 |
# This is a hack to be able to dynamically determine which directories |
20 |
# scons will try to create .scons* files in. |
21 |
get_config() { |
22 |
for lib in `grep "ParseConfig('pkg-config" SConstruct | |
23 |
tr "'" ' ' | cut -d" " -f 5- | tr ')' ' '`; do |
24 |
echo `pkg-config --libs --cflags ${lib} | tr ' ' '\n' | |
25 |
grep -E -- '-L|-I' | cut -c 3-` |
26 |
done |
27 |
} |
28 |
|
29 |
addpredict_from_config() { |
30 |
for i in $(get_config); do |
31 |
echo "addpredict ${i}" |
32 |
addpredict ${i} |
33 |
done; |
34 |
} |
35 |
--- |
36 |
|
37 |
Any sugestions as to I might do this abit cleaner? |
38 |
|
39 |
-- |
40 |
Naga |
41 |
-- |
42 |
gentoo-user@g.o mailing list |