Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 78821 - --tree and --changelog should be removed from options before restarting emerge
Summary: --tree and --changelog should be removed from options before restarting emerge
Status: RESOLVED FIXED
Alias: None
Product: Portage Development
Classification: Unclassified
Component: Core - Interface (emerge) (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Portage team
URL:
Whiteboard:
Keywords: InVCS
Depends on:
Blocks:
 
Reported: 2005-01-20 08:31 UTC by Florian Loitsch
Modified: 2005-05-26 01:34 UTC (History)
0 users

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


Attachments
emerge.patch (mostly untested) patch removing --tree and --changelog before restarting. (emerge.patch,597 bytes, patch)
2005-01-20 08:38 UTC, Florian Loitsch
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Florian Loitsch 2005-01-20 08:31:59 UTC
when emerging portage, emerge will restart itself.
Until now "--ask" is already filtered for this restart, but "--tree" or
"--changelog" are left. As they imply "--pretend", the restart will then abort.

Reproducible: Always
Steps to Reproduce:
1.
2.
3.




$ emerge --info 
Portage 2.0.51-r14 (default-linux/x86/2004.2, gcc-3.4.3, 
glibc-2.3.4.20041102-r0, 2.6.10-gentoo-r4 i686) 
================================================================= 
System uname: 2.6.10-gentoo-r4 i686 AMD Athlon(TM) XP 2200+ 
Gentoo Base System version 1.6.8 
Python:              dev-lang/python-2.2.3-r5,dev-lang/python-2.3.4 [2.3.4 (#1, 
Nov  6 2004, 15:41:47)] 
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) 
[disabled] 
ccache version 2.3 [enabled] 
dev-lang/python:     2.2.3-r5, 2.3.4 
sys-devel/autoconf:  2.59-r6, 2.13 
sys-devel/automake:  1.8.5-r2, 1.5, 1.4_p6, 1.6.3, 1.7.9, 1.9.4 
sys-devel/binutils:  2.15.92.0.2-r2 
sys-devel/libtool:   1.5.10-r3 
virtual/os-headers:  2.6.8.1-r2 
ACCEPT_KEYWORDS="x86 ~x86" 
AUTOCLEAN="yes" 
CFLAGS="-O3 -pipe -fomit-frame-pointer -march=athlon-xp -mtune=athlon-xp" 
CHOST="i686-pc-linux-gnu" 
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /usr/share/texmf/dvipdfm/config/ /usr/share/texmf/dvips/config/ /usr/share/texmf/tex/generic/config/ /usr/share/texmf/tex/platex/config/ /usr/share/texmf/xdvi/ /var/bind /var/qmail/control" 
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" 
CXXFLAGS="-O3 -pipe -fomit-frame-pointer -march=athlon-xp -mtune=athlon-xp" 
DISTDIR="/usr/portage/distfiles" 
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" 
GENTOO_MIRRORS="http://mir.zyrianes.net/gentoo/ ftp://mir.zyrianes.net/gentoo/ 
http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/" 
MAKEOPTS="-j2" 
PKGDIR="/usr/portage/packages" 
PORTAGE_TMPDIR="/var/tmp" 
PORTDIR="/usr/portage" 
PORTDIR_OVERLAY="/usr/local/portage" 
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" 
USE="x86 3dnow X aalib alsa apm arts audiofile avi berkdb bitmap-fonts 
cdparanoia cdr crypt cups dga directfb divx4linux doc dvddvdr encode esd f77 
fam flac font-server foomaticdb fortran gcj gdbm ggi gif gpm gstreamer gtk2 
guile imagemagick imap imlib innodb ipv6 jpeg jpeg2k junit kde libg++ libwww 
mad matroska mikmod mmx motif mozilla mpeg nas ncurses nls oggvorbis opengl oss 
pam pdflib perl png python quicktime readline samba sdl slang speex spell sse 
ssl svga tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts 
xinerama xml xml2 xmms xv xvid zlib" 
Unset:  LDFLAGS
Comment 1 Florian Loitsch 2005-01-20 08:38:04 UTC
Created attachment 49039 [details, diff]
emerge.patch (mostly untested) patch removing --tree and --changelog before restarting.

didn't want to downgrade portage, so I could try the patch. But the patch is
just two lines long (and you should easily spot any error).
Comment 2 Florian Loitsch 2005-01-20 08:39:46 UTC
should be "... *couldn't* try the patch. ..." in my last comment. small typo.
Comment 3 Emil Beinroth 2005-01-20 09:13:05 UTC
But if they imply --pretend, portage won't get merged and thus emerge won't get restarted. Right? :)
Comment 4 Florian Loitsch 2005-01-20 09:34:32 UTC
that's what "emerge" says. in reality "--tree" and "--changelog" don't imply
"--pretend" but can also be used with "--ask".
Comment 5 Florian Loitsch 2005-05-26 01:34:51 UTC
current version handles these cases correctly. If I shouldn't have closed this 
bug, please reopen.