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

Bug 166785

Summary: emerge and emaint disagree about problems in my world file
Product: Portage Development Reporter: Mark Purtill <gentoo>
Component: Core - Interface (emerge)Assignee: Portage team <dev-portage>
Status: RESOLVED FIXED    
Severity: trivial CC: jakub, truedfx
Priority: High Keywords: InVCS, REGRESSION
Version: 2.1   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 167107    
Attachments: The possibly problamatic world file

Description Mark Purtill 2007-02-14 04:04:14 UTC
If I run emerge, say

# emerge -pDuv

I get this message:

!!! Problems have been detected with your world file
!!! Please run emaint --check world

The message appears to be only a warning, as the emerge seems to otherwise produce the expected output.

But emaint finds no problems:

# emaint --check world
Checking world for problems
Finished

Of course, emerge and emaint should agree on whether there is a problem.  I will attach the world file shortly.

# emerge --info
Portage 2.1.2-r9 (default-linux/x86/2006.0, gcc-4.1.1, glibc-2.5-r0, 2.6.19-gentoo-r5 i686)
=================================================================
System uname: 2.6.19-gentoo-r5 i686 AMD Athlon(tm) XP 1900+
Gentoo Base System version 1.12.6
Timestamp of tree: Wed, 14 Feb 2007 03:20:01 +0000
dev-java/java-config: 1.3.7, 2.0.31
dev-lang/python:     2.4.3-r4
dev-python/pycrypto: 2.0.1-r5
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3, 2.17, 2.17.50.0.9, 2.17.50.0.10, 2.17.50.0.11, 2.17.50.0.12
sys-devel/gcc-config: 1.3.14
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.17-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-ggdb -O2"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.2/share/config /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/share/X11/xkb /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/"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/java-config/vms/ /etc/revdep-rebuild /etc/terminfo"
CXXFLAGS="-ggdb -O2"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages metadata-transfer nosplit sandbox sfperms strict userpriv"
GENTOO_MIRRORS="ftp://213.186.33.38/gentoo-distfiles/ ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ http://mirror.pacific.net.au/linux/Gentoo ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ http://gentoo.osuosl.org/ "
LINGUAS="en ja"
PKGDIR="/usr/portage/packages"
PORTAGE_RSYNC_EXTRA_OPTS="--timeout=300"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/portage/local/layman/xemacs"
SYNC="rsync://rsync.namerica.gentoo.org/gentoo-portage"
USE="3dnow 3dnowext X Xaw3d aac aalib alsa apm arts berkdb bindist bitmap-fonts bzip2 canna cdr cjk cli cracklib crypt cups debug dlloader doc dri dvd emboss encode esd firefox foomaticdb fortran freetype freewnn gdbm gif gnome gpm gstreamer gtk gtk2 iconv imagemagick imlib ipv6 isdnlog java joystick jpeg kde kdexdeltas libg++ libwww lm_sensors mad maildir mbox midi mikmod mmx mmxext mng mozsvg mp3 mpeg mule ncurses nls nodrm nptl nptlonly ogg opengl oss pam pcre perl pic png pppd python qt qt3 qt4 quicktime readline reflection ruby scanner sdl session spell spl sse ssl tcltk tcpd tetex tiff truetype truetype-fonts type1-fonts unicode usb vorbis wmf x86 xine xinerama xml xorg xv zlib" ALSA_CARDS="via82xx" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" ELIBC="glibc" INPUT_DEVICES="keyboard mouse joystick" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="en ja" USERLAND="GNU" VIDEO_CARDS="mga vesa fbdev"
Unset:  CTARGET, EMERGE_DEFAULT_OPTS, INSTALL_MASK, LANG, LC_ALL, LDFLAGS, MAKEOPTS
Comment 1 Mark Purtill 2007-02-14 04:05:37 UTC
Created attachment 110139 [details]
The possibly problamatic world file
Comment 2 Harald van Dijk (RETIRED) gentoo-dev 2007-02-14 09:08:54 UTC
It's probably caused by local/ttx-fonttools, and forgetting to add 'local' to /etc/portage/categories. portage allows installation of packages in unlisted categories, adds such packages to the world file, but apparently decides this is not good after the packages are already installed.
Comment 3 Jakub Moc (RETIRED) gentoo-dev 2007-02-14 09:54:16 UTC
(In reply to comment #2)
> portage allows installation of packages in unlisted categories

And it shouldn't, IMO. I thought I've filed a bug about this, but apparently forgot to do so.
Comment 4 Bo Ørsted Andresen (RETIRED) gentoo-dev 2007-02-14 10:54:32 UTC
(In reply to comment #3)
> > portage allows installation of packages in unlisted categories
> 
> And it shouldn't, IMO. I thought I've filed a bug about this, but apparently
> forgot to do so.

Bug #163990.
Comment 5 Mark Purtill 2007-02-15 06:15:58 UTC
Yes, adding the line

local

to a new file /etc/portage/categories caused emerge to stop printing the warning.    I guess what ought to be fixed is that emaint should detect this situation and print an appropriate message.
Comment 6 Zac Medico gentoo-dev 2007-02-18 07:56:07 UTC
In svn r5986, emaint now gives a warning to indicate that the category is not listed in /etc/portage/categories.  For bug #163990, emerge will refuse to install a package without a valid category.
Comment 7 Zac Medico gentoo-dev 2007-02-19 21:48:12 UTC
This has been released in 2.1.2-r10.