View previous topic :: View next topic |
incorperate my package.cflags into next version of portage |
Yes! Optimization with stable base packages |
|
16% |
[ 1 ] |
No! Ricers will invade and will be the bane of bugs.gentoo.org |
|
83% |
[ 5 ] |
|
Total Votes : 6 |
|
Author |
Message |
lightvhawk0 Guru
Joined: 07 Nov 2003 Posts: 388
|
Posted: Thu May 12, 2005 8:25 pm Post subject: package.cflags |
|
|
My idea simple and I think very groovy.
Ok here's the synopsis of my idea, have a package.cflags where it only effects the package name.
So that all the dependencies get compiled with stable cflags and the specified program gets to have the cflag setting in package.cflags
Advantages...
some programs peform better with different sets of cflags
other packages may be able to deal with filtered cflags ie app.2.0 wont compile with -ffast-math newapp.2.1 will
setting really reserved cflags for packages that won't compile with standard ones ie -march=cheese breaks app.2.0 set cflags in packages.cflags -O2 -pipe
stable base for packages to be compiled on
Disadvantages...
New users posting lots of trash in bugs.gentoo.org
package instability, but if it's an educated user they'd know it's bad cflags
anyways id like your input and segestions on this idea i think i'd be great to have this feature in portage _________________ If God has made us in his image, we have returned him the favor. - Voltaire |
|
Back to top |
|
|
Given M. Sur l33t
Joined: 03 Feb 2004 Posts: 648 Location: No such file or directory
|
Posted: Thu May 12, 2005 8:34 pm Post subject: |
|
|
I think it's a good idea. I probably wouldn't use it much, but I might play around with it. Ever since package.use became an option I've wondered why there wasn't a package.cflags.
Although, I've heard that cheese isn't a very stable platform for any program other than mold. _________________ What is the best [insert-type-of-program-here]? |
|
Back to top |
|
|
Halcy0n Developer
Joined: 17 Sep 2003 Posts: 1682 Location: Freehold, NJ
|
Posted: Thu May 12, 2005 8:55 pm Post subject: |
|
|
CFLAGS aren't magical entities that make programs run remarkably faster. Just pick a sane set for your entire system. We already get enough bug reports that are invalid because users are using insane CFLAGS for their entire system. You know there are going to be people out there that find the most extreme flags for every single package, and who knows what kind of new stability issues that will introduce.
Also, I'm pretty sure you can already do this with /etc/portage/bashrc. I think solar has something in his devspace to enable the use of package.cflags. _________________ Mark Loeser
http://www.halcy0n.com |
|
Back to top |
|
|
amne Bodhisattva
Joined: 17 Nov 2002 Posts: 6378 Location: Graz / EU
|
|
Back to top |
|
|
|