public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
* [gentoo-user] How do I enable package specific FEATURES and CFLAGS?
@ 2007-04-14 11:28 Jules Colding
  2007-04-14 11:53 ` Elias Probst
  2007-04-14 12:08 ` Bo Ørsted Andresen
  0 siblings, 2 replies; 8+ messages in thread
From: Jules Colding @ 2007-04-14 11:28 UTC (permalink / raw
  To: Gentoo Users

Hi,

I always want to build evolution and evolution-data-server with:

CFLAGS="-march=k8 -O1 -ggdb -pipe"
FEATURES=splitdebug

as opposed to other all packages which I want to build with:

CFLAGS="-march=k8 -O2 -pipe"

How can I arrange for this to happen without manually
changing /etc/make.conf whenever I build those packages? 


Thanks,
  jules


-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?
  2007-04-14 11:28 [gentoo-user] How do I enable package specific FEATURES and CFLAGS? Jules Colding
@ 2007-04-14 11:53 ` Elias Probst
  2007-04-14 12:08 ` Bo Ørsted Andresen
  1 sibling, 0 replies; 8+ messages in thread
From: Elias Probst @ 2007-04-14 11:53 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 630 bytes --]

On Saturday 14 April 2007 13:28:26 Jules Colding wrote:
> Hi,
>
> I always want to build evolution and evolution-data-server with:
>
> CFLAGS="-march=k8 -O1 -ggdb -pipe"
> FEATURES=splitdebug

http://forums.gentoo.org/viewtopic-t-472386-highlight-bashrcng.html
Using portage-bashrc-ng you can do this.

Pay attention on how to define CFLAGS in package.cflags: They're not added to 
existing ones like it's done by package.use, you have to specify the complete 
CFLAGS definition per package/category:

e.g.
kde-base/* -ggdb -O2 -march=nocona -msse3 -pipe -fomit-frame-pointer -fvar-tracking

Regards,
Elias P.

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?
  2007-04-14 11:28 [gentoo-user] How do I enable package specific FEATURES and CFLAGS? Jules Colding
  2007-04-14 11:53 ` Elias Probst
@ 2007-04-14 12:08 ` Bo Ørsted Andresen
  2007-04-14 12:13   ` Bo Ørsted Andresen
  2007-04-14 13:34   ` Daniel Pielmeier
  1 sibling, 2 replies; 8+ messages in thread
From: Bo Ørsted Andresen @ 2007-04-14 12:08 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 664 bytes --]

On Saturday 14 April 2007 13:28:26 Jules Colding wrote:
> Hi,
>
> I always want to build evolution and evolution-data-server with:
>
> CFLAGS="-march=k8 -O1 -ggdb -pipe"
> FEATURES=splitdebug
>
> as opposed to other all packages which I want to build with:
>
> CFLAGS="-march=k8 -O2 -pipe"
>
> How can I arrange for this to happen without manually
> changing /etc/make.conf whenever I build those packages?

# mkdir -p /etc/portage/env/mail-client
# CAT << END > /etc/portage/env/mail-client/evolution
CFLAGS="-march=k8 -O1 -ggdb -pipe"
FEATURES="$FEATURES splitdebug"
END

Likewise for gnome-extra/evolution-data-server.

-- 
Bo Andresen

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?
  2007-04-14 12:08 ` Bo Ørsted Andresen
@ 2007-04-14 12:13   ` Bo Ørsted Andresen
  2007-04-14 12:22     ` Jules Colding
  2007-04-14 13:34   ` Daniel Pielmeier
  1 sibling, 1 reply; 8+ messages in thread
From: Bo Ørsted Andresen @ 2007-04-14 12:13 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 204 bytes --]

On Saturday 14 April 2007 14:08:58 Bo Ørsted Andresen wrote:
> # CAT << END > /etc/portage/env/mail-client/evolution

Heh, that obviously went out a bit too fast. cat not CAT. :)

-- 
Bo Andresen

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?
  2007-04-14 12:13   ` Bo Ørsted Andresen
@ 2007-04-14 12:22     ` Jules Colding
  0 siblings, 0 replies; 8+ messages in thread
From: Jules Colding @ 2007-04-14 12:22 UTC (permalink / raw
  To: gentoo-user

On Sat, 2007-04-14 at 14:13 +0200, Bo Ørsted Andresen wrote:
> On Saturday 14 April 2007 14:08:58 Bo Ørsted Andresen wrote:
> > # CAT << END > /etc/portage/env/mail-client/evolution
> 
> Heh, that obviously went out a bit too fast. cat not CAT. :)

I got the idea ;-)

Thanks a lot,
  jules

-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?
  2007-04-14 12:08 ` Bo Ørsted Andresen
  2007-04-14 12:13   ` Bo Ørsted Andresen
@ 2007-04-14 13:34   ` Daniel Pielmeier
  2007-04-14 14:36     ` Bo Ørsted Andresen
  1 sibling, 1 reply; 8+ messages in thread
From: Daniel Pielmeier @ 2007-04-14 13:34 UTC (permalink / raw
  To: gentoo-user

 > # mkdir -p /etc/portage/env/mail-client
> # CAT << END > /etc/portage/env/mail-client/evolution
> CFLAGS="-march=k8 -O1 -ggdb -pipe"
> FEATURES="$FEATURES splitdebug"
> END
> 
> Likewise for gnome-extra/evolution-data-server.
> 

I think here is some clarification needed, at least for me!
Is this functionality now implemented in portage or do need the
third-party-tools like
portage-bashrc
http://www.mathematik.uni-wuerzburg.de/~vaeth/gentoo/
portage-bashrc-ng
http://forums.gentoo.org/viewtopic-t-472386-start-0-postdays-0-postorder-asc-highlight-bashrcng.html

And if it is implemented in portage do i need a /etc/portage/bashrc file
or just the env folder with my paket specific settings in the
category/app structure?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?
  2007-04-14 13:34   ` Daniel Pielmeier
@ 2007-04-14 14:36     ` Bo Ørsted Andresen
  2007-04-14 14:56       ` Daniel Pielmeier
  0 siblings, 1 reply; 8+ messages in thread
From: Bo Ørsted Andresen @ 2007-04-14 14:36 UTC (permalink / raw
  To: gentoo-user

[-- Attachment #1: Type: text/plain, Size: 1476 bytes --]

On Saturday 14 April 2007 15:34:59 Daniel Pielmeier wrote:
>  > # mkdir -p /etc/portage/env/mail-client
> >
> > # CAT << END > /etc/portage/env/mail-client/evolution
> > CFLAGS="-march=k8 -O1 -ggdb -pipe"
> > FEATURES="$FEATURES splitdebug"
> > END
> >
> > Likewise for gnome-extra/evolution-data-server.
>
> I think here is some clarification needed, at least for me!
> Is this functionality now implemented in portage or do need the
> third-party-tools like [...]

Sort of no to both actually..

> And if it is implemented in portage do i need a /etc/portage/bashrc file
> or just the env folder with my paket specific settings in the
> category/app structure?

It works because of [1] which means that as long as you are using a profile
that inherit from the base profile (all supported profiles do) you don't need
to add anything to /etc/portage/bashrc.

Functionality wise it is in no way different from putting a case construct like:

case "${CATEGORY}/${PN}" in
    mail-client/evolution | gnome-extra/evolution-data-server )
    CFLAGS="-march=k8 -O1 -ggdb -pipe"
    FEATURES="$FEATURES splitdebug"
    ;;
esac

in /etc/portage/bashrc.

This also means that not all FEATURES set there are going to be respected.
Only the ones that are read in bash code by portage. That does, however,
include splitdebug.

[1] http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/base/profile.bashrc?rev=1.1&view=markup

-- 
Bo Andresen

[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 189 bytes --]

^ permalink raw reply	[flat|nested] 8+ messages in thread

* Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?
  2007-04-14 14:36     ` Bo Ørsted Andresen
@ 2007-04-14 14:56       ` Daniel Pielmeier
  0 siblings, 0 replies; 8+ messages in thread
From: Daniel Pielmeier @ 2007-04-14 14:56 UTC (permalink / raw
  To: gentoo-user

Bo Ørsted Andresen schrieb:
> On Saturday 14 April 2007 15:34:59 Daniel Pielmeier wrote:
>>  > # mkdir -p /etc/portage/env/mail-client
>>> # CAT << END > /etc/portage/env/mail-client/evolution
>>> CFLAGS="-march=k8 -O1 -ggdb -pipe"
>>> FEATURES="$FEATURES splitdebug"
>>> END
>>>
>>> Likewise for gnome-extra/evolution-data-server.
>> I think here is some clarification needed, at least for me!
>> Is this functionality now implemented in portage or do need the
>> third-party-tools like [...]
> 
> Sort of no to both actually..
> 
>> And if it is implemented in portage do i need a /etc/portage/bashrc file
>> or just the env folder with my paket specific settings in the
>> category/app structure?
> 
> It works because of [1] which means that as long as you are using a profile
> that inherit from the base profile (all supported profiles do) you don't need
> to add anything to /etc/portage/bashrc.
> 
> Functionality wise it is in no way different from putting a case construct like:
> 
> case "${CATEGORY}/${PN}" in
>     mail-client/evolution | gnome-extra/evolution-data-server )
>     CFLAGS="-march=k8 -O1 -ggdb -pipe"
>     FEATURES="$FEATURES splitdebug"
>     ;;
> esac
> 
> in /etc/portage/bashrc.
> 
> This also means that not all FEATURES set there are going to be respected.
> Only the ones that are read in bash code by portage. That does, however,
> include splitdebug.
> 
> [1] http://sources.gentoo.org/viewcvs.py/gentoo-x86/profiles/base/profile.bashrc?rev=1.1&view=markup
> 

Okay thanks, i think i got that now.

Is there a list of environment variables which are read in bash code and
therefore could be changed this way?
-- 
gentoo-user@gentoo.org mailing list



^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-04-14 15:02 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-14 11:28 [gentoo-user] How do I enable package specific FEATURES and CFLAGS? Jules Colding
2007-04-14 11:53 ` Elias Probst
2007-04-14 12:08 ` Bo Ørsted Andresen
2007-04-14 12:13   ` Bo Ørsted Andresen
2007-04-14 12:22     ` Jules Colding
2007-04-14 13:34   ` Daniel Pielmeier
2007-04-14 14:36     ` Bo Ørsted Andresen
2007-04-14 14:56       ` Daniel Pielmeier

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox