Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
package.cflags
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Duplicate Threads
View previous topic :: View next topic  

incorperate my package.cflags into next version of portage
Yes! Optimization with stable base packages
16%
 16%  [ 1 ]
No! Ricers will invade and will be the bane of bugs.gentoo.org
83%
 83%  [ 5 ]
Total Votes : 6

Author Message
lightvhawk0
Guru
Guru


Joined: 07 Nov 2003
Posts: 388

PostPosted: Thu May 12, 2005 8:25 pm    Post subject: package.cflags Reply with quote

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
View user's profile Send private message
Given M. Sur
l33t
l33t


Joined: 03 Feb 2004
Posts: 648
Location: No such file or directory

PostPosted: Thu May 12, 2005 8:34 pm    Post subject: Reply with quote

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
View user's profile Send private message
Halcy0n
Developer
Developer


Joined: 17 Sep 2003
Posts: 1682
Location: Freehold, NJ

PostPosted: Thu May 12, 2005 8:55 pm    Post subject: Reply with quote

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
View user's profile Send private message
amne
Bodhisattva
Bodhisattva


Joined: 17 Nov 2002
Posts: 6378
Location: Graz / EU

PostPosted: Thu May 12, 2005 9:14 pm    Post subject: Reply with quote

Moved from GC as it has been discussed for a couple of times. Here are some recent links:
https://forums.gentoo.org/viewtopic-t-250137-highlight-cflags+bashrc.html
https://forums.gentoo.org/viewtopic-t-280748-highlight-cflags+bashrc.html
https://forums.gentoo.org/viewtopic-t-303451-highlight-cflags+bashrc.html
https://forums.gentoo.org/viewtopic-t-315834-highlight-cflags+bashrc.html
https://forums.gentoo.org/viewtopic-t-266454-highlight-cflags+bashrc.html
_________________
Dinosaur week! (Ok, this thread is so last week)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Duplicate Threads All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum