I have upgraded from kde 3.4 to 3.5, using emerge --update kde. The problem appeared when I have installed KDevelop, and it needed an update of KDEPATH, using kbuildsyscoca. I have found bug no. 63813 ( http://bugs.gentoo.org/show_bug.cgi?id=63813 ), with the same reason and solution described there (update path variable, as the old kbuildsyscoca is not good anymore), and in that moment I saw /etc/env.d/??kdepaths-3.4 stayed from the previous emerge, and in env.d it came after the new /etc/env.d/45kdepaths-3.5 setting (which overwrote the environment variables). Reproducible: I guess so, but I havent downgraded and upgraded again. ( ;) ) Actual Results: (as I saw, maybe other software does it like KDevelop :) Kdevelop stated it couldnt find plugin directory, and asked to fix $KDEPATH and rerun kbuildsyscoca. Expected Results: The new KDE upgrades should update the kdepaths file(s) in /etc/env.d/ , or backup it (them) to an other directory away from env.d/ , or at least comment out the settings mentioned inside the old one(s).
kde-3.4 is _very_ deprecated now - kde-3.5.2 is the oldest version in the tree, 3.5.5 is the latest stable. According to zmedico portage would have removed the env.d file when kde-3.4 was unmerged, unless the mtime or md5 of the file changed. Naturally the easiest method is to remove it manually, which is left as an exercise for the user. :)