[gentoo-user] How do I enable package specific FEATURES and CFLAGS?

2007-04-14 Thread Jules Colding
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


-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?

2007-04-14 Thread Elias Probst
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.


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?

2007-04-14 Thread Bo Ørsted Andresen
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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?

2007-04-14 Thread Bo Ørsted Andresen
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


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?

2007-04-14 Thread Jules Colding
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

-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?

2007-04-14 Thread Daniel Pielmeier
  # 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?
-- 
[EMAIL PROTECTED] mailing list



Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?

2007-04-14 Thread Bo Ørsted Andresen
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.1view=markup

-- 
Bo Andresen


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] How do I enable package specific FEATURES and CFLAGS?

2007-04-14 Thread Daniel Pielmeier
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.1view=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?
-- 
[EMAIL PROTECTED] mailing list