* [RFC] .la files cleanup
@ 2011-10-03 10:58 Dmitry Eremin-Solenikov
2011-10-03 11:32 ` Richard Purdie
2011-10-03 14:55 ` Phil Blundell
0 siblings, 2 replies; 6+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-10-03 10:58 UTC (permalink / raw)
To: openembedded-core
Proposal: extend some bbclass with a task to remove unused .la files
Rationale: There are lots of recipes, which install tons of .la files
(thanks libtool),
but then do not ship them (correctly as most of them are unused in
real systems).
My proposal would be to include a special task or a
do_install_append() part that
will remove specified .la files. (like ${libdir}/xorg/modules/*/.la,
${libdir}/matchbox-panel/*.la, etc.). I see this usually done in
do_install or in special do_install_append
parts, but I think it would be better to handle this globally.
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [RFC] .la files cleanup
2011-10-03 10:58 [RFC] .la files cleanup Dmitry Eremin-Solenikov
@ 2011-10-03 11:32 ` Richard Purdie
2011-10-03 14:55 ` Phil Blundell
1 sibling, 0 replies; 6+ messages in thread
From: Richard Purdie @ 2011-10-03 11:32 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer; +Cc: openembedded-core
On Mon, 2011-10-03 at 14:58 +0400, Dmitry Eremin-Solenikov wrote:
> Proposal: extend some bbclass with a task to remove unused .la files
>
> Rationale: There are lots of recipes, which install tons of .la files
> (thanks libtool),
> but then do not ship them (correctly as most of them are unused in
> real systems).
> My proposal would be to include a special task or a
> do_install_append() part that
> will remove specified .la files. (like ${libdir}/xorg/modules/*/.la,
> ${libdir}/matchbox-panel/*.la, etc.). I see this usually done in
> do_install or in special do_install_append
> parts, but I think it would be better to handle this globally.
I think the simple append to the recipes concerned is just as simple as
any addition to core classes to try and do this generically...
Cheers,
Richard
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [RFC] .la files cleanup
2011-10-03 10:58 [RFC] .la files cleanup Dmitry Eremin-Solenikov
2011-10-03 11:32 ` Richard Purdie
@ 2011-10-03 14:55 ` Phil Blundell
2011-10-03 17:06 ` Dmitry Eremin-Solenikov
2011-10-03 20:28 ` Khem Raj
1 sibling, 2 replies; 6+ messages in thread
From: Phil Blundell @ 2011-10-03 14:55 UTC (permalink / raw)
To: Patches and discussions about the oe-core layer
On Mon, 2011-10-03 at 14:58 +0400, Dmitry Eremin-Solenikov wrote:
> My proposal would be to include a special task or a
> do_install_append() part that
> will remove specified .la files. (like ${libdir}/xorg/modules/*/.la,
> ${libdir}/matchbox-panel/*.la, etc.). I see this usually done in
> do_install or in special do_install_append
> parts, but I think it would be better to handle this globally.
I guess the ideal solution would be to find a way to stop libtool from
installing these things in the first place. It isn't totally obvious to
me that the .la files are a net benefit even for real shared libraries,
and for plugins I think they are probably a net loss in most/all cases.
When this issue last came up it seemed that Richard's preferred fix was
to just ship the .la files in FILES_${PN}-dev, and I guess that approach
does at least have the merit of simplicity. See:
http://lists.linuxtogo.org/pipermail/openembedded-core/2011-July/005533.html
p.
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [RFC] .la files cleanup
2011-10-03 14:55 ` Phil Blundell
@ 2011-10-03 17:06 ` Dmitry Eremin-Solenikov
2011-10-03 18:34 ` Otavio Salvador
2011-10-03 20:28 ` Khem Raj
1 sibling, 1 reply; 6+ messages in thread
From: Dmitry Eremin-Solenikov @ 2011-10-03 17:06 UTC (permalink / raw)
To: openembedded-core
On 10/03/2011 06:55 PM, Phil Blundell wrote:
> On Mon, 2011-10-03 at 14:58 +0400, Dmitry Eremin-Solenikov wrote:
>> My proposal would be to include a special task or a
>> do_install_append() part that
>> will remove specified .la files. (like ${libdir}/xorg/modules/*/.la,
>> ${libdir}/matchbox-panel/*.la, etc.). I see this usually done in
>> do_install or in special do_install_append
>> parts, but I think it would be better to handle this globally.
>
> I guess the ideal solution would be to find a way to stop libtool from
> installing these things in the first place. It isn't totally obvious to
> me that the .la files are a net benefit even for real shared libraries,
> and for plugins I think they are probably a net loss in most/all cases.
>
> When this issue last came up it seemed that Richard's preferred fix was
> to just ship the .la files in FILES_${PN}-dev, and I guess that approach
> does at least have the merit of simplicity. See:
>
> http://lists.linuxtogo.org/pipermail/openembedded-core/2011-July/005533.html
I see... Then I'd drop some local patches dropping .la files and just
push them into -dev packages.
RP, is that suitable for you?
--
With best wishes
Dmitry
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: [RFC] .la files cleanup
2011-10-03 14:55 ` Phil Blundell
2011-10-03 17:06 ` Dmitry Eremin-Solenikov
@ 2011-10-03 20:28 ` Khem Raj
1 sibling, 0 replies; 6+ messages in thread
From: Khem Raj @ 2011-10-03 20:28 UTC (permalink / raw)
To: openembedded-core
On 10/3/2011 7:55 AM, Phil Blundell wrote:
> On Mon, 2011-10-03 at 14:58 +0400, Dmitry Eremin-Solenikov wrote:
>> My proposal would be to include a special task or a
>> do_install_append() part that
>> will remove specified .la files. (like ${libdir}/xorg/modules/*/.la,
>> ${libdir}/matchbox-panel/*.la, etc.). I see this usually done in
>> do_install or in special do_install_append
>> parts, but I think it would be better to handle this globally.
>
> I guess the ideal solution would be to find a way to stop libtool from
> installing these things in the first place. It isn't totally obvious to
> me that the .la files are a net benefit even for real shared libraries,
> and for plugins I think they are probably a net loss in most/all cases.
>
I also have this opinion. I think we need to experiment by not
installing .la at all and see what breaks. I would guess very little
> When this issue last came up it seemed that Richard's preferred fix was
> to just ship the .la files in FILES_${PN}-dev, and I guess that approach
> does at least have the merit of simplicity. See:
>
> http://lists.linuxtogo.org/pipermail/openembedded-core/2011-July/005533.html
>
> p.
>
>
>
> _______________________________________________
> Openembedded-core mailing list
> Openembedded-core@lists.openembedded.org
> http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2011-10-03 20:34 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-10-03 10:58 [RFC] .la files cleanup Dmitry Eremin-Solenikov
2011-10-03 11:32 ` Richard Purdie
2011-10-03 14:55 ` Phil Blundell
2011-10-03 17:06 ` Dmitry Eremin-Solenikov
2011-10-03 18:34 ` Otavio Salvador
2011-10-03 20:28 ` Khem Raj
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox