Re: [gentoo-dev] Gentoo's plan to remove .la files: eutils function

2010-10-31 Thread Christopher Schwan
Hi,

I followed this discussion quietly until now - I wonder why no one (?) has 
mentioned the autotool-utils.eclass which is dedicated for this purpose (la-
file removal, static-libs USE-flag, etc), I think. This eclass also provides a 
function remove_libtool_files which does what delete_libtool_archives would 
do, but it also checks for situation where the files would be needed.

On Sunday 31 October 2010 05:28:42 Jorge Manuel B. S. Vicetto wrote:
 Hi.
 
 As outlined in the global email about this issue, this email is to start
 a thread about the eutils function. Please reply to this thread if you
 have any comments about this point.
 
 1. Add a function to eutils to deal with the removal of the .la files.
 
 delete_libtool_archives() { find ${@:$D} -name '*.la' -delete }
 
 That function was suggested by Diego, but Arfrever has argued that we
 should replace : with - as '${@:$D} expands to a subarray containing
 elements starting with element with index $D (where element 0 is $0)'.
 The point in having this function in eutils is to ensure we use a
 consistent way to address the .la files. This will also make it much
 easier to adapt or review this function if needed.

Cheers,

Christopher



Re: [gentoo-dev] Gentoo's plan to remove .la files

2010-10-31 Thread Pacho Ramos
El dom, 31-10-2010 a las 03:25 -0100, Jorge Manuel B. S. Vicetto
escribió:
 3. Add a page to the QA project space (unless they're not interested)
 about la files and how to deal with them
 
 I think we can ask Diego to use large parts of his blog posts and charts
 about .la files[1], [2], [3], [4] as a source for the document. We can
 also add some basic info from the autobook[5], [6]. The goal would be to
 have a document similar to our own --as-needed guide [7] and to other
 distributions[8], [9].
 Anyone wishes to volunteer for this task?
 QA would such a document be welcomed in your project space?

Hello

I rely a lot on devmanual, then, I think would be interesting to create
a section on it telling us when should we remove .la files and how to do
it properly.

Thanks a lot :-)


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] Gentoo's plan to remove .la files: QA document

2010-10-31 Thread Pacho Ramos
El dom, 31-10-2010 a las 03:32 -0100, Jorge Manuel B. S. Vicetto
escribió:
 -BEGIN PGP SIGNED MESSAGE-
 Hash: SHA1
 
 Hi.
 
 As outlined in the global email about this issue, this email is to start
 a thread about the QA document. Please reply to this thread if you
 have any comments about this point.
 
 
 3. Add a page to the QA project space (unless they're not interested)
 about la files and how to deal with them
 
 I think we can ask Diego to use large parts of his blog posts and charts
 about .la files[1], [2], [3], [4] as a source for the document. We can
 also add some basic info from the autobook[5], [6]. The goal would be to
 have a document similar to our own --as-needed guide [7] and to other
 distributions[8], [9].
 Anyone wishes to volunteer for this task?
 QA would such a document be welcomed in your project space?
 
 
  [1] - http://blog.flameeyes.eu/2008/04/14/whatabout-those-la-files
  [2] -
 http://blog.flameeyes.eu/2008/07/02/again-about-la-files-or-why-should-they-be-killed-off-sooner-rather-than-later
  [3] -
 http://blog.flameeyes.eu/2009/07/06/identifying-pointless-la-files-for-plugins
  [4] -
 http://blog.flameeyes.eu/2009/09/28/removing-la-files-for-dum-w-uncertain-people
  [5] - http://sources.redhat.com/autobook/autobook/autobook_11.html#SEC11
  [6] - http://sources.redhat.com/autobook/autobook/autobook_68.html#SEC68
  [7] - http://www.gentoo.org/proj/en/qa/asneeded.xml
  [8] - http://wiki.mandriva.com/en/Libtool_archives#shared_build
  [9] - http://wiki.mandriva.com/en/Overlinking
 
 
 - -- 
 Regards,

I rely a lot on devmanual, then, I think would be interesting to create
a section on it telling us when should we remove .la files and how to do
it properly.

Thanks a lot :-)


signature.asc
Description: This is a digitally signed message part


Re: [gentoo-dev] Gentoo's plan to remove .la files: eutils function

2010-10-31 Thread Thomas Sachau
Am 31.10.2010 09:28, schrieb Christopher Schwan:
 Hi,
 
 I followed this discussion quietly until now - I wonder why no one (?) has 
 mentioned the autotool-utils.eclass which is dedicated for this purpose (la-
 file removal, static-libs USE-flag, etc), I think. This eclass also provides 
 a 
 function remove_libtool_files which does what delete_libtool_archives 
 would 
 do, but it also checks for situation where the files would be needed.
 
 On Sunday 31 October 2010 05:28:42 Jorge Manuel B. S. Vicetto wrote:
 Hi.

 As outlined in the global email about this issue, this email is to start
 a thread about the eutils function. Please reply to this thread if you
 have any comments about this point.

 1. Add a function to eutils to deal with the removal of the .la files.

 delete_libtool_archives() { find ${@:$D} -name '*.la' -delete }

 That function was suggested by Diego, but Arfrever has argued that we
 should replace : with - as '${@:$D} expands to a subarray containing
 elements starting with element with index $D (where element 0 is $0)'.
 The point in having this function in eutils is to ensure we use a
 consistent way to address the .la files. This will also make it much
 easier to adapt or review this function if needed.
 
 Cheers,
 
 Christopher
 
 

Please dont top post, it makes it harder to read threads.

That suggested line will remove all .la files blindly, but there are 2 types of 
.la files:
-those, which are only used for linking/static files
-those, which are used at runtime, e.g. for plugins

The line should exclude those .la files, which contain shouldnotlinkto=yes or 
directly use the
autotools-utils eclass as suggested, since it already contains this 
functionality together with a
nice USE flag (static-libs) for it.


-- 
Thomas Sachau

Gentoo Linux Developer



signature.asc
Description: OpenPGP digital signature


[gentoo-dev] Gentoo's plan to remove .la files: eutils function

2010-10-30 Thread Jorge Manuel B. S. Vicetto
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi.

As outlined in the global email about this issue, this email is to start
a thread about the eutils function. Please reply to this thread if you
have any comments about this point.

1. Add a function to eutils to deal with the removal of the .la files.

delete_libtool_archives() { find ${@:$D} -name '*.la' -delete }

That function was suggested by Diego, but Arfrever has argued that we
should replace : with - as '${@:$D} expands to a subarray containing
elements starting with element with index $D (where element 0 is $0)'.
The point in having this function in eutils is to ensure we use a
consistent way to address the .la files. This will also make it much
easier to adapt or review this function if needed.


- -- 
Regards,

Jorge Vicetto (jmbsvicetto) - jmbsvicetto at gentoo dot org
Gentoo- forums / Userrel / Devrel / KDE / Elections / RelEng
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMzPB6AAoJEC8ZTXQF1qEPYDoP/jUmq4pu7xK3rWd8TiK372Sn
uZ/pRiwUgZsOOTV8nvVwA5KjliHPqC0nMCxrZWrWEW6v9+trwPWQFCjQ99AGhgM3
EaOZnFEdTR7w7ybOfSYllGUR/iaquvwg9jUx+QZx4g5Qu6WF8ZkHyHGCYtRJqfQY
+uJyIXbY+FyIW79ss3L7MYaKgdLk8es4AbvAViH9USf6H8oqJeeHoIi60ebdrNcj
Z4vGB5r3pj38lOQVC6c1XxV9xqMsKCCIqx+ftr7gZBrb+82ddCSmRy81gqCm2oo/
9AVBTksbgtFsXJt3GMVzwFtN6rqGrY6iMRYniAr2zb2JdBjQNVzlXDg73tKc0HuX
rLmcK/W4mqGsrOM+Teo/EfPUGeVGrm7xe4bT1wxP4/7/vqRZKOZJuH7zsyAzbFGX
3V4PWArdFxXmTTG8S3++T4BQQcSQ883zbDpLLNoQo7Y860VIORTSWfZIJuyCaLqY
PBsbf1pvCcBB/fw+68SK5cBnDPPhTD6Qpllq4x+2L58FS3GCY8GfHG9JQo7jBd1q
qlcKx2L8aD+/zmHD7RgzIEUYLFPdwXCyM55sRyQcclrxPO8SNxmDMu2LFB0UhEbh
FFBrSMlzmXt9l5WrbIUrzmALLgj0YdhYbbPNdrFXoyb2gfgqeQtNHHu8RyljPen/
/qgNo/sOuioLkrzAFNM+
=bYty
-END PGP SIGNATURE-



[gentoo-dev] Gentoo's plan to remove .la files: QA document

2010-10-30 Thread Jorge Manuel B. S. Vicetto
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi.

As outlined in the global email about this issue, this email is to start
a thread about the QA document. Please reply to this thread if you
have any comments about this point.


3. Add a page to the QA project space (unless they're not interested)
about la files and how to deal with them

I think we can ask Diego to use large parts of his blog posts and charts
about .la files[1], [2], [3], [4] as a source for the document. We can
also add some basic info from the autobook[5], [6]. The goal would be to
have a document similar to our own --as-needed guide [7] and to other
distributions[8], [9].
Anyone wishes to volunteer for this task?
QA would such a document be welcomed in your project space?


 [1] - http://blog.flameeyes.eu/2008/04/14/whatabout-those-la-files
 [2] -
http://blog.flameeyes.eu/2008/07/02/again-about-la-files-or-why-should-they-be-killed-off-sooner-rather-than-later
 [3] -
http://blog.flameeyes.eu/2009/07/06/identifying-pointless-la-files-for-plugins
 [4] -
http://blog.flameeyes.eu/2009/09/28/removing-la-files-for-dum-w-uncertain-people
 [5] - http://sources.redhat.com/autobook/autobook/autobook_11.html#SEC11
 [6] - http://sources.redhat.com/autobook/autobook/autobook_68.html#SEC68
 [7] - http://www.gentoo.org/proj/en/qa/asneeded.xml
 [8] - http://wiki.mandriva.com/en/Libtool_archives#shared_build
 [9] - http://wiki.mandriva.com/en/Overlinking


- -- 
Regards,

Jorge Vicetto (jmbsvicetto) - jmbsvicetto at gentoo dot org
Gentoo- forums / Userrel / Devrel / KDE / Elections / RelEng
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMzPFhAAoJEC8ZTXQF1qEPw84P/i8tpOguja80XDIpB68ewgcU
O2lRYlvVA8LRPbcl2pBXnefHH4BtO2h1AHhjlOBO3upu/RGdP7IFR0Q5T8DLKr3O
UZLoK4oGxYct053Ehp1WP2zhtQaRcDUcBzyyPEr7YdVl9oTud1dHplcojx/jas3r
H3aXhBkMVE1s2PUXUfrLMz5WqAlSpDxkk+LVpWe6cvMjsZ2BqclYNXGKcKjldx0l
GzzJO+nSyeFQ/Udn4dEO60ORhX6/2G9cGnBCWWDVAuTuht1+i6M8LxtJwVYlOg+c
JQ1P9PFq6zLgNGOE122Bgzox+7wMPwsh+ja54mg6XK2YjeQ1jOGTLAitwwqL9BOk
isCS0VTkzBhvJcOqzatVMGt/iDBa8zXOItl1nX3PQPnw07SsxqGGsZJWj8+gf0o0
heY9tbFnSMvMwVd7gKSpq80NVZ4mSlfZXKWkUWgatg3OLXF+A7sJhAxA16K9TU9x
BaNADGfizC33z4JRLUNrtcocNoVFQWr6/OGybAkAn2JKGHEOuvhmupQET0b0qf18
qsG6unuv7DX93uCNkKxL+9qhghO8E3I1BWlecTXhdPJiD0cisxgYnoFrZ/F9aHbl
FlYytKUH3bCiLuKy1RmkAG+YRjH4vYyIe9tTM+brBvU/NAJpbN4b36oUmOmj8Kdv
JmT/C5sBOes+5QEV3X49
=czVz
-END PGP SIGNATURE-



[gentoo-dev] Gentoo's plan to remove .la files: PM support

2010-10-30 Thread Jorge Manuel B. S. Vicetto
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi.

As outlined in the global email about this issue, this email is to start
a thread about the PM support. Please reply to this thread if you
have any comments about this point.


5. Get portage-2.1.9* marked stable.

As this portage version will fix the contents of the .la files when
installing them, it will prevent the trouble caused by the hard-coded
lib references - for all the .la files that will still need to be installed.
One issue that remains open to me, is whether there will be any control
over this feature. I was told the plan is to have it dependent on
FEATURES, which to me doesn't make much sense.


- -- 
Regards,

Jorge Vicetto (jmbsvicetto) - jmbsvicetto at gentoo dot org
Gentoo- forums / Userrel / Devrel / KDE / Elections / RelEng
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMzPInAAoJEC8ZTXQF1qEPW7gQAIgOk/MHmum9YEJ07zBpKfiq
04MAQIEZxBnYl5XUFR8Hfeuht2VEPPhDubXJK6IzOjucjwcqdTrZeY7i6Ia5c6WG
R2I1mqW+Z0nW21Bo0KAB1vfGeopDHLKzMyrJj55KxemgAalSwy+ot49/JH2Mdy8R
jcNHGXBLvT9jGqIqu8P2FZvymiBn5IlCgntYxFUEHeM8TGnSXFRtKrryw2dLhJBw
XKe30XmeclMYNjPNH/nCsqHNPGo0eIKU5e/c8Sqm37KGZ8JvoOQpMwxyFtMxmfjp
+tUhciHEwjOnc3nNfckxjBQsVrLVQc6d9+bZcYhgfB2hF3riM19H1/EQLqkdQvBQ
A4DyZKQlJT1BKRgWFxs/54t/sgDBg+74otVy0qiuXG9SOdvyytFbiclx8o7wACYc
txQBpU/u46Iw+3QhJ01QFZkZZwG2kW9xCBCuZQC21AFln34urNnSy4CaHfHpNt2Y
qnle/CZVSd3ZjmbPSfA/euSQ97l3LB9xlHt6Jj6Te15bu9hAW38+Vx/2zlY86L0e
lvb/wWohrfuh4JzpTU6xOf5tSuVYL5AlXtZusXjUkpSdiNrT/k9clTbP6iItz4NN
v43RCoVo/AjwgD/h/wgntR0AYt8ggrirvZjw6h0C5ngjM1h0PJJr5UwmEynW5TdG
dkBY0DVCT7xS7VGWSQrO
=9Tws
-END PGP SIGNATURE-



[gentoo-dev] Gentoo's plan to remove .la files: removing the files and profit

2010-10-30 Thread Jorge Manuel B. S. Vicetto
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi.

As outlined in the global email about this issue, this email is to start
a thread about removing the files and profit. Please reply to this
thread if you have any comments about this point.


6. allow maintainers to work on .la files removal as they see fit

After we provide maintainers consistent tools to remove .la files,
create some good documentation about this, get a stable version of
portage that helps addressing the issue for newly installed packages
and warn users, maintainers are free to work on this as they can.


- -- 
Regards,

Jorge Vicetto (jmbsvicetto) - jmbsvicetto at gentoo dot org
Gentoo- forums / Userrel / Devrel / KDE / Elections / RelEng
-BEGIN PGP SIGNATURE-
Version: GnuPG v2.0.16 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQIcBAEBAgAGBQJMzPKmAAoJEC8ZTXQF1qEPAC0P/38Q4kE+Slixt3uKgUdW29tB
8fpawmBadjU74frcvZsM4F4Ufix8fYFJsJUfMPCi9ugcWSkEvVNRkwe7KJEEV8FA
t846X8LbokuoL2oLM6i1nVS0VkH+XhAx+1emE36x+OxH2GgAXNzWBJRquEsNMX8v
vs2dpkgbvFWh7YbhEkFhfInlyw2o6qMLEtCjp2xRErJ+dAhpijwJUtkkoBJyqPbh
UnbhFMeF0TSWUgnKgKiMdNT12BMLyd0NEI6+FXZXd1wB9ZHUiEXWKoCXQklr9wK/
XjzKwEPppf2J2HjgeTIERUkyydEmmBVUZBBdK2XGgmfPVCOa9rUCeV/waEbvwwua
6DV+fZYn4FTSP4cN5iq4wvr/ebu1dpenxijmTDKl/ASZ1rfv9YVuwiFcjzfwS/MB
NNrVV0Wqso+znha1Raf4RZuwlXvG0MbA0DG4QedqQ/b0Iwm8FrG26C4nvPlPGU2y
bUkg4P/f5PLu5I8iX7MpU8UBjH7gB/I7CxpRpYhZXr0jAT3SUYexQxnIYPeahOQo
oAuQCTWDZ1py41zc18Q8mBoqoloVvxXLeLc0uZvoJOlnIAPLMdfSOSRJAjLEMIfM
Clszxd3Z6VKTMqFcz3NrJCWyF6wCZplR5KkJ6x3AMA0yRGyTZ2eRMX/M8TG2pY10
bRz4mLBevvY+8YABPcPC
=wGyS
-END PGP SIGNATURE-