From kdepim-users Thu Jan 29 13:37:15 2015 From: "O. Sinclair" Date: Thu, 29 Jan 2015 13:37:15 +0000 To: kdepim-users Subject: Re: [kdepim-users] build akonadi-git, was :rant Message-Id: <54CA378B.8090803 () gmail ! com> X-MARC-Message: https://marc.info/?l=kdepim-users&m=142253866306122 On 29/01/2015 13:43, Ren=E9 J.V. Bertin wrote: > On Thursday January 29 2015 11:43:48 O. Sinclair wrote: > = >> I have compiled a few things before so I am wondering where I find the >> mentioned code? Currently I am on Kubuntu 14.10 KDE 4.14.2 with Akonadi >> 1.13.0-ubuntu2 according to package manager > = > Oh, that makes things a lot simpler if you're on Ubuntu. Read up on how t= o create and use your own PPAs on launchpad and then get the sources from m= y PPA to which I'll link below. Using launchpad has the advantage that you = only have to bother with the packaging, not with the actual building. If yo= u don't want to bother with things like public keys however, you can follow= these rough guidelines, many of which are also required for the PPA approa= ch: > = > %> sudo apt-get install dpkg-dev devscripts > %> sudo apt-get build-dep akonadi > = > Next, go to https://launchpad.net/~rjvbertin/+archive/ubuntu/kdepim/+pack= ages , click on the akonadi package, and get the akonadi*.orig.tar.xz and a= konadi*.debian.tar.gz files. Unpack the first in a new directory, chdir int= o the akonadi directory, and unpack the second (.debian.tar.gz) archive. Op= en debian/changelog and replace "trusty" with "utopic" on the 1st line. Or = better, do > %> dch -v 1.13.0-ubuntu2-ppa1 > and ensure the 1st line of the new changelog entry says Utopic where the = previous entry says Trusty. Next, open debian/control and remove clang-3.5 = from the build dependencies, then edit debian/rules to remove the 4 lines s= tarting with "export CC=3D" (or else you'll have to install clang 3.5). The= n, simply enter > = > %> dpkg-buildpackage -d -us -uc -b [-jN] > = > (where N is the number of CPU cores in your system) and wait for the buil= d to finish. That will give you a number of .deb packages in the parent dir= ectory. > Change to that parent directory (the new directory you created above), an= d do > %> akonadictl stop > %> sudo dpkg -i *.deb > %> akonadictl start > = > That's all there should be to it. If I forgot something it'll probably be= come apparent and sufficiently self-explanatory to figure it out, otherwise= we're here to help. > = > NB: this does suppose that Trusty (14.04) and Utopic (14.10) have the sam= e akonadi package structure, but I think that's the case. Using the dch app= roach means that a future official akonadi update should replace the packag= es you just installed. > = > If you chose to use the PPA approach, you'll take almost the same steps, = but you'll have to use dch. You skip the dkpg-buildpackage as well as the d= pkg -i step, of course; you'll get the updated packages through the usual u= pdating mechanism after you added your PPA to your software sources (and la= unchpad finished building successfully). > = Thanks for that detailed reply! I went the pgk-build way, have a feeling I got a few errors but so far things seem to work. Two comments: 1. I did not get the dch- thing so did not bother - can something like it be done after build? 2. before you do the packagebuild you need to move up from the debian directory to where the akonadifiles were extracted Right now I have a powerproblem but I do suspect that my overall laptop operating temp has gone down notably! Will report back _______________________________________________ KDE PIM users mailing list Subscription management: https://mail.kde.org/mailman/listinfo/kdepim-users