Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 129649 - `emerge -C` display with ROOT=/some/place is very confusing
Summary: `emerge -C` display with ROOT=/some/place is very confusing
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks: 115839
  Show dependency tree
 
Reported: 2006-04-11 21:09 UTC by SpanKY
Modified: 2006-04-17 00:52 UTC (History)
0 users

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


Attachments
emerge.diff (emerge.diff,807 bytes, patch)
2006-04-12 03:14 UTC, solar (RETIRED)
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description SpanKY gentoo-dev 2006-04-11 21:09:38 UTC
i wanted to unmerge glibc/gcc from a cross-compiled ROOT:

# export ROOT=/mnt/mips64
# emerge -C sys-libs/glibc sys-devel/gcc -p

>>> These are the packages that would be unmerged:

 sys-libs/glibc
    selected: 2.4-r2
   protected: none
     omitted: none

 sys-devel/gcc
    selected: 4.1.0
   protected: none
     omitted: none
       ROOT: /mnt/mips64

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.


obviously i was a bit concerned here seeing as how the display seemed to indicate that i was going to be removing glibc from / and gcc from /mnt/mips64


so the output should list ROOT after every package or once at the top before any package is displayed ... otherwise, it seems like the value of ROOT is being associated with one package rather than all of them



Portage 2.1_pre7-r5 (default-linux/ppc/2005.1/ppc, gcc-4.1.0, unavailable, 2.6.16-gentoo ppc)
=================================================================
System uname: 2.6.16-gentoo ppc PPC970MP, altivec supported
Gentoo Base System version 1.12.0_pre17
distcc 2.18.3 powerpc-unknown-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
ccache version 2.4 [enabled]
dev-lang/python:     2.4.2-r1
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.59-r7
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2
sys-devel/binutils:  2.15.90.0.3-r5, 2.16.1-r2, 2.16.91.0.3, 2.16.91.0.4, 2.16.91.0.5, 2.16.91.0.6, 2.16.91.0.7
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r4
ACCEPT_KEYWORDS="ppc ~ppc"
AUTOCLEAN="yes"
CBUILD="powerpc-unknown-linux-gnu"
CFLAGS="-O2 -mcpu=970 -pipe"
CHOST="mips64el-unknown-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/kde/3/share/config /usr/share/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/eselect/compiler /etc/gconf /etc/revdep-rebuild /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -mcpu=970 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks metadata-transfer noauto noinfo parallel-fetch sandbox sfperms splitdebug"
GENTOO_MIRRORS="http://distfiles.gentoo.org http://distro.ibiblio.org/pub/linux/distributions/gentoo"
LDFLAGS="-Wl,-O1 -Wl,-z,relro"
MAKEOPTS="-j6"
PKGDIR="/usr/portage/packages/powerpc-unknown-linux-gnu"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="ppc X a52 aac aalib acl alsa altivec asf audiofile berkdb bitmap-fonts boundschecking bzip2 cairo cddb cdparanoia cdr crypt css cups curl directfb dri dts dvd dvdr dvdread emboss encode fame ffmpeg flac fontconfig gd gif glitz gpm gstreamer gtk gtk2 imagemagick ipv6 isdnlog jbig jpeg jpeg2k kde libcaca libwww lzo mad matroska mikmod mjpeg mng modplug motif mp3 mpeg multilib multislot musepack ncurses nls nptl nptlonly ogg oggvorbis openal opengl pdf pdflib perl php png pppd python qt quicktime readline rle samba sdl sndfile spell ssl subversion tcltk tcpd tga theora tiff truetype truetype-fonts type1-fonts unicode vcd vidix vorbis xanim xinetd xml xml2 xmms xpm xprint xrandr xv xvid yv12 zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LINGUAS
Comment 1 solar (RETIRED) gentoo-dev 2006-04-12 03:14:57 UTC
Created attachment 84492 [details, diff]
emerge.diff

Is this more like what you are after?

solar@simple trunk $ ROOT=/../../../ bin/emerge -pvC p{ax,ortage}-utils              

>>> These are the packages that would be unmerged:

 app-portage/portage-utils
    selected: 0.1.15
   protected: none
     omitted: none

 app-misc/pax-utils
    selected: 0.1.10
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.
>>> 'ROOT' /../../../ will be used
Comment 2 SpanKY gentoo-dev 2006-04-12 07:25:36 UTC
pretty much ... better to have it at the top though as something like:
emerge -C typoedpackage
wont have the ROOT info in the output and first instinct may be that portage is looking in / instead of ROOT rather than you just typoed the package name

i'll commit something later based on your patch that gives this output:

root@vapier 0 ~ # ROOT=/../../ emerge -C {portage,pax}-utils -p

>>> Using system located in ROOT tree /../../
>>> These are the packages that would be unmerged:

 app-misc/pax-utils
    selected: 0.1.11-r1
   protected: none
     omitted: none

 app-portage/portage-utils
    selected: 0.1.15
   protected: none
     omitted: none

>>> 'Selected' packages are slated for removal.
>>> 'Protected' and 'omitted' packages will not be removed.

root@vapier 0 ~ # ROOT=/../../ emerge -C {portage,pax}-utils-foo -p

>>> Using system located in ROOT tree /../../
>>> These are the packages that would be unmerged:

--- Couldn't find portage-utils-foo to unmerge.

--- Couldn't find pax-utils-foo to unmerge.

>>> No packages selected for removal by unmerge.
Comment 3 SpanKY gentoo-dev 2006-04-12 22:39:48 UTC
added to svn, thanks solar
Comment 4 solar (RETIRED) gentoo-dev 2006-04-13 06:49:05 UTC
works for me. thanks for fixing up svn
Comment 5 Zac Medico gentoo-dev 2006-04-13 11:16:54 UTC
Hasn't been released yet.
Comment 6 Zac Medico gentoo-dev 2006-04-17 00:52:53 UTC
Fixed in svn r3137 and released in 2.1_pre9.