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

Bug 100556

Summary: emerging to an alternate root (ROOT=/bal emerge) does not update ${ROOT}/etc/ld.so.conf
Product: Portage Development Reporter: Shawn Teague <gentoo>
Component: Core - Ebuild SupportAssignee: Portage team <dev-portage>
Status: VERIFIED NEEDINFO    
Severity: normal CC: radek
Priority: High    
Version: unspecified   
Hardware: AMD64   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---

Description Shawn Teague 2005-07-28 01:34:54 UTC
Problem found while working on nice way to create vservers on gentoo.
Command: ROOT=/vservers/vbase emerge -vga portage gcc (using precompiled binaries)
Results: all packages install as expected to the alternate root
         but if you chroot (or vserver vbase enter) to the /vservers/vbase
directory, python(main concern at thos point) and other things will no run with
an error finding libstdc++.so.6 (in my case).  This librarary in installed in
the expected location (/usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/)  HOWEVER
/etc/ld.so.conf in the change rooted environment 
  (i.e. /vservers/vbase/etc/ld.so.conf) is missing the lines:
/usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/ 
/usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/32
Somethin that is normally handled by the gcc ebuild.



Reproducible: Always
Steps to Reproduce:
1. mkdir /tmp/newroot
2. ROOT=/tmp/newroot emerge -vga portage gcc
3. tar -jxvf /lib/udev-state/devices-recommended.tar.bz2
3. chroot /tmp/newroot
4. emerge -vp  #package is irrelivant

Actual Results:  
#Emerge completes w/o errors

# emerge -vp
/usr/bin/python: error while loading shared libraries: libstdc++.so.6: cannot
open shared object file: No such file or directory


Expected Results:  
These are the packages that I would merge, in order:

emerge: please tell me what to do.


Usage:
   emerge [ options ] [ action ] [ ebuildfile | tbz2file | dependency ] [ ... ]
   emerge [ options ] [ action ] < system | world >
   emerge < --sync | --metadata | --info >
   emerge --resume [ --pretend | --ask | --skipfirst ]
   emerge --help [ system | config | sync ] 
Options: -[abcCdDefhikKlnoOpPsSuUvV] [--oneshot] [--newuse] [--noconfmem]
                                    [--columns] [--nospinner]
Actions: [ --clean | --depclean | --inject | --prune | --regen | --search |
--unmerge ]


   For more help try 'emerge --help' or consult the man page.


Of course the problem can be quickly fixed my manually editing the alternate
root path's /etc/ld.so.conf  to contain the correct directories.

The basic problem is that
Comment 1 Jason Stubbs (RETIRED) gentoo-dev 2005-07-28 01:56:27 UTC
emerge info please
Comment 2 Zac Medico gentoo-dev 2006-05-01 02:45:40 UTC
Is this still a problem?  If so, please post the output of `emerge --info`.
Comment 3 SpanKY gentoo-dev 2006-05-02 17:17:49 UTC
i tested this recently actually and 2.1_pre* was doing the right thing
Comment 4 Marius Mauch (RETIRED) gentoo-dev 2007-01-11 11:06:36 UTC
Closing due to old age