* [gentoo-user] Per-package splitdebug FEATURE
@ 2011-08-23 6:17 Leonardo Guilherme
2011-08-23 6:49 ` [gentoo-user] " Nikos Chantziaras
2011-08-23 6:56 ` [gentoo-user] " Yohan Pereira
0 siblings, 2 replies; 7+ messages in thread
From: Leonardo Guilherme @ 2011-08-23 6:17 UTC (permalink / raw
To: gentoo-user
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.
Thank you.
--
Leonardo
^ permalink raw reply [flat|nested] 7+ messages in thread
* [gentoo-user] Re: Per-package splitdebug FEATURE
2011-08-23 6:17 [gentoo-user] Per-package splitdebug FEATURE Leonardo Guilherme
@ 2011-08-23 6:49 ` Nikos Chantziaras
2011-08-23 6:56 ` [gentoo-user] " Yohan Pereira
1 sibling, 0 replies; 7+ messages in thread
From: Nikos Chantziaras @ 2011-08-23 6:49 UTC (permalink / raw
To: gentoo-user
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.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Per-package splitdebug FEATURE
2011-08-23 6:17 [gentoo-user] Per-package splitdebug FEATURE Leonardo Guilherme
2011-08-23 6:49 ` [gentoo-user] " Nikos Chantziaras
@ 2011-08-23 6:56 ` Yohan Pereira
2011-08-23 7:02 ` Leonardo Guilherme
1 sibling, 1 reply; 7+ messages in thread
From: Yohan Pereira @ 2011-08-23 6:56 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 516 bytes --]
On Tuesday 23 Aug 2011 03:17:41 Leonardo Guilherme wrote:
> I wonder if there's a way to active features to some specific
> packages, just like USE flags.
Yes i think you can use /etc/portage/env for something like this
for eg
if you want to enable it for amarok
create a file /etc/portage/env/media-sound/amarok
with the contents
CFLAGS="-march=core2 -O1 -g"
CXXFLAGS="${CFLAGS}"
FEATURES="splitdebug"
MAKEOPTS="-j3"
--
- Yohan Pereira
"A man can do as he will, but not will as he will" - Schopenhauer
[-- Attachment #2: Type: text/html, Size: 4249 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Per-package splitdebug FEATURE
2011-08-23 6:56 ` [gentoo-user] " Yohan Pereira
@ 2011-08-23 7:02 ` Leonardo Guilherme
2011-08-23 9:30 ` netfab
0 siblings, 1 reply; 7+ messages in thread
From: Leonardo Guilherme @ 2011-08-23 7:02 UTC (permalink / raw
To: gentoo-user
Thats what I call worthy information! Thank you so much, Yohan and Nikos!
> FEATURES="${FEATURES} splitdebug"
What if I want to use splitdebug always and just deactivate it to some
packages, -splitdebug on FEATURES will undo the splitdebug already
set?
like
FEATURES="${FEATURES} -splitdebug"
Thanks again!
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Per-package splitdebug FEATURE
2011-08-23 7:02 ` Leonardo Guilherme
@ 2011-08-23 9:30 ` netfab
2011-09-01 0:50 ` Leonardo Guilherme
0 siblings, 1 reply; 7+ messages in thread
From: netfab @ 2011-08-23 9:30 UTC (permalink / raw
To: gentoo-user
Le 23/08/11 à 04:02, Leonardo a tapoté :
> What if I want to use splitdebug always and just deactivate it to some
> packages
Another way is to enable splitdebug globally, but not install
debug files for specific packages :
/etc/portage/env/do-not-install-debug-files.conf:
INSTALL_MASK="/usr/lib/debug"
/etc/portage/env/package.env:
www-client/firefox do-not-install-debug-files.conf
If you are using FEATURES="buildpkg" you can set INSTALL_MASK into
make.conf : debug files will never be installed, but will be
available into tbz2 packages.
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Per-package splitdebug FEATURE
2011-08-23 9:30 ` netfab
@ 2011-09-01 0:50 ` Leonardo Guilherme
2015-04-14 23:29 ` Leonardo Guilherme
0 siblings, 1 reply; 7+ messages in thread
From: Leonardo Guilherme @ 2011-09-01 0:50 UTC (permalink / raw
To: gentoo-user
2011/8/23 netfab <netfab@gmail.com>:
> Le 23/08/11 à 04:02, Leonardo a tapoté :
>> What if I want to use splitdebug always and just deactivate it to some
>> packages
>
> Another way is to enable splitdebug globally, but not install
> debug files for specific packages :
>
> /etc/portage/env/do-not-install-debug-files.conf:
>
> INSTALL_MASK="/usr/lib/debug"
>
> /etc/portage/env/package.env:
>
> www-client/firefox do-not-install-debug-files.conf
>
> If you are using FEATURES="buildpkg" you can set INSTALL_MASK into
> make.conf : debug files will never be installed, but will be
> available into tbz2 packages.
>
>
Exactly what I wanted! Thank you! All of you :)
--
Leonardo
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [gentoo-user] Per-package splitdebug FEATURE
2011-09-01 0:50 ` Leonardo Guilherme
@ 2015-04-14 23:29 ` Leonardo Guilherme
0 siblings, 0 replies; 7+ messages in thread
From: Leonardo Guilherme @ 2015-04-14 23:29 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1166 bytes --]
Sorry to resurect and old thread, but, its funny.
I was searching for this information again and found a post in which this
guy was asking exactly what I wanted to know. Imagine my surprise when I
found that the guy was me but 4 years ago, I loled.
Thanks one more time!
Em qua, 31 de ago de 2011 às 21:50, Leonardo Guilherme <
leonardo.guilherme@gmail.com> escreveu:
> 2011/8/23 netfab <netfab@gmail.com>:
> > Le 23/08/11 à 04:02, Leonardo a tapoté :
> >> What if I want to use splitdebug always and just deactivate it to some
> >> packages
> >
> > Another way is to enable splitdebug globally, but not install
> > debug files for specific packages :
> >
> > /etc/portage/env/do-not-install-debug-files.conf:
> >
> > INSTALL_MASK="/usr/lib/debug"
> >
> > /etc/portage/env/package.env:
> >
> > www-client/firefox do-not-install-debug-files.conf
> >
> > If you are using FEATURES="buildpkg" you can set INSTALL_MASK into
> > make.conf : debug files will never be installed, but will be
> > available into tbz2 packages.
> >
> >
>
> Exactly what I wanted! Thank you! All of you :)
>
> --
>
> Leonardo
>
[-- Attachment #2: Type: text/html, Size: 1621 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2015-04-14 23:29 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-23 6:17 [gentoo-user] Per-package splitdebug FEATURE Leonardo Guilherme
2011-08-23 6:49 ` [gentoo-user] " Nikos Chantziaras
2011-08-23 6:56 ` [gentoo-user] " 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
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox