…rotfl!after the blessing of thomas and some virtual beer saint rob repaired one of the best piece of software in the world, beclock, and ported it to plasma5 as be::clock-kf5 lol!
https://sourceforge.net/p/be-clock-kf5/code/ci/master/tree/
and it should work, but, how to compile it and put it in an opensuse repository to be used from me and everybody?
I downloaded all the files in the link above, now, what have I to do?
manythanks, ciao, pier
well, it has been easier than expected, googling solved the compiling problem, it has been enough make the configure file executable then ./configure then make then su then make install… and it worked
http://paste.opensuse.org/view/download/588573
now, how to make an rpm and put in a opensuse repo??
Open Build Service?
manythanks, …this??
and why it doesn’t compile and exclude the package?
I am not quite understanding what you are asking here.
You original question already looked to me as something that belonged in the Development area of the se forums. Your second post strongly suggested to me that it fitted what I know of the OBS, where a lot of “not-official” software for openSUSE is generated (into RPMs) and made available to the openSUSE users (and to other distributions). So I cautious suggested you to look into OBS. But I am not using it, nor do I know about any details. I suggest you ask in the Developments > Open Build Service (OBS) forum. Something that IMHO you should have been done in the first place.
OBS is not yet advanced enough to build packages this way. You need a spec file ( like any rpm has ). Maybe you’d better post in the OBS subforum.
Thanks for the heads-up!
I added it to my repo now, as package “kwin5-fx-beclock”.
http://software.opensuse.org/package/kwin5-fx-beclock
Haven’t tried it myself yet, so would be good to get feedback whether it works.
I’m going to submit it to KDE:Extra too, but there’s one problem:
the code relies on a KDE4 include file and doesn’t build successfully.
I worked around that for now by adding libkde4-devel to the build requirements, before I submit it I’d like to fix that though by patching the code…
Also, I don’t think it’s a good idea to replace the existing kwin-fx-beclock package, because openSUSE 13.2 (with KDE4 as default desktop) is still maintained. So probably I’ll keep the name “kwin5-fx-beclock” (it is an effect for kwin5 anyway).
rotfl!good](openSUSE Software)
I will try to install it from your repo on 42.2 saturday as I get it
…manythanks saint wolfi
yes, I think the same, I’m already using 13.2 and beclock works well there, …for the name it seems ok too
yes, on my fresh installed leap 42.2 on my laptop samsung EV520 with nvidia graphic card kwin5-fx-beclock works well, but, it seems to have a lot of dependencies…, I installed with one click install and it installs 4 new repositories and about 400 new packages…
I decided to delete the 13.2 and install tumbleweed on my laptop, it works also on tumbleweed, add 3 or 4 repos with factory in the name, after installed kwin5, have I to leave or to disable them??
Fantastic news!
Well, as you should know, my repo needs KDE:Frameworks5 and KDE:Qt5 as well, and the updated packages from there.
With Tumbleweed, you can just use my repo for Tumbleweed.
That should not need anything else.
But don’t trust the web search, it confuses Tumbleweed and Factory…
Just add this repo:
http://download.opensuse.org/repositories/home:/wolfi323:/branches:/KDE:/Frameworks5/openSUSE_Tumbleweed/
And then do a full switch to it.
I do have a repo named openSUSE_Factory too, if you want to use the latest Frameworks.
And that needs KDE:Frameworks5 too.
I should probably delete that, I think it doesn’t make sense any more nowadays…
sadly, compilation is broken with Plasma 5.9
/home/kv/src/be-clock-kf5-code/beclock.cpp:402:34: error: ‘class KWin::EffectsHandler’ has no member named ‘effectConfig’; did you mean ‘effectFrame’?
KConfigGroup conf = effects->effectConfig("BeClock");
Yes, I noticed and fixed that in my repo when 5.9 beta (5.8.95) was released a few weeks ago.
Run this and it should make it compile:
sed -i 's/EffectsHandler::effectConfig("BeClock")/KConfigGroup(KSharedConfig::openConfig(QStringLiteral("kwinrc")), "BeClock")/;/#include <KAboutData>/a #include <KSharedConfig>' beclock_config.cpp
sed -i 's/effects->effectConfig("BeClock")/KConfigGroup(KSharedConfig::openConfig(QStringLiteral("kwinrc")), "BeClock")/;/#include <KConfig>/a #include <KSharedConfig>' beclock.cpp
I was too lazy to create a proper patch so far…
Or, in words, replace [noparse]EffectsHandler::effectConfig(“BeClock”) with KConfigGroup(KSharedConfig::openConfig(QStringLiteral(“kwinrc”)), “BeClock”) in beclock_config.cpp and beclock.cpp, and add a #include <KSharedConfig> to both files.[/noparse]
wolfi323, thank you!
fixed in upstream
Right.
I’d like to note that it is using a different/specific config file now (previously the config was stored in kwinrc).
So don’t be surprised when you lose your settings, just reconfigure it to your likings…
The commit message explicitly tells this too:
support for latest kde (5.9 or so), NOTE: youll have to reconfigure the clock!
The build broke again with KDE Frameworks 5.31…
The reason is that they use the “-fno-operator” compiler switch now by default, the fix is to replace “xor” with “!=” in line 510 of beclock.cpp.
I.e. like this:
if ( myElectricBorders.isEmpty() != imActive )