* [gentoo-dev] News item announcing as-needed (glep 42 stuff)
@ 2010-07-26 20:29 Tomáš Chvátal
2010-07-26 20:34 ` Fabian Groffen
` (3 more replies)
0 siblings, 4 replies; 24+ messages in thread
From: Tomáš Chvátal @ 2010-07-26 20:29 UTC (permalink / raw
To: gentoo-dev, pr
[-- Attachment #1.1: Type: text/plain, Size: 110 bytes --]
Hi guys,
See the attachment for the draft.
Please improve it to be an actual English :P
Cheers
Tom
[-- Attachment #1.2: as_needed.txt --]
[-- Type: text/plain, Size: 926 bytes --]
Title: --as-needed enabled in default profiles
Author: Tomáš Chvátal <scarabeus@gentoo.org>
Content-type: text/plain
Posted: 2010-07-26
Revision: 1
News-Item-Format: 1.0
Starting today all applications emerged on your system are linked
together with additional LDFLAGS="-Wl,--as-needed". This option
allows us to avoid linking extra libraries into the final binary
improving startup times and more importantly making binaries more
resistant to a library SONAME changes [1].
To gain the benefits of the change you should doublecheck your
value of LDFLAGS in make.conf because the variable does not fold and
your make.conf value is final. So after checking it and potentially
removing we suggest rebuilding whole system to benefit from it.
Overriding the in-profiles value is quite simple as described by
previous paragraph. Just put simply LDFLAGS="-Wl,01" in make.conf.
[1] http://www.gentoo.org/proj/en/qa/asneeded.xml
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 262 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-26 20:29 [gentoo-dev] News item announcing as-needed (glep 42 stuff) Tomáš Chvátal
@ 2010-07-26 20:34 ` Fabian Groffen
2010-07-26 20:44 ` "Paweł Hajdan, Jr."
` (2 subsequent siblings)
3 siblings, 0 replies; 24+ messages in thread
From: Fabian Groffen @ 2010-07-26 20:34 UTC (permalink / raw
To: gentoo-dev
On 26-07-2010 22:29:06 +0200, Tomáš Chvátal wrote:
> Starting today all applications emerged on your system are linked
> together with additional LDFLAGS="-Wl,--as-needed". This option
> allows us to avoid linking extra libraries into the final binary
> improving startup times and more importantly making binaries more
> resistant to a library SONAME changes [1].
While this is sort of the end result, I'd suggest making a more correct
statement here, like "and more importantly possibly reducing breakage of
binaries and libraries after a library SONAME changes".
--
Fabian Groffen
Gentoo on a different level
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-26 20:29 [gentoo-dev] News item announcing as-needed (glep 42 stuff) Tomáš Chvátal
2010-07-26 20:34 ` Fabian Groffen
@ 2010-07-26 20:44 ` "Paweł Hajdan, Jr."
2010-07-27 0:27 ` Joshua Saddler
2010-07-26 22:09 ` [gentoo-dev] " Alex Alexander
2010-07-27 14:39 ` [gentoo-dev] " Jeroen Roovers
3 siblings, 1 reply; 24+ messages in thread
From: "Paweł Hajdan, Jr." @ 2010-07-26 20:44 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1517 bytes --]
On 7/26/10 1:29 PM, Tomáš Chvátal wrote:
> Title: --as-needed enabled in default profiles
> Author: Tomáš Chvátal <scarabeus@gentoo.org>
> Content-type: text/plain
> Posted: 2010-07-26
> Revision: 1
> News-Item-Format: 1.0
>
> Starting today all applications emerged on your system are linked
> together with additional LDFLAGS="-Wl,--as-needed". This option
> allows us to avoid linking extra libraries into the final binary
> improving startup times and more importantly making binaries more
> resistant to a library SONAME changes [1].
How about making it less technical? Just say that you'll need to rebuild
less packages on average after a library upgrade than before.
> To gain the benefits of the change you should doublecheck your
> value of LDFLAGS in make.conf because the variable does not fold and
> your make.conf value is final. So after checking it and potentially
> removing we suggest rebuilding whole system to benefit from it.
This might be a bit unclear to less savvy users. How about just make
sure your LDFLAGS in /etc/make.conf contains "-Wl,--as-needed" or is unset?
> Overriding the in-profiles value is quite simple as described by
> previous paragraph. Just put simply LDFLAGS="-Wl,01" in make.conf.
Instead of saying "overriding", I'd say something more similar to
"disabling --as-needed" and add that it is not recommended.
> [1] http://www.gentoo.org/proj/en/qa/asneeded.xml
Paweł
P.S. It's nice to see this happening, thanks!
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-26 20:44 ` "Paweł Hajdan, Jr."
@ 2010-07-27 0:27 ` Joshua Saddler
2010-07-27 8:23 ` [gentoo-dev] " Duncan
0 siblings, 1 reply; 24+ messages in thread
From: Joshua Saddler @ 2010-07-27 0:27 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 790 bytes --]
On Mon, 26 Jul 2010 13:44:36 -0700
"Paweł Hajdan, Jr." <phajdan.jr@gentoo.org> wrote:
> This might be a bit unclear to less savvy users. How about just make
> sure your LDFLAGS in /etc/make.conf contains "-Wl,--as-needed" or is unset?
> Instead of saying "overriding", I'd say something more similar to
> "disabling --as-needed" and add that it is not recommended.
It should be unset; as you say, users should not be screwing with system-wide LDFLAGs, as we don't support anything but the defaults.
I put an LDFLAGs FAQ in the optimization guide a long time ago:
section>
<title>What about LDFLAGS?</title>
<body>
<p>
The Gentoo developers have already set basic, safe LDFLAGS in the base profiles,
so you don't need to change them.
</p>
</body>
</section
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
2010-07-27 0:27 ` Joshua Saddler
@ 2010-07-27 8:23 ` Duncan
0 siblings, 0 replies; 24+ messages in thread
From: Duncan @ 2010-07-27 8:23 UTC (permalink / raw
To: gentoo-dev
Joshua Saddler posted on Mon, 26 Jul 2010 17:27:16 -0700 as excerpted:
> It should be unset; as you say, users should not be screwing with
> system-wide LDFLAGs, as we don't support anything but the defaults.
>
> I put an LDFLAGs FAQ in the optimization guide a long time ago:
>
> section>
> <title>What about LDFLAGS?</title>
> <body>
>
> <p>
> The Gentoo developers have already set basic, safe LDFLAGS in the base
> profiles, so you don't need to change them. </p>
>
> </body>
> </section
I agree with the safe bit, but that "don't need to change them" phrase is
self-evidently false, or Gentoo wouldn't have needed to make the
--as-needed change either. The change didn't magically happen the moment
the need appeared.
(Then again, I never believed that equally self-evidently false "no user
serviceable parts inside" sticker, either. When it's a few screws and a
50 cent fuse, and I'm the user without a microwave as a result...)
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-26 20:29 [gentoo-dev] News item announcing as-needed (glep 42 stuff) Tomáš Chvátal
2010-07-26 20:34 ` Fabian Groffen
2010-07-26 20:44 ` "Paweł Hajdan, Jr."
@ 2010-07-26 22:09 ` Alex Alexander
2010-07-26 22:41 ` Sebastian Pipping
2010-07-27 14:39 ` [gentoo-dev] " Jeroen Roovers
3 siblings, 1 reply; 24+ messages in thread
From: Alex Alexander @ 2010-07-26 22:09 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1132 bytes --]
On Mon, Jul 26, 2010 at 10:29:06PM +0200, Tomáš Chvátal wrote:
> Hi guys,
> See the attachment for the draft.
>
> Please improve it to be an actual English :P
How about:
-Wl,--as-needed has been added to the default profile's LDFLAGS.
This option optimizes the linking process, only linking binaries to
libraries that are trully needed. This way, fewer libraries are loaded
at runtime and fewer packages need to be rebuilt on library updates.
Setting LDFLAGS in your make.conf will override the default. In that
case, if you want the new setting you have to either remove LDFLAGS,
or append " -Wl,--as-needed" to it (sans the quotes) yourself.
To take advantage of the new default you can either rebuild world or
allow the system to migrate slowly through updates.
To disable the new default (not recommended) you can define your own
LDFLAGS in make.conf. LDFLAGS="-Wl,-O1" will suffice.
For more information on --as-needed, read [1].
[1] http://www.gentoo.org/proj/en/qa/asneeded.xml
--
Alex Alexander -=- wired
Gentoo Linux Developer -=- Council / Qt / KDE / more
www.linuxized.com
[-- Attachment #2: Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-26 22:09 ` [gentoo-dev] " Alex Alexander
@ 2010-07-26 22:41 ` Sebastian Pipping
2010-07-27 3:38 ` [gentoo-dev] " Ryan Hill
0 siblings, 1 reply; 24+ messages in thread
From: Sebastian Pipping @ 2010-07-26 22:41 UTC (permalink / raw
To: gentoo-dev
I like that one better.
Both proposals leave a question open to me, though:
Do I understand correctly that I could integrate the in-profile value with
LDFLAGS="${LDFLAGS} foo bar"
in /etc/make.conf? Maybe that's something people want to do. If so
maybe add a hint?
Sebastian
^ permalink raw reply [flat|nested] 24+ messages in thread
* [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
2010-07-26 22:41 ` Sebastian Pipping
@ 2010-07-27 3:38 ` Ryan Hill
2010-07-27 8:36 ` Tomáš Chvátal
2010-07-27 17:37 ` Róbert Čerňanský
0 siblings, 2 replies; 24+ messages in thread
From: Ryan Hill @ 2010-07-27 3:38 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1408 bytes --]
On Tue, 27 Jul 2010 00:41:12 +0200
Sebastian Pipping <sping@gentoo.org> wrote:
> I like that one better.
>
>
> Both proposals leave a question open to me, though:
> Do I understand correctly that I could integrate the in-profile value with
>
> LDFLAGS="${LDFLAGS} foo bar"
>
> in /etc/make.conf? Maybe that's something people want to do. If so
> maybe add a hint?
Yep. Can I suggest:
-Wl,--as-needed has been added to the default profile's LDFLAGS.
This option optimizes the linking process, only linking binaries to
libraries that are trully needed. This way, fewer libraries are loaded
at runtime and fewer packages need to be rebuilt after library updates.
To take advantage of the new default you can either rebuild world now or just
allow the system to migrate incrementally as it updates.
Please note that setting LDFLAGS="<your flags>" in your make.conf will
override the profile defaults. If you want to add additional LDFLAGS it is
recommended to use LDFLAGS="${LDFLAGS} <your flags>" instead to avoid this.
For more information on --as-needed, read [1].
[1] http://www.gentoo.org/proj/en/qa/asneeded.xml
--
fonts, gcc-porting, and it's all by design
toolchain, wxwidgets to keep us from losing our minds
@ gentoo.org EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
2010-07-27 3:38 ` [gentoo-dev] " Ryan Hill
@ 2010-07-27 8:36 ` Tomáš Chvátal
2010-07-27 13:55 ` "Paweł Hajdan, Jr."
2010-07-27 17:37 ` Róbert Čerňanský
1 sibling, 1 reply; 24+ messages in thread
From: Tomáš Chvátal @ 2010-07-27 8:36 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Dne 27.7.2010 05:38, Ryan Hill napsal(a):
> Yep. Can I suggest:
>
> -Wl,--as-needed has been added to the default profile's LDFLAGS.
>
> This option optimizes the linking process, only linking binaries to
> libraries that are trully needed. This way, fewer libraries are loaded
> at runtime and fewer packages need to be rebuilt after library updates.
>
> To take advantage of the new default you can either rebuild world now or just
> allow the system to migrate incrementally as it updates.
>
> Please note that setting LDFLAGS="<your flags>" in your make.conf will
> override the profile defaults. If you want to add additional LDFLAGS it is
> recommended to use LDFLAGS="${LDFLAGS} <your flags>" instead to avoid this.
>
> For more information on --as-needed, read [1].
>
> [1] http://www.gentoo.org/proj/en/qa/asneeded.xml
>
>
I like this. Consider this as the update :]
With one simple replace s/trully/truly/ :P
Tom
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAkxOmpwACgkQHB6c3gNBRYfiMwCfRWQEheYwNbssCd5qReSSCyKq
ACcAoJlm9ag96GEk0Bt3rLLdP1tx8XKv
=jZnr
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
2010-07-27 8:36 ` Tomáš Chvátal
@ 2010-07-27 13:55 ` "Paweł Hajdan, Jr."
0 siblings, 0 replies; 24+ messages in thread
From: "Paweł Hajdan, Jr." @ 2010-07-27 13:55 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1091 bytes --]
On 7/27/10 1:36 AM, Tomáš Chvátal wrote:
> Dne 27.7.2010 05:38, Ryan Hill napsal(a):
>> Yep. Can I suggest:
>
>> -Wl,--as-needed has been added to the default profile's LDFLAGS.
>
>> This option optimizes the linking process, only linking binaries to
>> libraries that are trully needed. This way, fewer libraries are loaded
>> at runtime and fewer packages need to be rebuilt after library updates.
>
>> To take advantage of the new default you can either rebuild world now or just
>> allow the system to migrate incrementally as it updates.
>
>> Please note that setting LDFLAGS="<your flags>" in your make.conf will
>> override the profile defaults. If you want to add additional LDFLAGS it is
>> recommended to use LDFLAGS="${LDFLAGS} <your flags>" instead to avoid this.
>
>> For more information on --as-needed, read [1].
>
>> [1] http://www.gentoo.org/proj/en/qa/asneeded.xml
>
>
> I like this. Consider this as the update :]
> With one simple replace s/trully/truly/ :P
I also like Ryan's version. I think it is clear and accurate.
Paweł
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
2010-07-27 3:38 ` [gentoo-dev] " Ryan Hill
2010-07-27 8:36 ` Tomáš Chvátal
@ 2010-07-27 17:37 ` Róbert Čerňanský
2010-07-27 17:42 ` Samuli Suominen
1 sibling, 1 reply; 24+ messages in thread
From: Róbert Čerňanský @ 2010-07-27 17:37 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 343 bytes --]
On Mon, 26 Jul 2010 21:38:05 -0600
Ryan Hill <dirtyepic@gentoo.org> wrote:
> it is recommended to use LDFLAGS="${LDFLAGS} <your flags>" instead to
Is it not a comma required between ${LDFLAGS} and <your flags>?
LDFLAGS="${LDFLAGS},<your flags>"
Robert
--
Robert Cernansky
E-mail: hslists2@zoznam.sk
Jabber: hs@jabber.sk
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-26 20:29 [gentoo-dev] News item announcing as-needed (glep 42 stuff) Tomáš Chvátal
` (2 preceding siblings ...)
2010-07-26 22:09 ` [gentoo-dev] " Alex Alexander
@ 2010-07-27 14:39 ` Jeroen Roovers
2010-07-27 15:53 ` Maciej Mrozowski
` (2 more replies)
3 siblings, 3 replies; 24+ messages in thread
From: Jeroen Roovers @ 2010-07-27 14:39 UTC (permalink / raw
To: gentoo-dev
On Mon, 26 Jul 2010 22:29:06 +0200
Tomáš Chvátal <scarabeus@gentoo.org> wrote:
Is it time yet? I still find a lot of packages that do not even respect
LDFLAGS yet - when all these get fixed to respect LDFLAGS, we will
probably find yet more packages that are problematic with --as-needed.
jer
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-27 14:39 ` [gentoo-dev] " Jeroen Roovers
@ 2010-07-27 15:53 ` Maciej Mrozowski
2010-07-27 16:41 ` "Paweł Hajdan, Jr."
2010-07-28 5:45 ` [gentoo-dev] " Ryan Hill
2 siblings, 0 replies; 24+ messages in thread
From: Maciej Mrozowski @ 2010-07-27 15:53 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: Text/Plain, Size: 489 bytes --]
On Tuesday 27 of July 2010 16:39:01 Jeroen Roovers wrote:
> On Mon, 26 Jul
2010 22:29:06 +0200
> Tomáš Chvátal <scarabeus@gentoo.org> wrote:
>
> Is it
time yet? I still find a lot of packages that do not even respect
> LDFLAGS
yet - when all these get fixed to respect LDFLAGS, we will
> probably find
yet more packages that are problematic with --as-needed.
A few broken apps
don't overweight the benefit of having --as-needed enabled by default.
--
regards
MM
[-- Attachment #2: This is a digitally signed message part. --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-27 14:39 ` [gentoo-dev] " Jeroen Roovers
2010-07-27 15:53 ` Maciej Mrozowski
@ 2010-07-27 16:41 ` "Paweł Hajdan, Jr."
2010-07-27 16:51 ` Jeroen Roovers
2010-07-28 5:45 ` [gentoo-dev] " Ryan Hill
2 siblings, 1 reply; 24+ messages in thread
From: "Paweł Hajdan, Jr." @ 2010-07-27 16:41 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 531 bytes --]
On 7/27/10 7:39 AM, Jeroen Roovers wrote:
> On Mon, 26 Jul 2010 22:29:06 +0200
> Tomáš Chvátal <scarabeus@gentoo.org> wrote:
>
> Is it time yet? I still find a lot of packages that do not even respect
> LDFLAGS yet - when all these get fixed to respect LDFLAGS, we will
> probably find yet more packages that are problematic with --as-needed.
I think that the arch teams doing the stabilizations are a good safety
net against that. And having --as-needed by default makes those issues
easier to detect.
Paweł
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 195 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-27 16:41 ` "Paweł Hajdan, Jr."
@ 2010-07-27 16:51 ` Jeroen Roovers
2010-07-27 17:32 ` Petteri Räty
2010-07-28 3:36 ` [gentoo-dev] " Jeremy Olexa
0 siblings, 2 replies; 24+ messages in thread
From: Jeroen Roovers @ 2010-07-27 16:51 UTC (permalink / raw
To: gentoo-dev
On Tue, 27 Jul 2010 09:41:36 -0700
"Paweł Hajdan, Jr." <phajdan.jr@gentoo.org> wrote:
> On 7/27/10 7:39 AM, Jeroen Roovers wrote:
> > On Mon, 26 Jul 2010 22:29:06 +0200
> > Tomáš Chvátal <scarabeus@gentoo.org> wrote:
> >
> > Is it time yet? I still find a lot of packages that do not even
> > respect LDFLAGS yet - when all these get fixed to respect LDFLAGS,
> > we will probably find yet more packages that are problematic with
> > --as-needed.
>
> I think that the arch teams doing the stabilizations are a good safety
> net against that. And having --as-needed by default makes those issues
> easier to detect.
Not entirely true, because as I tried to explain, a package needs to
first respect our LDFLAGS to respect our --as-needed in the second
place. Since the QA trigger in portage is based on --hash-style=gnu,
you'd have to make that the default as well to find a package
ignoring LDFLAGS...
jer
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-27 16:51 ` Jeroen Roovers
@ 2010-07-27 17:32 ` Petteri Räty
2010-07-28 0:04 ` [gentoo-dev] " Duncan
2010-07-28 3:36 ` [gentoo-dev] " Jeremy Olexa
1 sibling, 1 reply; 24+ messages in thread
From: Petteri Räty @ 2010-07-27 17:32 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 1109 bytes --]
On 07/27/2010 07:51 PM, Jeroen Roovers wrote:
> On Tue, 27 Jul 2010 09:41:36 -0700
> "Paweł Hajdan, Jr." <phajdan.jr@gentoo.org> wrote:
>
>> On 7/27/10 7:39 AM, Jeroen Roovers wrote:
>>> On Mon, 26 Jul 2010 22:29:06 +0200
>>> Tomáš Chvátal <scarabeus@gentoo.org> wrote:
>>>
>>> Is it time yet? I still find a lot of packages that do not even
>>> respect LDFLAGS yet - when all these get fixed to respect LDFLAGS,
>>> we will probably find yet more packages that are problematic with
>>> --as-needed.
>>
>> I think that the arch teams doing the stabilizations are a good safety
>> net against that. And having --as-needed by default makes those issues
>> easier to detect.
>
> Not entirely true, because as I tried to explain, a package needs to
> first respect our LDFLAGS to respect our --as-needed in the second
> place. Since the QA trigger in portage is based on --hash-style=gnu,
> you'd have to make that the default as well to find a package
> ignoring LDFLAGS...
>
But adding --as-needed by default does not (now) break packages not
respecting LDFLAGS.
Regards,
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 900 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
2010-07-27 17:32 ` Petteri Räty
@ 2010-07-28 0:04 ` Duncan
0 siblings, 0 replies; 24+ messages in thread
From: Duncan @ 2010-07-28 0:04 UTC (permalink / raw
To: gentoo-dev
Petteri Räty posted on Tue, 27 Jul 2010 20:32:07 +0300 as excerpted:
>>> On 7/27/10 7:39 AM, Jeroen Roovers wrote:
>>>>
>>>> Is it time yet? I still find a lot of packages that do not even
>>>> respect LDFLAGS yet - when all these get fixed to respect LDFLAGS, we
>>>> will probably find yet more packages that are problematic with
>>>> --as-needed.
> But adding --as-needed by default does not (now) break packages not
> respecting LDFLAGS.
This is, I think, the main point. Ignoring LDFLAGS doesn't need to delay
a change in the default LDFLAGS because they aren't seen in that case
anyway so the package is no more broken than before. Both ignoring the
flags entirely and breaking with this specific flag are bugs, but they're
separate bugs and can be treated separately.
--
Duncan - List replies preferred. No HTML msgs.
"Every nonfree program has a lord, a master --
and if you use the program, he is your master." Richard Stallman
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-27 16:51 ` Jeroen Roovers
2010-07-27 17:32 ` Petteri Räty
@ 2010-07-28 3:36 ` Jeremy Olexa
2010-07-28 5:26 ` [gentoo-dev] " Ryan Hill
2010-07-28 7:43 ` [gentoo-dev] " Samuli Suominen
1 sibling, 2 replies; 24+ messages in thread
From: Jeremy Olexa @ 2010-07-28 3:36 UTC (permalink / raw
To: gentoo-dev
On 07/27/2010 11:51 AM, Jeroen Roovers wrote:
> Since the QA trigger in portage is based on --hash-style=gnu,
> you'd have to make that the default as well to find a package
> ignoring LDFLAGS...
Put that in the dev profile(s) then. :)
-Jeremy
^ permalink raw reply [flat|nested] 24+ messages in thread
* [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
2010-07-28 3:36 ` [gentoo-dev] " Jeremy Olexa
@ 2010-07-28 5:26 ` Ryan Hill
2010-07-28 7:02 ` Jonathan Callen
2010-07-28 7:43 ` [gentoo-dev] " Samuli Suominen
1 sibling, 1 reply; 24+ messages in thread
From: Ryan Hill @ 2010-07-28 5:26 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 652 bytes --]
On Tue, 27 Jul 2010 22:36:17 -0500
Jeremy Olexa <darkside@gentoo.org> wrote:
> On 07/27/2010 11:51 AM, Jeroen Roovers wrote:
> > Since the QA trigger in portage is based on --hash-style=gnu,
> > you'd have to make that the default as well to find a package
> > ignoring LDFLAGS...
>
> Put that in the dev profile(s) then. :)
We default to --hash-style=both everywhere which already covers it.
--
fonts, gcc-porting, and it's all by design
toolchain, wxwidgets to keep us from losing our minds
@ gentoo.org EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
2010-07-28 5:26 ` [gentoo-dev] " Ryan Hill
@ 2010-07-28 7:02 ` Jonathan Callen
2010-07-31 4:18 ` Ryan Hill
0 siblings, 1 reply; 24+ messages in thread
From: Jonathan Callen @ 2010-07-28 7:02 UTC (permalink / raw
To: gentoo-dev
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
On 07/28/2010 01:26 AM, Ryan Hill wrote:
> On Tue, 27 Jul 2010 22:36:17 -0500
> Jeremy Olexa wrote:
>
>> On 07/27/2010 11:51 AM, Jeroen Roovers wrote:
>>> Since the QA trigger in portage is based on --hash-style=gnu,
>>> you'd have to make that the default as well to find a package
>>> ignoring LDFLAGS...
>>
>> Put that in the dev profile(s) then. :)
>
> We default to --hash-style=both everywhere which already covers it.
No it does not, for two reasons: one, the portage QA check is run only
if LDFLAGS actually contains the string "--hash-style=gnu" and two, the
portage QA check actually checks to see if the section (.hash) that
would be output by --hash-style=sysv or --hash-style=both is present. If
it is present, then the check fails, as --hash-style=gnu does not output
a .hash section.
- --
Jonathan Callen
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iQIcBAEBCAAGBQJMT9YLAAoJELHSF2kinlg4s0UP/j8D1DRdZVo3utQv4IslapBM
LiFTVZzEYXhwVri50c5JEzfxUaQpgPVFcCCM373H7vi47Dat3bfu/AycPcL3IRty
JsSAc5sTO2Y/u3SDoQ09gTgbnrd5T5OsKd2hR+Q9nnUG3pkdUBThnd32KXTGeoJ1
RAvHnoJ71tFwy7NrGFIXCiHtC6tFyZ4fszf7QrpY/cBsoGCWn608f2jNyfV9sSRw
sLCpHPhF/wjILVgHG8uIWZNdBpxlx3pjheSbMJQX+jgNT2S4jiUidbVkw7VaoGTJ
VuxxJfNE6H8ZRrr0GsirRfoGZWAiTLebONlsQ5kbOaf1ZhiP5Ojs4Qz2y0etn5vO
5lQLMhZU9nGQa8AaAdesVvqFMrCQalEavgZC8B6cRoVIlMhOhVLNhdlK3L7Q8EKE
plE3D918wAcKy+lSQd4rXu43PJiwmuoz1BYuipaBbkIKGczkLha0gx1USYf0zlT9
tlUxd+sUDIfbhkRFXs/OL5onIf0fAJipR8E9HgdbPafuakoPjB/IBr/xSVcX2fRe
zzoPVIqW2yXSK+w2UvJLTrvba68+pVgDHlvWlKUqs/C7v512WOUz1gpwxsVny+Ay
PrcqFSPwGkLO+f2TAD9afNd/z1b0I4ubswU8n0z5Mu1vQXv3Em+lxNtfGqwvD8f/
QO4BsRekzin4Qzh7jUBV
=k1L/
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 24+ messages in thread
* [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
2010-07-28 7:02 ` Jonathan Callen
@ 2010-07-31 4:18 ` Ryan Hill
0 siblings, 0 replies; 24+ messages in thread
From: Ryan Hill @ 2010-07-31 4:18 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 880 bytes --]
On Wed, 28 Jul 2010 03:02:35 -0400
Jonathan Callen <abcd@gentoo.org> wrote:
> On 07/28/2010 01:26 AM, Ryan Hill wrote:
> > We default to --hash-style=both everywhere which already covers it.
>
> No it does not, for two reasons: one, the portage QA check is run only
> if LDFLAGS actually contains the string "--hash-style=gnu" and two, the
> portage QA check actually checks to see if the section (.hash) that
> would be output by --hash-style=sysv or --hash-style=both is present. If
> it is present, then the check fails, as --hash-style=gnu does not output
> a .hash section.
My mistake. Thanks for the correction.
--
fonts, gcc-porting, and it's all by design
toolchain, wxwidgets to keep us from losing our minds
@ gentoo.org EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
* Re: [gentoo-dev] News item announcing as-needed (glep 42 stuff)
2010-07-28 3:36 ` [gentoo-dev] " Jeremy Olexa
2010-07-28 5:26 ` [gentoo-dev] " Ryan Hill
@ 2010-07-28 7:43 ` Samuli Suominen
1 sibling, 0 replies; 24+ messages in thread
From: Samuli Suominen @ 2010-07-28 7:43 UTC (permalink / raw
To: gentoo-dev
On 07/28/2010 06:36 AM, Jeremy Olexa wrote:
> On 07/27/2010 11:51 AM, Jeroen Roovers wrote:
>> Since the QA trigger in portage is based on --hash-style=gnu,
>> you'd have to make that the default as well to find a package
>> ignoring LDFLAGS...
>
> Put that in the dev profile(s) then. :)
> -Jeremy
>
This has been discussed before:
http://www.mail-archive.com/gentoo-dev@lists.gentoo.org/msg38251.html
^ permalink raw reply [flat|nested] 24+ messages in thread
* [gentoo-dev] Re: News item announcing as-needed (glep 42 stuff)
2010-07-27 14:39 ` [gentoo-dev] " Jeroen Roovers
2010-07-27 15:53 ` Maciej Mrozowski
2010-07-27 16:41 ` "Paweł Hajdan, Jr."
@ 2010-07-28 5:45 ` Ryan Hill
2 siblings, 0 replies; 24+ messages in thread
From: Ryan Hill @ 2010-07-28 5:45 UTC (permalink / raw
To: gentoo-dev
[-- Attachment #1: Type: text/plain, Size: 843 bytes --]
On Tue, 27 Jul 2010 16:39:01 +0200
Jeroen Roovers <jer@gentoo.org> wrote:
> On Mon, 26 Jul 2010 22:29:06 +0200
> Tomáš Chvátal <scarabeus@gentoo.org> wrote:
>
> Is it time yet? I still find a lot of packages that do not even respect
> LDFLAGS yet - when all these get fixed to respect LDFLAGS, we will
> probably find yet more packages that are problematic with --as-needed.
When you fix those packages to respect LDFLAGS you'll already hit any
as-needed issues that might exist since it's on by default in the dev
profiles. Enabling it in the user profiles doesn't change that.
--
fonts, gcc-porting, and it's all by design
toolchain, wxwidgets to keep us from losing our minds
@ gentoo.org EFFD 380E 047A 4B51 D2BD C64F 8AA8 8346 F9A4 0662
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 24+ messages in thread
end of thread, other threads:[~2010-07-31 4:15 UTC | newest]
Thread overview: 24+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-26 20:29 [gentoo-dev] News item announcing as-needed (glep 42 stuff) Tomáš Chvátal
2010-07-26 20:34 ` Fabian Groffen
2010-07-26 20:44 ` "Paweł Hajdan, Jr."
2010-07-27 0:27 ` Joshua Saddler
2010-07-27 8:23 ` [gentoo-dev] " Duncan
2010-07-26 22:09 ` [gentoo-dev] " Alex Alexander
2010-07-26 22:41 ` Sebastian Pipping
2010-07-27 3:38 ` [gentoo-dev] " Ryan Hill
2010-07-27 8:36 ` Tomáš Chvátal
2010-07-27 13:55 ` "Paweł Hajdan, Jr."
2010-07-27 17:37 ` Róbert Čerňanský
2010-07-27 17:42 ` Samuli Suominen
2010-07-27 14:39 ` [gentoo-dev] " Jeroen Roovers
2010-07-27 15:53 ` Maciej Mrozowski
2010-07-27 16:41 ` "Paweł Hajdan, Jr."
2010-07-27 16:51 ` Jeroen Roovers
2010-07-27 17:32 ` Petteri Räty
2010-07-28 0:04 ` [gentoo-dev] " Duncan
2010-07-28 3:36 ` [gentoo-dev] " Jeremy Olexa
2010-07-28 5:26 ` [gentoo-dev] " Ryan Hill
2010-07-28 7:02 ` Jonathan Callen
2010-07-31 4:18 ` Ryan Hill
2010-07-28 7:43 ` [gentoo-dev] " Samuli Suominen
2010-07-28 5:45 ` [gentoo-dev] " Ryan Hill
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox