Gentoo Archives: gentoo-dev

From: "Michał Górny" <mgorny@g.o>
To: gentoo-dev@l.g.o
Subject: [gentoo-dev] Please don't use IUSE=static-libs unless really necessary
Date: Sun, 18 Sep 2011 20:54:26
Message-Id: 20110918225520.4a5e0630@pomiocik.lan
Hello all,

Considering that the 'magical IUSE check' in autotools-utils (and a few
other eclasses) is considered broken, and taking Diego's word [1],
I'd like to ask you to reconsider your uses of IUSE=static-libs.

To be honest, I'd like to remove that magic soon which means that all
ebuilds needing to adjust static lib build will need to pass
'$(use_enable static-libs static)' themselves. While at it, it may be
better to just drop the flag if no other package relies on it and no
user has ever requested the static build of that package.

It is possible that some of you have added IUSE=static-libs along with
autotools-utils just to have .la files removed. The removal algorithm
has been improved much lately, and it no longer requires that USE flag
-- .la files will be removed as well if there's no corresponding static
lib.

For the packages where static linking is required, I'd like to kindly
ask you to always include IUSE='+static' in the package itself,
IUSE='+static-libs' in the dependencies and let users disable that if
they really don't need it. And if you're using autotools-utils.eclass,
please add necessary $(use_enable)s in the ebuild -- this is more
portable and will make the IUSE magic removal less painful.

Thanks in advance.

[1]:http://blog.flameeyes.eu/2011/08/29/useless-flag-static-libs

-- 
Best regards,
Michał Górny

Attachments

File name MIME type
signature.asc application/pgp-signature

Replies