1 |
On Saturday 08 April 2006 21:48, Ned Ludd wrote: |
2 |
> On Sat, 2006-04-08 at 11:18 +0900, Jason Stubbs wrote: |
3 |
> > On Saturday 08 April 2006 07:36, Ned Ludd wrote: |
4 |
> > > On Fri, 2006-04-07 at 14:19 -0400, solar wrote: |
5 |
> > > > FEATURES="buildpkg" ROOT=/ emerge gcc |
6 |
> > > > rm -rf /dev/shm/foo |
7 |
> > > > |
8 |
> > > > ROOT=/dev/shm/foo emerge gcc -pvK |
9 |
> > > > |
10 |
> > > > Notice how it selects the incorrect deps? |
11 |
> > > > IE: eselect cuz it's the first listed dep in the || ( ) vs the |
12 |
> > > > gcc-config |
13 |
> > > |
14 |
> > > + When you already have a copy of gcc-config installed on / and in |
15 |
> > > .tbz2 format in ${PKGDIR}/All and no eselect anywhere. |
16 |
> > |
17 |
> > This should work. I believed I had fixed it by adding the use_binaries |
18 |
> > parameter and code paths to dep_zapdeps. If it's not working then there must |
19 |
> > be a bug left somewhere. |
20 |
> |
21 |
> Must be a bug left somewhere then. I just tested with |
22 |
> Portage 2.1_pre7-r4 and the result is the same. |
23 |
|
24 |
Got it. The bug was in bindbapi. For consistency's sake, I changed most of the |
25 |
db["/"] to db[myroot] except where db["/"] is specifically required. However, |
26 |
db[myroot]["bintree"].dbapi.* were all working with an empty repository as |
27 |
bintree holds all the data and uses lazy initialization which bindbapi wasn't |
28 |
triggering. |
29 |
|
30 |
I've fixed the current use case and covered aux_get as well, but this bug could |
31 |
easily come back if another method of bindbapi is used. |
32 |
|
33 |
> > Having a quick look at the dep_zapdeps function, I can't see what but I think |
34 |
> > I've discovered another bug. If use_binaries is true, porttree isn't checked |
35 |
> > for matches which means that it'll fall through to the "last resort" code |
36 |
> > when there's no matching binaries which could end up selecting an atom that |
37 |
> > only has masked porttree matches. |
38 |
> |
39 |
> yikes. |
40 |
|
41 |
This is and isn't the case. use_binaries is only enabled with -K so masking |
42 |
doesn't take affect anyway. |
43 |
|
44 |
-- |
45 |
Jason Stubbs |
46 |
-- |
47 |
gentoo-portage-dev@g.o mailing list |