Note: Due to technical difficulties, the Archives are currently not up to date.
GMANE provides an alternative service for most mailing lists. c.f. bug 424647
List Archive: gentoo-portage-dev
Pacho Ramos wrote:
> Hello, I would want to always merge xorg-server, libdrm, and intel
> driver (that likes to crash a lot) to be always compiled with debugging
> symbols and FEATURES="${FEATURES} splitdebug"
>
> Searching in google seems that there are some available hacks done by
> some forums users, but they seem to be a bit old and, before trying
> them, I would want to know if there is an "official" way of doing it.
>
> Thanks a lot :-)
I use pre_pkg_setup hooks defined in /etc/portage/env. For example:
cat /etc/portage/env/sys-libs/glibc
pre_pkg_setup() {
local x
for x in installsources splitdebug ; do
if ! has $x $FEATURES ; then
elog "bashrc is adding $x to FEATURES for $PN"
FEATURES="$FEATURES $x"
fi
done
if ! hasq -ggdb $CFLAGS ; then
elog "bashrc is adding \"-ggdb\" to CFLAGS for $PN"
CFLAGS="$CFLAGS -ggdb"
fi
}
--
Thanks,
Zac
|
|