Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 39707 - emerge system doesn't track dependencies correct in binary versions
Summary: emerge system doesn't track dependencies correct in binary versions
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All All
: High critical (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2004-01-28 16:25 UTC by Spider (RETIRED)
Modified: 2004-10-22 08:48 UTC (History)
1 user (show)

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


Attachments
Fix for incorrect USE flags with binpkgs on emerge system (portage-2.0.50-xcreate.patch,926 bytes, patch)
2004-02-06 20:17 UTC, Jason Stubbs (RETIRED)
Details | Diff
Alternative Fix (portage-2.0.50-xcreate-v2.patch,865 bytes, patch)
2004-02-07 02:36 UTC, Jason Stubbs (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Spider (RETIRED) gentoo-dev 2004-01-28 16:25:54 UTC
yey! Great.
ls, cp and all will fail due to linking with acl even though theres no dependancy.

configure automagic galore, this breaks binary installs.
Comment 1 Seemant Kulleen (RETIRED) gentoo-dev 2004-02-04 23:18:44 UTC
spider, huh?
Comment 2 Spider (RETIRED) gentoo-dev 2004-02-05 02:11:43 UTC
Ughm, sorry, This was a fluke of my brain ;)


the problem seems to be somwhere, but I haven't been able to trace it.  Let me describe:


from a clean stage3'ish (old one) system,  mounting up the binary packages on /usr/portage/packages; emerge -kvp coreutils; will show attr, acl and ncurses for installing. 

However when pointing PORTAGE_BINHOST to the same binaries and doing "emerge -gvp coreutils", suddenly attr+acl aren't downloaded/installed and one is left with a system without cp/ls and company.

Generic pain in the nether regions
Comment 3 Spider (RETIRED) gentoo-dev 2004-02-05 11:51:53 UTC
dammit, Cant reproduce this on my own systems, even though I had to help somone with it last night.

annoying.
resolving as needinfo until I find out wtf went wrong
Comment 4 Spider (RETIRED) gentoo-dev 2004-02-06 15:07:33 UTC
okay! I got this one nailed down.

portage version :

bash-2.05b# emerge --version
Portage 2.0.49-r20 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.23)
(really, its -r21 according to the database)

Normally: 

bash-2.05b# USE="-acl" emerge -vkp coreutils
[binary  N    ] sys-apps/attr-2.4.7-r1  +nls -debug 
[binary  N    ] sys-apps/acl-2.2.13-r1  
[binary     U ] sys-libs/ncurses-5.3-r5 [5.3-r2] -debug 
[binary     U ] sys-apps/coreutils-5.0.91-r4 [5.0-r3] +nls -build -acl -selinux -static 



bash-2.05b# USE="-acl" emerge -vkp system |grep acl 
[binary     U ] sys-apps/coreutils-5.0.91-r4 [5.0-r3] +nls -build -acl -selinux -static 


So, the "real" dependencies aren't tracked when using "system" as a target.!


Comment 5 Spider (RETIRED) gentoo-dev 2004-02-06 15:20:28 UTC
bash-2.05b# USE="-acl" emerge -vkp coreutils  |grep acl 
[binary  N    ] sys-apps/acl-2.2.13-r1   
[binary     U ] sys-apps/coreutils-5.0.91-r4 [5.0-r3] +acl -build +nls -(selinux) -static  
bash-2.05b# USE="-acl" emerge -vkp system |grep acl 
[binary     U ] sys-apps/coreutils-5.0.91-r4 [5.0-r3] -acl -build +nls -(selinux) -static  
bash-2.05b# emerge --version
Portage 2.0.50 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r3, 2.4.23)
Comment 6 Jason Stubbs (RETIRED) gentoo-dev 2004-02-06 20:17:12 UTC
Created attachment 25120 [details, diff]
Fix for incorrect USE flags with binpkgs on emerge system

Couldn't find exactly what causes the problem, but it is something to do with
select_dep not calling itself.

Put simply, this patch removes the separate processing of system/world packages
and instead uses the same processing as if they were all specified on the
command line.

Minimal testing but seems to work with no problems and no slow down.
Comment 7 Jason Stubbs (RETIRED) gentoo-dev 2004-02-07 02:36:46 UTC
Created attachment 25127 [details, diff]
Alternative Fix

This patch fixes the bug with the original logic.

Personally, I prefer the former first patch as it means that similar
functionality doesn't need to be maintained in two places.
Comment 8 Nicholas Jones (RETIRED) gentoo-dev 2004-04-12 19:22:27 UTC
Used the second one. That area of code reports back
missing binary packages to the user... It's different
than the other accounting.
Comment 9 Nicholas Jones (RETIRED) gentoo-dev 2004-10-22 08:48:06 UTC
Bug has been fixed and released in stable portages on or before 2.0.51-r2