Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 100556 - emerging to an alternate root (ROOT=/bal emerge) does not update ${ROOT}/etc/
Summary: emerging to an alternate root (ROOT=/bal emerge) does not update ${ROOT}/etc/...
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Ebuild Support (show other bugs)
Hardware: AMD64 Linux
: High normal (vote)
Assignee: Portage team
Depends on:
Reported: 2005-07-28 01:34 UTC by Shawn Teague
Modified: 2007-01-11 11:06 UTC (History)
1 user (show)

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


Note You need to log in before you can comment on or make changes to this bug.
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 (in my case).  This librarary in installed in
the expected location (/usr/lib64/gcc/x86_64-pc-linux-gnu/3.4.3/)  HOWEVER
/etc/ in the change rooted environment 
  (i.e. /vservers/vbase/etc/ is missing the lines:
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: 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.

   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/  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