Gentoo Logo
Gentoo Spaceship




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
Navigation:
Lists: gentoo-portage-dev: < Prev By Thread Next > < Prev By Date Next >
Headers:
To: gentoo-portage-dev@g.o
From: Zac Medico <zmedico@g.o>
Subject: Re: "official way" for setting per package CFLAGS and FEATURES?
Date: Sun, 19 Jul 2009 13:20:38 -0700
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


Replies:
Re: "official way" for setting per package CFLAGS and FEATURES?
-- Zac Medico
Re: "official way" for setting per package CFLAGS and FEATURES?
-- Duncan
References:
"official way" for setting per package CFLAGS and FEATURES?
-- Pacho Ramos
Navigation:
Lists: gentoo-portage-dev: < Prev By Thread Next > < Prev By Date Next >
Previous by thread:
"official way" for setting per package CFLAGS and FEATURES?
Next by thread:
Re: "official way" for setting per package CFLAGS and FEATURES?
Previous by date:
"official way" for setting per package CFLAGS and FEATURES?
Next by date:
Re: "official way" for setting per package CFLAGS and FEATURES?


Updated Jun 13, 2012

Summary: Archive of the gentoo-portage-dev mailing list.

Donate to support our development efforts.

Copyright 2001-2013 Gentoo Foundation, Inc. Questions, Comments? Contact us.