public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Nikos Chantziaras <realnc@arcor.de>
To: gentoo-user@lists.gentoo.org
Subject: [gentoo-user] Re: Per-package splitdebug FEATURE
Date: Tue, 23 Aug 2011 09:49:05 +0300	[thread overview]
Message-ID: <j2vig0$pu0$1@dough.gmane.org> (raw)
In-Reply-To: <CAGGSsJZE92XAyupZ7e3NRPyFfGi9scoqOyG8xZkgL77G_1iW4w@mail.gmail.com>

On 08/23/2011 09:17 AM, Leonardo Guilherme wrote:
> Hi.
>
> I've turned on splitdebug feature (and -ggdb in CFLAGS) so debug
> information are saved and I can debug anything that crashes. I went to
> /usr/lib/debug, just out of curiosity, to see how much space was taken
> and I found that it was almost 2GB, which chromium + firefox adds up
> 1.5GB and python gets another 0.3. I would like to disable splitdebug
> for these specific packages now and in the future, so removing
> splitdebug from features, re-emerging them and then activating
> splitdebug again won't quite cut.
>
> I wonder if there's a way to active features to some specific
> packages, just like USE flags.

There is.  And it's a very powerful one even.  First, remove -ggdb (I 
use just -g though; if you don't need the extra info -ggdb gives, plain 
-g will save you some space and time) from your CFLAGS and splitdebug 
from your FEATURES in make.conf.  Then, create a file:

   /etc/portage/env/splitdebug.conf

with the following contents:

   CFLAGS="${CFLAGS} -ggdb"
   CXXFLAGS="${CXXFLAGS} -ggdb"
   FEATURES="${FEATURES} splitdebug"

Now, in /etc/portage/package.env, you can "execute" splitdebug.conf for 
the packages you want.  My package.env for example looks like:

   sys-libs/glibc splitdebug.conf
   media-libs/mesa splitdebug.conf
   kde-base/kdelibs splitdebug.conf
   kde-base/kwin splitdebug.conf

The result is that, for example, when glibc is emerged, splitdebug.conf 
is executed which adds -ggdb to CFLAGS and CXXFLAGS (do not forget 
CXXFLAGS!) and splitdebug to FEATURES.

As you can guess, you can create arbitrary .conf files like this; it 
isn't in any way specific to splitdebug.




  reply	other threads:[~2011-08-23  6:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-08-23  6:17 [gentoo-user] Per-package splitdebug FEATURE Leonardo Guilherme
2011-08-23  6:49 ` Nikos Chantziaras [this message]
2011-08-23  6:56 ` Yohan Pereira
2011-08-23  7:02   ` Leonardo Guilherme
2011-08-23  9:30     ` netfab
2011-09-01  0:50       ` Leonardo Guilherme
2015-04-14 23:29         ` Leonardo Guilherme

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='j2vig0$pu0$1@dough.gmane.org' \
    --to=realnc@arcor.de \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox