Re: [gentoo-dev] Hardened USE flag

2007-02-06 Thread Mike Frysinger
On Tuesday 06 February 2007, Luis Francisco Araujo wrote:
> I will go with the pic USE flag option then.

maybe i wasnt clear ... USE=pic is meant for only certain cases, certainly not 
for general use ... i dont think smalltalk qualifies for this concession
-mike


pgpTh01b1eq6x.pgp
Description: PGP signature


Re: [gentoo-dev] Hardened USE flag

2007-02-06 Thread Luis Francisco Araujo

Mike Frysinger wrote:

On Monday 05 February 2007, Luis Francisco Araujo wrote:

I am usually very hesitant to add new use flags to the tree (unless they
are *really* necessary or imply a great advantage.) ; though i am not
sure here if anybody else would consider this a good recommendation for
handling textrels.


why not just build pic for everyone on x86 ?  define "it'll hurt 
performance" ... of course you take a small penalty for code being PIC, but i 
dont exactly see smalltalk being such a performance hardcore language to 
justify making it special



I was thinking more of a simple 'use hardened && myconf=" .. "' specific
line for this ebuild; but it's probably a good idea offering to more
developers the easy choice of this feature through a USE flag?


you would utilize the "pic" USE flag ... php does this because it, unlike 
smalltalk, is very performance critical, and so by default it builds as 
non-pic on x86

-mike


Thank everyone;

I will go with the pic USE flag option then.

--

Luis F. Araujo "araujo at gentoo.org"
Gentoo Linux

--
gentoo-dev@gentoo.org mailing list



Re: [gentoo-dev] Hardened USE flag

2007-02-06 Thread Mike Frysinger
On Monday 05 February 2007, Luis Francisco Araujo wrote:
> I am usually very hesitant to add new use flags to the tree (unless they
> are *really* necessary or imply a great advantage.) ; though i am not
> sure here if anybody else would consider this a good recommendation for
> handling textrels.

why not just build pic for everyone on x86 ?  define "it'll hurt 
performance" ... of course you take a small penalty for code being PIC, but i 
dont exactly see smalltalk being such a performance hardcore language to 
justify making it special

> I was thinking more of a simple 'use hardened && myconf=" .. "' specific
> line for this ebuild; but it's probably a good idea offering to more
> developers the easy choice of this feature through a USE flag?

you would utilize the "pic" USE flag ... php does this because it, unlike 
smalltalk, is very performance critical, and so by default it builds as 
non-pic on x86
-mike


pgp9ofiJDIMFV.pgp
Description: PGP signature


Re: [gentoo-dev] Hardened USE flag

2007-02-06 Thread Kevin F. Quinn
On Tue, 06 Feb 2007 00:15:25 -0400
Luis Francisco Araujo <[EMAIL PROTECTED]> wrote:

> Hello World!
> 
> I want to ask for suggestions and opinions for the best way to handle 
> this bug:
> 
> http://bugs.gentoo.org/show_bug.cgi?id=158434

 [textrels in smalltalk shared librart libgst.so]

> I am usually very hesitant to add new use flags to the tree (unless
> they are *really* necessary or imply a great advantage.) ; though i
> am not sure here if anybody else would consider this a good
> recommendation for handling textrels.

In general, we would urge maintainers to default to no-textrels for
shared libraries; normally the performance impact is negligible
(often the performance is better, overall).  It would be worth
obtaining some real statistics before deciding.

Note that textrels in shared libraries are pretty much an x86-only
thing.  amd64 in particular does not tolerate textrels in shared
libraries (PIC is cheaper on amd64).

> I was thinking more of a simple 'use hardened && myconf=" .. "'
> specific line for this ebuild; but it's probably a good idea offering
> to more developers the easy choice of this feature through a USE flag?

I think 'use pic' would be more appropriate, because we're talking
about whether we want position-independent code or not (but I defer to
solar in these things).

> If it looks enough useful for many people; then i think we can
> proceed to implement it; if it will only be used by this ebuild; then
> i am already against it ;-)


-- 
Kevin F. Quinn


signature.asc
Description: PGP signature


[gentoo-dev] Hardened USE flag

2007-02-05 Thread Luis Francisco Araujo

Hello World!

I want to ask for suggestions and opinions for the best way to handle 
this bug:


http://bugs.gentoo.org/show_bug.cgi?id=158434

I am usually very hesitant to add new use flags to the tree (unless they 
are *really* necessary or imply a great advantage.) ; though i am not 
sure here if anybody else would consider this a good recommendation for 
handling textrels.


I was thinking more of a simple 'use hardened && myconf=" .. "' specific 
line for this ebuild; but it's probably a good idea offering to more 
developers the easy choice of this feature through a USE flag?


If it looks enough useful for many people; then i think we can proceed 
to implement it; if it will only be used by this ebuild; then i am 
already against it ;-)


Thanks;

--

Luis F. Araujo "araujo at gentoo.org"
Gentoo Linux

--
gentoo-dev@gentoo.org mailing list