Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 110165 - package.provided and built_with_use issues
Summary: package.provided and built_with_use issues
Status: RESOLVED DUPLICATE of bug 142941
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 110166 (view as bug list)
Depends on:
Blocks:
 
Reported: 2005-10-22 11:28 UTC by Bug Gert
Modified: 2006-09-19 19:35 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Bug Gert 2005-10-22 11:28:41 UTC
I have my own compiled versions of Qt and KDE, so I have injected Qt and KDE by adding  
these to packages.provided  
  
x11-libs/qt-3.3.4-r3  
kde-base/kdelibs-3.4.3  
kde-base/kdebase-3.4.3  
kde-base/arts-3.4.3  
kde-base/kde-3.4.3  
   

Reproducible: Always
Steps to Reproduce:
1.
2.
3.

Actual Results:  
Now, *any* application that depends on KDE will not emerge because portage has checks in 
various places that all packages are built with the "arts" use flag or all aren't. However, these 
functions don't take into account the possibility that the packages are injected, so they fail to 
return valid results. 
 
For example, the function "best_kde_version" returns an empty string and "built_with_use" 
returns false. So when the emerge attempts to take place, and I have the "arts" flag in my USE 
flags, it will die and complain: 
 
You are trying to compile <app> with the "arts" USE flag enabled. 
However, <empty string> was compiled with this flag disabled. 
 
There are more than one of these function checks in portage, for exmple in eclass/kde.eclass, 
the function "kde_pkg_setup" 

Expected Results:  
The expected behavior is to allow KDE to be injected  and all these functions to take this into 
account so that KDE apps can be injected with the "arts" flag enabled with no problem.
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2005-10-22 11:31:17 UTC
Fixing the summary...
Comment 2 SpanKY gentoo-dev 2005-10-22 12:04:36 UTC
built_with_use now returns true when the package does not exist (i.e. it is
injected or packaged.provided)
Comment 3 SpanKY gentoo-dev 2005-10-22 12:04:56 UTC
*** Bug 110166 has been marked as a duplicate of this bug. ***
Comment 4 Zac Medico gentoo-dev 2006-08-18 14:33:05 UTC
This seems to have been reverted recently.
Comment 5 SpanKY gentoo-dev 2006-08-19 15:12:30 UTC
this cant really be done yet ...
Comment 6 Paul Bredbury 2006-08-19 15:53:39 UTC
(In reply to comment #5)
> this cant really be done yet ...

Yes it *can*. It's done in the patches of bug #139842.
Comment 7 Thomas Capricelli 2006-08-29 04:53:12 UTC
i have the same problem here since my return from vacation. Examples of packages : media-gfx/kst, media-gfx/digikam and so no.
Is there any quick fix we could do ?
Comment 8 Thomas Capricelli 2006-09-19 16:24:29 UTC
the bug still hurts a lot here. I have all arts/kde injected and i just can't emerge anything kde-related, which means a lot of course. I can't emerge -vuta world anymore because of that.
example :
>>> Emerging (40 of 201) app-portage/kuroo-0.80.2-r1 to /
 * kuroo-0.80.2.tar.bz2 MD5 ;-) ...                                                                                                                           [ ok ]
 * kuroo-0.80.2.tar.bz2 RMD160 ;-) ...                                                                                                                        [ ok ]
 * kuroo-0.80.2.tar.bz2 SHA1 ;-) ...                                                                                                                          [ ok ]
 * kuroo-0.80.2.tar.bz2 SHA256 ;-) ...                                                                                                                        [ ok ]
 * kuroo-0.80.2.tar.bz2 size ;-) ...                                                                                                                          [ ok ]
 * checking ebuild checksums ;-) ...                                                                                                                          [ ok ]
 * checking auxfile checksums ;-) ...                                                                                                                         [ ok ]
 * checking miscfile checksums ;-) ...                                                                                                                        [ ok ]
 * checking kuroo-0.80.2.tar.bz2 ;-) ...                                                                                                                      [ ok ]

!!! ERROR: app-portage/kuroo-0.80.2-r1 failed.
Call stack:
  ebuild.sh, line 1562:   Called dyn_setup
  ebuild.sh, line 665:   Called pkg_setup
  ebuild.sh, line 1255:   Called kde_pkg_setup
  kde.eclass, line 60:   Called built_with_use 'kde-base/kdelibs' 'arts'
  eutils.eclass, line 1594:   Called die

!!! Unable to resolve kde-base/kdelibs to an installed package
!!! If you need support, post the topmost build error, and the call stack if relevant.
Comment 9 SpanKY gentoo-dev 2006-09-19 19:35:32 UTC

*** This bug has been marked as a duplicate of 142941 ***