LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Help me with patching kwin (https://www.linuxquestions.org/questions/linux-newbie-8/help-me-with-patching-kwin-4175437558/)

DisappearingOak 11-17-2012 06:10 AM

Help me with patching kwin
 
I use ROSA Linux 2012.1 (which is basically the same as Mandriva). I need to apply this patch to kwin https://git.reviewboard.kde.org/r/107198/

but I cannot find which srpm the file kwin/glxbackend.cpp is supposed to be in. It's not in kdebase4-workspace. Which srpm should I look for?

I knwo in ubuntu it's as simple as apt-get source kde-workspace. but this rpm thing of mandriva has me confused.

Elv13 11-18-2012 01:22 AM

Hi,

There is many way to do this, but I would recommend the distribution independent one from the KDE techbase wiki. Create a new user account called kde-devel, go get the .bashrc from the KDE wiki to have the cs and cmakekde commands. Then get KWin git source. It is located in the kde-workspace repository. I also recommend compiling kdelibs and kde-runtime manually too before kde-workspace.

Once you can compile them, apply your patch and compile again.

To use the newly compile kwin, you can use /home/kde-devel/kde/bin/kwin --replace or add /home/kde-devel/kde/bin/ to your $PATH variable at line 1 of your normal use ~/.bashrc.

What's nice about this solution is that it allow you to compile any KDE applications from git in a matter of minutes. I also recommand adding this alias you kde-devel .basrc
Code:

function kde-git {
 git clone git://anongit.kde.org/$1
}

after that (and reloading bash) you can fetch the sources with
Code:

cs
kde-git kdelibs
kde-git kde-runtime
kde-git kde-workspace

Have fun! (the list of dependencies for mandriva is also available in the techbase wiki)


All times are GMT -5. The time now is 07:08 AM.