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

Bug 149033

Summary: $ROOT doesn't catch correct Libraries
Product: Portage Development Reporter: Daniel Glaser <daniel.glaser>
Component: UnclassifiedAssignee: Portage team <dev-portage>
Status: RESOLVED CANTFIX    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: bashrc for cross compiling bash

Description Daniel Glaser 2006-09-25 03:12:30 UTC
When emerging with $ROOT, the Linker still tries to link against the Build-System Libraries.

I don't know yet, how to work around this. In my case,

ROOT="/var/ppc-system" PORTAGE_CONFIGROOT="/var/ppc-system" emerge bash

tries to use the libraries in my System ROOT an not the /var/ppc-system ROOT. This linkage will surely fail because they won't be compatible. In case of bash, it is the lcurses library.

I found nowhere an information how to tell the linker, to use the ROOT, gcc semms to behave right.

This bug belongs to http://bugs.gentoo.org/show_bug.cgi?id=137867
Comment 1 Zac Medico gentoo-dev 2006-09-25 03:25:46 UTC
Created attachment 98011 [details]
bashrc for cross compiling bash

This is what I've used in /etc/portage/bashrc to cross compile bash.  It's not portage's job to support this type of cross-compiling logic.  It belongs in the ebuild and/or eclasses.
Comment 2 Zac Medico gentoo-dev 2006-09-25 03:28:33 UTC
Of course, the bashrc would go under PORTAGE_CONFIGROOT...
Comment 3 Daniel Glaser 2006-09-25 03:36:59 UTC
Thanks, this was the point for most of the packages I think. Hope there are not so much other things that need fixing ;-)