I had a problem with kdelibs compiling on sabayon linux. kdelibs must be build using qt-3* and not qt-4* The normal method of fixing this is this command:
| Code: | USE="qt3" emerge kdelibs
| |
which specifies to use the qt3 and not qt4 when emerging kdelibs. But it would always fail. You might want to read how I got to this to begin with by reading this post: http://www.maysville-linux-users-group.org/ftopict-166.html#376
No matter what I did, I couldn't get kde packages to compile even after rebuilding kdelibs with the qt3 use flag. I finally had to take some major steps to get this working, which then failed, but I will show you what I did anyways cause it comes in handy.
Since kde was so messed up and so was gnome (see link above), and I had also messed up being able to do a ctrl+alt+F1 to get to a console once I was in a gui, the system was pretty close to a reinstall, except....It would drive me nuts to not find a resolution. So for a few days I was using xfce4 which was still working and trying different things to fix the problem. After 4 days and still little progress, I decided to take some drastic measures and simply remove kde and start over. These commands will pretty much do just that:
| Code: | equery -C l | grep 'kdebase/' > packages.txt equery -C l | grep 'kde-misc/' >> packages.txt equery -C l | grep -i 'qt' >> packages.txt emerge -avC 'cat packages.txt'
| |
What the first one does is lists all of the packages installed in the kdebase/ directory of /usr/portage and add that list to packages.txt
The second does the same thing for kde-misc but appends the results (adds to) packages.txt
The third does the same thing for any package with 'qt' in its name, such as qt-3* or qt-4* or qtopia-desktop-bin and appends the results to packages.txt
The forth one takes packages.txt and feeds the results to emerge using the -avC option
'a' is ask if its o.k to do this
'v' is show verbose output
'C' is remove
So, basically what the above commands do is create a list of packages installed matching those equery commands and add them to a packages.txt file. While the last emerge command removes them all.
So, once that was done. I then manually emerge qt-3 using this command:
This emerged the latest version of qt-3
Then I manually emerged kdelibs using this command:
And it seemed to complete successfully and it should be built using qt-3 since qt-4 is not even installed. However, I was still having problems with kde packages when running revdep-rebuild again. I noticed also that some of the requirements were for libdbus-qt-1.1.a.
I also noticed during one of the other packages being emerged in the revdep command from the link posted near the top of this post, was a message saying something like "you have both qt3 and qt4 options enabled, you will also need qt3support enabled for qt4.
So, what I had to do to fix all of these errors was add qt3support to the /etc/make.conf USE flags section:
will open the USE manager, just simply press q to take you down to the q use flags, scroll down to qt3support and press the space bar. Then press the enter key twice. If you don't have ufed, emerge ufed
The other option would be to edit the /etc/make.conf with your favorite editor and manually add qt3support to the use flags section and save it.
and re-emerge qt4 when done.
Then do the revdep-rebuild again, and the libdbus-qt-1.1.a error is still there. I found out this is included in the dbus-qt3-old package, so emerge it too:
| Code: | emerge dbus-qt3-old
|
|
This then allowed kde packages to emerge without errors.
_________________
Ed Wiget
RHP Studios
Keeping Your Data Safe!
606-759-1175
http://www.rhpstudios.com
http://www.xtremewebhosts.com
http://www.edwiget.name
http://counter.li.org/cgi-bin/runscript/display-person.cgi?user=162711