Zac Medico wrote:
If you run "equery depends -a scons" and read some of those ebuilds
you'll see something like this:
scons DESTDIR=${D}
See the explanation of ${D} in the ebuild(5) manpage. That helps keep
you inside the sandbox.
Thanks for the tip. It led me to a way off getting the paths mention in
the error message (so I can prevent them...) but the DESTDIR=${D} only
seems to be valid for scons install and not just scons (ie the compile).
The problem now is that gtk-config and glib-config always returns the
1.x version and not the 2.x version I need.
Here's a hackish way I managed to put together,
---
# This is a hack to be able to dynamically determine which directories
# scons will try to create .scons* files in.
get_config() {
for lib in `grep "ParseConfig('pkg-config" SConstruct |
tr "'" ' ' | cut -d" " -f 5- | tr ')' ' '`; do
echo `pkg-config --libs --cflags ${lib} | tr ' ' '\n' |
grep -E -- '-L|-I' | cut -c 3-`
done
}
addpredict_from_config() {
for i in $(get_config); do
echo "addpredict ${i}"
addpredict ${i}
done;
}
---
Any sugestions as to I might do this abit cleaner?
--
Naga
--
gentoo-user@gentoo.org mailing list