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

Bug 124621

Summary: portage-2.1_pre5 emerge-webrsync error "nice: invalid priority"
Product: Portage Development Reporter: Patrick Lauer <patrick>
Component: ToolsAssignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: normal Keywords: InVCS, REGRESSION
Priority: High    
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 115839    
Attachments: fix niceness handling

Description Patrick Lauer gentoo-dev 2006-03-02 04:42:16 UTC
After the last round of upgrades:

$ emerge-webrsync
nice: invalid priority '/usr/sbin/emerge-webrsync'

Plsfixkthxbye ;-)


Portage 2.1_pre5-r1 (default-linux/x86/2005.0, gcc-3.4.4, glibc-2.3.5-r2, 2.6.11 i686)
=================================================================
System uname: 2.6.11 i686 AMD Athlon(tm) Processor
Gentoo Base System version 1.6.14
distcc 1.2.3 i686-pc-linux-gnu (protocol 1) (default port 3632) [disabled]
ccache version 2.3 [enabled]
dev-lang/python:     2.4.2
sys-apps/sandbox:    1.2.12
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r1
sys-devel/binutils:  2.16.1
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3/share/config /usr/lib/X11/xkb /usr/lib/mozilla/defaults/pref /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=athlon -O2 -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig buildpkg ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="ftp://ftp.gentoo.mesh-solutions.com/gentoo/ ftp://ftp.nyx.hu/gentoo http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
SYNC="rsync://rsync12.de.gentoo.org/gentoo-portage"
USE="x86 X apm avi berkdb bitmap-fonts crypt curl eds emboss foomaticdb fortran gdbm gif gstreamer hardened imlib ipv6 jpeg libg++ libwww motif mozilla mp3 mysql ncurses nls ogg pam parse-clocks pdflib perl pic png ppds python readline sdl spell sqlite ssl tcltk tcpd truetype truetype-fonts type1-fonts unicode vorbis wxwindows xml2 zlib elibc_glibc kernel_linux userland_GNU"
Unset:  ASFLAGS, CTARGET, EMERGE_DEFAULT_OPTS, LANG, LC_ALL, LDFLAGS, LINGUAS, PORTDIR_OVERLAY
Comment 1 Patrick Lauer gentoo-dev 2006-03-02 08:02:03 UTC
after some testing it looks like the call
exec nice -n $PORTAGE_NICENESS "$0" "$@"
fails because $PORTAGE_NICENESS is empty (echo $PORTAGE_NICENESS returns 0)
but:
# /usr/lib/portage/bin/portageq envvar PORTAGE_NICENESS
3

this is really weird :-)
Comment 2 Zac Medico gentoo-dev 2006-03-02 11:20:21 UTC
Created attachment 81128 [details, diff]
fix niceness handling

Please test this patch and if it's okay then I'll put it in the next regression fix release.
Comment 3 Zac Medico gentoo-dev 2006-03-03 18:13:11 UTC
Released in 2.1_pre5-r3