Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 68546 - KDE related packages fail to compile and install complaing about the KDEDIR variable in a file in /etc/env.d
Summary: KDE related packages fail to compile and install complaing about the KDEDIR v...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] KDE (show other bugs)
Hardware: All Linux
: High normal (vote)
Assignee: Gentoo KDE team
URL:
Whiteboard:
Keywords:
: 69102 (view as bug list)
Depends on:
Blocks:
 
Reported: 2004-10-22 07:22 UTC by sawanv
Modified: 2005-04-09 10:04 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description sawanv 2004-10-22 07:22:07 UTC
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"
Comment 1 Simone Gotti (RETIRED) gentoo-dev 2004-10-22 07:39:29 UTC
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.
Comment 2 sawanv 2004-10-23 00:15:29 UTC
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"?
Comment 3 Simone Gotti (RETIRED) gentoo-dev 2004-10-23 02:06:58 UTC
Can you post the contents of /etc/env.d/47kdepaths-3.3.1 ? thanks.
Comment 4 sawanv 2004-10-26 04:38:18 UTC
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"
Comment 5 Simone Gotti (RETIRED) gentoo-dev 2004-10-26 05:25:52 UTC
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?
Comment 6 Simone Gotti (RETIRED) gentoo-dev 2004-10-27 02:34:09 UTC
*** Bug 69102 has been marked as a duplicate of this bug. ***
Comment 7 sawanv 2004-10-27 04:22:22 UTC
Yes I have already emerged arts.

No env doesnt return any variable called KDEPREFIX. 

Damn frustated....
Comment 8 Simone Gotti (RETIRED) gentoo-dev 2004-10-29 17:28:23 UTC
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.
Comment 9 Simone Gotti (RETIRED) gentoo-dev 2004-10-29 17:29:49 UTC
err. for the point 0) it's "-ccache"
Comment 10 Simone Gotti (RETIRED) gentoo-dev 2004-10-29 17:33:55 UTC
BTW, there's something strange also here:

CONFIG_PROTECT="/env /etc /share/config /shutdown

/env /share/config /shutdown, are very strange...
Comment 11 sawanv 2004-11-02 00:23:40 UTC
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?

Comment 12 sawanv 2004-11-02 00:28:30 UTC
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..?
Comment 13 Gregorio Guidi (RETIRED) gentoo-dev 2004-11-04 05:14:53 UTC
I would:
scan the disks for errors (fsck.ext3, or whatever filesystem you use)
test RAM (with memtest86)
Comment 14 sawanv 2004-11-04 20:08:32 UTC
Hmmm...will keep that in mind next time...
Comment 15 Gregorio Guidi (RETIRED) gentoo-dev 2004-12-31 04:54:32 UTC
This does not seem a reproducible problem...
Comment 16 Ivan Savcic 2005-03-22 12:38:25 UTC
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?
Comment 17 Dan Armak (RETIRED) gentoo-dev 2005-04-09 10:04:51 UTC
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.