bootstrap.sh begins to compile when given "-pv" as arguments. When given "--pretend --verbose" as arguments, then these are correctly forwarded to emerge, output is "what would be done" and no compilation is being started. Reproducible: Always Steps to Reproduce: 1. mkfs, extract stage1+portage, cp resolv.conf, mount proc, copy sync+gentoo_mirror settings into new make.conf 2. chroot, etc-update && . /etc/profile || echo error 3. emerge --sync; cd /usr/portage ./scripts/bootstrap.sh -pv (...unpacking source -> ctrl-c) ./scripts/bootstrap.sh --pretend --verbose Actual Results: pcnocmdb2 portage # ./scripts/bootstrap.sh -pv Gentoo Linux 2004.3; http://www.gentoo.org/ Copyright 1999-2004 Gentoo Foundation; Distributed under the GPLv2 Starting Bootstrap of base system ... ------------------------------------------------------------------------------- [[ (0/6) Locating packages ]] ... [[ (1/6) Configuring environment ]] ... [[ (2/6) Updating portage ]] Calculating dependencies ...done! >>> emerge (1 of 1) sys-apps/portage-2.0.51-r3 to / *** Adjusting cvs-src permissions for portage user... >>> Downloading http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ distfiles/portage-2.0.51-r3.tar.bz2 --05:23:12-- http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ distfiles/portage-2.0.51-r3.tar.bz2 => `/usr/portage/distfiles/portage-2.0.51-r3.tar.bz2' Resolving linux.rz.ruhr-uni-bochum.de... 134.147.32.57 Connecting to linux.rz.ruhr-uni-bochum.de[134.147.32.57]:80... connected. HTTP request sent, awaiting response... 200 OK Length: 280,663 [application/x-tar] 100% [=============================================================================== ===========================>] 280,663 890.05K/s 05:23:12 (889.67 KB/s) - `/usr/portage/distfiles/portage-2.0.51-r3.tar.bz2' saved [280663/280663] ... ... gcc -march=i386 -O1 -pipe -D_GNU_SOURCE -DPIC -fPIC -D_REENTRANT -Wall sandbox. o sandbox_futils.o getcwd.c -ldl -lc -o sandbox Caught signal 2 in pid 14261 (interrupted ctrl-c) pcnocmdb2 portage # ./scripts/bootstrap.sh --pretend --verbose Gentoo Linux 2004.3; http://www.gentoo.org/ Copyright 1999-2004 Gentoo Foundation; Distributed under the GPLv2 ------------------------------------------------------------------------------- [[ (0/6) Locating packages ]] ... [[ (1/6) Configuring environment ]] ... [[ (2/6) Updating portage ]] These are the packages that I would merge, in order: Calculating dependencies ...done! [ebuild N ] sys-apps/portage-2.0.51-r3 +build -debug (-selinux) 0 kB Total size of downloads: 0 kB ------------------------------------------------------------------------------- [[ (3/6) Emerging headers/binutils ]] ... Expected Results: both should behave identically: show what would be done, like "--pretend -- verbose" Anyways (ups...argh!), bootstrap.sh behaves correct when "-pv" is "unbundled" as "-p -v". Shouldn't it recognize the "bundled" Arguments "-pv" as two separate options, no matter if it knows about "-v" or not, it does know about "-p", shouldn't it? BTW, isn't "resume" used as "continue building/emerging" everywhere else? --resume (-r) Build/use binary packages pcnocmdb2 portage # emerge info Portage 2.0.51-r2 (default-linux/x86/2004.3, gcc-3.3.4, unavailable, 2.6.9- gentoo-r12 i686) ================================================================= System uname: 2.6.9-gentoo-r12 i686 Intel(R) Pentium(R) 4 CPU 2.80GHz Gentoo Base System version 1.4.16 Autoconf: Automake: Binutils: sys-devel/binutils-2.14.90.0.8-r1 Headers: Libtools: ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" CHOST="i386-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/ config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d" CXXFLAGS="-O2 -mcpu=i686 -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms" GENTOO_MIRRORS="http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ ftp:/ /ftp.uni-erlangen.de/pub/mirrors/gentoo http://mirrors.sec.informatik.tu- darmstadt.de/gentoo/ ftp://ftp.wh2.tu-dresden.de/pub/mirrors/gentoo ftp:// pandemonium.tiscali.de/pub/gentoo/ http://pandemonium.tiscali.de/pub/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo ftp://ftp.join.uni- muenster.de/pub/linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="" SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage" USE="x86 X acl apm arts avi berkdb bitmap-fonts crypt cups encode foomaticdb fortran gdbm gif gnome gpm gtk gtk2 ipv6 jpeg kde libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl spell ssl svga tcpd truetype xml2 xmms xv zlib" pcnocmdb2 portage #
i added code to the *) case so it'll abort now: $ ./bootstrap.sh -pv Unknown option '-pv' Usage: bootstrap.sh [options] --debug (-d) Run with debug information turned on --fetchonly (-f) Just download all the source files --info (-i) Show system related information --pretend (-p) Display the packages that will be merged --tree (-t) Display the dependency tree, forces -p --resume (-r) Build/use binary packages i'll maybe add parsing code to handle packed short opts later, but only ive i'm bored :P