Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 261562 (built_with_use)

Summary: [TRACKER] built_with_use removal
Product: Gentoo Linux Reporter: Petteri Räty (RETIRED) <betelgeuse>
Component: [OLD] UnspecifiedAssignee: Gentoo Quality Assurance Team <qa>
Status: RESOLVED FIXED    
Severity: normal CC: betelgeuse, cla, tanderson
Priority: High Keywords: Tracker
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on: 164016, 214265, 239930, 260072, 261560, 261563, 261565, 261600, 261611, 261694, 261699, 261911, 264649, 268190, 268933, 270653, 271463, 272673, 272865, 275705, 281579, 281582, 281583, 281585, 281642, 281643, 281645, 281648, 281650, 282020, 282177, 282213, 282849, 283028, 283031, 283035, 283888, 284685, 284686, 284689, 284691, 284693, 284695, 285202, 285204, 285205, 285463, 285466, 285469, 285470, 285472, 285477, 285489, 285493, 285612, 285663, 285683, 285691, 285693, 285755, 285760, 286250, 286253, 286255, 286785, 286787, 286789, 286791, 286799, 286961, 287483, 287928, 287930, 287931, 287932, 288555, 302090, 302145, 305365, 307365, 308941, 328631, 551912, 582450, 607728, 610448, 610450, 610452, 610454, 610456, 610458, 610460, 623316    
Bug Blocks:    
Attachments: ebuilds using built_with_use via eclass-functions

