When I try to emerge KDE via emerge -p kde, I get the following error: --- !targe sym /lib/libkabc.so --- !targe sym /lib/libDCOP.so.4 --- !targe sym /lib/libDCOP.so --- !targe sym /include/kdesu/pty.h --- !targe sym /bin/kfmexec --- !targe sym /bin/filesharelist >>> original instance of package unmerged safely. !!! Unexpected end of config file: variable KDEDIR Traceback (most recent call last): File "/usr/bin/emerge", line 2593, in ? mydepgraph.merge(portage.mtimedb["resume"]["mergelist"]) File "/usr/bin/emerge", line 1560, in merge retval=portage.doebuild(y,"merge",myroot,self.pkgsettings,edebug) File "/usr/lib/portage/pym/portage.py", line 2365, in doebuild return merge(mysettings["CATEGORY"],mysettings["PF"],mysettings["D"],mysettings["BUILDDIR"]+"/build-info",myroot,mysettings,myebuild=mysettings["EBUILD"]) File "/usr/lib/portage/pym/portage.py", line 2487, in merge return mylink.merge(pkgloc,infloc,myroot,myebuild) File "/usr/lib/portage/pym/portage.py", line 5929, in merge return self.treewalk(mergeroot,myroot,inforoot,myebuild,cleanup=cleanup) File "/usr/lib/portage/pym/portage.py", line 5649, in treewalk env_update(makelinks=0) File "/usr/lib/portage/pym/portage.py", line 625, in env_update myconfig=getconfig(root+"etc/env.d/"+x) File "/usr/lib/portage/pym/portage.py", line 950, in getconfig raise Exception("ParseError: Unexpected EOF: "+str(mycfg)+": line "+str(lex.lineno/etc/env.d/58kdedir-3.3.0)) Exception: ParseError: Unexpected EOF: /etc/env.d/58kdedir-3.3.0: line 2 The contents of /etc/env.d/58kdedir-3.3.0 is a single line: KDEDIR= Editing this file and setting this to the current kde installation (/usr/kde/3.2) or the new-to-be-installed kde (/usr/kde/3/3) doesnt work. Reproducible: Always Steps to Reproduce: 1.emerge -p kde 2. 3. Actual Results: The compile fails Expected Results: KDE should have been installed. Portage 2.0.50-r11 (default-x86-1.4, gcc-3.3.4, glibc-2.3.2-r3, 2.6.6-love4) ================================================================= System uname: 2.6.6-love4 i686 AMD Athlon(tm) processor Gentoo Base System version 1.4.3.13 ccache version 2.3 [enabled] Autoconf: sys-devel/autoconf-2.59 Automake: sys-devel/automake-1.8.3 ACCEPT_KEYWORDS="x86" AUTOCLEAN="yes" CFLAGS="-march=athlon -O2 -pipe -ffast-math -fomit-frame-pointer" CHOST="i686-pc-linux-gnu" COMPILER="" CONFIG_PROTECT="/env /etc /share/config /shutdown /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3.1/share/config /usr/kde/3.2/share/config /usr/kde/3/share/config /usr/share/config /var/qmail/control" CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d" CXXFLAGS="-march=athlon -O2 -pipe -ffast-math -fomit-frame-pointer" DISTDIR="/usr/portage/distfiles" FEATURES="autoaddcvs ccache" GENTOO_MIRRORS="http://mirror.pacific.net.au/gentoo/ ftp://ftp.aarnet.edu.au/pub/gentoo/ http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo" MAKEOPTS="-j2" PKGDIR="/usr/portage/packages" PORTAGE_TMPDIR="/var/tmp" PORTDIR="/usr/portage" PORTDIR_OVERLAY="/usr/local/portage" SYNC="rsync://rsync.au.gentoo.org/gentoo-portage" USE="3dfx 3dnow X aalib alsa apm avi bitmap-fonts cdr crypt dga directfb encode esd f77 fbcon foomaticdb gif gpm gtk imlib jpeg kde libg++ libwww mad mailbox maildir mikmod mmx mpeg ncurses nls odbc oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sasl sdl slang smooth spell sse ssl svga tcltk tcpd tiff truetype unicode usb x86 xml xml2 xmms xprint xv zlib"
This look like PREFIX wasn't setted in the arts ebuild (or kdelibs if you use -arts USE flag). please sync you portage tree and try remerging arts again, and look if now KDEDIR=/usr/kde/3.3 like it should be.
I have synced my portage tree after this and the file is still as described. And I am using -arts, so does this mean that the problem is in the kdelibs ebuild? Or shall I try with USE="arts"?
Can you post the contents of /etc/env.d/47kdepaths-3.3.1 ? thanks.
That file (3.3.1) doesnt exist...I have : #cat /etc/env.d/47kdepaths-3.3.0 PATH=/bin ROOTPATH=/sbin:/bin LDPATH=/lib CONFIG_PROTECT="/share/config /env /shutdown"
The same error is here: the PREFIX is empty. I can't understand this, because it's exported in the 'need-kde 3.3' call in the arts and kdelibs ebuilds. looks like the need-kde in kde-functions.eclass doesn't exports it. Does the `env` command returns also something like 'KDEPREFIX= ' ? Do you already tried reemerging arts?
*** Bug 69102 has been marked as a duplicate of this bug. ***
Yes I have already emerged arts. No env doesnt return any variable called KDEPREFIX. Damn frustated....
Sorry, I'm quite lost in this problem. So I can only give you some suggestions: 0) remove ccache (in make.conf FEATURES=ccache): improbable as it's not a compilation issue... 1) update portage 2) update bash 3) update glibc probably you need ACCEPT_KEYWORDS=~x86 After every step try reemerging arts and looking if the /etc/env.d files are finally fixed. let us know.
err. for the point 0) it's "-ccache"
BTW, there's something strange also here: CONFIG_PROTECT="/env /etc /share/config /shutdown /env /share/config /shutdown, are very strange...
Thanks for your suggestions. Strangely, I did something very similar. I updated portage and glibc.....and the whole damn system broke down. I couldnt even execute ls in the shell. The shell tells me "no such file or directory". I programs dynamically linked broke. Ah well.....in goes the Gentoo 2004.2 CD......its reinstall time (Two years of Gentoo, not bad at all)!! I shall still be following this thread though, I want to know why this happened. By the way, why update bash?
Oh and yes, I rebooted the system and got a kernel panic saying it couldnt find init. In such situations is there any diagnostic tool/technique that can be used to debug, get info, etc..?
I would: scan the disks for errors (fsck.ext3, or whatever filesystem you use) test RAM (with memtest86)
Hmmm...will keep that in mind next time...
This does not seem a reproducible problem...
Why is this flagged as RESOLVED, when it isn't? It also happens on my machine and I tried everything described here (and more) to fix it, but to no avail. kde-config returns nothing, nor does any file in /etc/env.d/ contain KDEDIR variable. Any hints?
Well, the OP ended up with a complete system breakdown which surely wasn't related to kde or even env.d. So you should be careful, whatever you do. What have you tried exactly? Does remerging arts or kdeilbs re-create broken env.d files? kde-config without parameters isn't supposed to print anything. Try kde-config --prefix.