Description Petteri Räty (RETIRED) gentoo-dev 2009-03-07 14:44:23 UTC
Let's file bugs needed to reduce built_with_use usage in the tree as depends of this one.
Comment 1 Petteri Räty (RETIRED) gentoo-dev 2009-03-07 14:51:27 UTC
dev-java is in order besides waiting the removal of a couple of old ebuilds 
Comment 2 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2009-03-07 14:53:38 UTC
I finished up app-text today.
Comment 3 Petteri Räty (RETIRED) gentoo-dev 2009-03-07 16:54:42 UTC
net-p2p in order when bug #260072 is in order
Comment 4 Petteri Räty (RETIRED) gentoo-dev 2009-03-07 20:17:24 UTC
app-portage done
Comment 5 Petteri Räty (RETIRED) gentoo-dev 2009-03-07 20:57:20 UTC
did sys-power and www-apps
Comment 6 Petteri Räty (RETIRED) gentoo-dev 2009-03-08 14:28:16 UTC
net-firewall in order
Comment 7 Petteri Räty (RETIRED) gentoo-dev 2009-03-08 14:36:35 UTC
net-dialup in order
Comment 8 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2009-03-08 18:46:47 UTC
net-im mostly in order, a few things need the built_with_use calls(lack of [foo(+)] deps.
Comment 9 Thomas Anderson (tanderson) (RETIRED) gentoo-dev 2009-03-08 19:56:09 UTC
x11-wm done
Comment 10 Dawid Węgliński (RETIRED) gentoo-dev 2009-03-08 22:31:49 UTC
net-analyzer mostly done.
Comment 11 Daniel Pielmeier gentoo-dev 2009-03-09 14:10:56 UTC
What about adding bug #261757 to the dependency list. python_tkinter_exists which is also called by distutils_python_tkinter is just another variant of built_with_use so it makes sense to remove them too.
Comment 12 Petteri Räty (RETIRED) gentoo-dev 2009-03-09 20:02:28 UTC
did www-apache
Comment 13 Daniel Pielmeier gentoo-dev 2009-03-16 21:34:14 UTC
There are also a few eclasses utilizing built_with_use that should be taken into account.

It follows a list with the eclasses and the number of ebuilds currently using that eclass. More interesting would be how much ebuilds are actually using functions from the eclass that invoke built_with_use to get sane usage numbers. Unfortunately I was not able to get that data.

confutils.eclass used by 145 Ebuilds
depend.apache.eclass used by 56 Ebuilds
depend.php.eclass used by 202 Ebuilds
eutils.eclass used by 11578 Ebuilds
games-mods.eclass used by 86 Ebuilds
gkrellm-plugin.eclass used by 54 Ebuilds
horde.eclass used by 181 Ebuilds
java-utils-2.eclass used by 3 Ebuilds
kde4-base.eclass used by 109 Ebuilds
kde.eclass used by 10513 Ebuilds
mysql.eclass used by 3076 Ebuilds
php-common-r1.eclass used by 0 Ebuilds
phpconfutils.eclass used by 29 Ebuilds
qt4-build.eclass used by 144 Ebuilds
qt4.eclass used by 1170 Ebuilds
subversion.eclass used by 681 Ebuilds
toolchain.eclass used by 3245 Ebuilds
wxwidgets.eclass used by 273 Ebuilds
x-modular.eclass used by 1504 Ebuilds
Comment 14 Daniel Pielmeier gentoo-dev 2009-03-16 21:46:07 UTC
Hm, I need to learn grep the following numbers should be more correct:

confutils.eclass used by 58 Ebuilds
depend.apache.eclass used by 56 Ebuilds
depend.php.eclass used by 202 Ebuilds
eutils.eclass used by 11309 Ebuilds
games-mods.eclass used by 58 Ebuilds
gkrellm-plugin.eclass used by 46 Ebuilds
horde.eclass used by 48 Ebuilds
java-utils-2.eclass used by 3 Ebuilds
kde4-base.eclass used by 47 Ebuilds
kde.eclass used by 1992 Ebuilds
mysql.eclass used by 667 Ebuilds
php-common-r1.eclass used by 0 Ebuilds
phpconfutils.eclass used by 3 Ebuilds
qt4-build.eclass used by 47 Ebuilds
qt4.eclass used by 332 Ebuilds
subversion.eclass used by 227 Ebuilds
toolchain.eclass used by 2963 Ebuilds
wxwidgets.eclass used by 126 Ebuilds
x-modular.eclass used by 665 Ebuilds
Comment 15 Daniel Pielmeier gentoo-dev 2009-03-18 21:05:13 UTC
Created attachment 185462 [details]
ebuilds using built_with_use via eclass-functions

I was not able to get a list of functions within an eclass which invoke built_with_use by a script. So I manually searched for this functions and used qgrep to find the ebuilds using this functions.
Comment 16 Jeremy Olexa (darkside) (RETIRED) archtester gentoo-dev Security 2009-04-04 07:08:10 UTC
(In reply to comment #11)
> What about adding bug #261757 to the dependency list. python_tkinter_exists
> which is also called by distutils_python_tkinter is just another variant of
> built_with_use so it makes sense to remove them too.
> 

I commented on that bug too, but I want to put it here for clarity. Please do not make python-2.5 EAPI=2. This is very bad for Gentoo to have portage/python at EAPI=>0 because if people have old installs then they cannot upgrade at all.
Comment 17 Petteri Räty (RETIRED) gentoo-dev 2009-08-15 13:23:05 UTC
app-i18n done when dependency stable request and cleanup in order
Comment 18 Doug Goldstein (RETIRED) gentoo-dev 2009-11-15 06:47:58 UTC
built_with_use is still not fully replaced with USE deps. i.e. the --missing option is not accounted for with EAPI=2 USE deps fully
Comment 19 Petteri Räty (RETIRED) gentoo-dev 2009-11-15 16:47:48 UTC
(In reply to comment #18)
> built_with_use is still not fully replaced with USE deps. i.e. the --missing
> option is not accounted for with EAPI=2 USE deps fully
> 

Yes it's not but by being careful and using proper version restrictions I haven't found a case I couldn't convert yet. It will of course be easier for developers with EAPI 3.
Comment 20 Larry the Git Cow gentoo-dev 2018-01-29 07:10:43 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=28ef9023d24bab72dec94e21237982be78c67c08

commit 28ef9023d24bab72dec94e21237982be78c67c08
Author:     Ulrich Müller <ulm@gentoo.org>
AuthorDate: 2018-01-19 20:57:20 +0000
Commit:     Ulrich Müller <ulm@gentoo.org>
CommitDate: 2018-01-29 07:08:26 +0000

    eutils.eclass: Remove built_with_use().
    
    The function was deprecated in 2010 and is no longer used in the tree.
    Use EAPI 2 use deps and has_version as replacement.
    
    Closes: https://bugs.gentoo.org/261562

 eclass/eutils.eclass | 92 ----------------------------------------------------
 1 file changed, 92 deletions(-)