Tuesday, January 29, 2013

That's just unbelievable

I never thought it will happen. Thank you all, who made this. And thank you all, who caused this (including OS providers).


Counter Strike 1.6 running on Fedora 18





Instructions how to do that will follow soon.

Happy fragging!

Wednesday, January 9, 2013

Unmaintained libraries are a security hole - Call for Help

I was thinking about naming this post "A security hole in Eclipse" but that could be a bit too strong. But the truth is that unmaintained libraries are a big risk to the entire software stack, because there is nobody to look after them and release new versions.

I'm writing about this, because recently my eyes looked at Eclipse and bug 337449 - [transport] Consume httpclient 4 provider from ECF. It looks innocent, but is it indeed?

The HttpClient project website says:
The Commons HttpClient project is now end of life, and is no longer being developed. It has been replaced by the Apache HttpComponents project in its HttpClient and HttpCore modules, which offer better performance and more flexibility.
Now, if you drill down into the aforementioned bug, you will discover that there is a support for HttpClient 4 in ECF, although it looks unfinished. It is unfinished in that sense that it is not fully tested. So Eclipse Platform can't use it. So it remains untested... We really can't afford for waiting any longer.

So I have prepared an Eclipse Platform Build with httpclient4 for all major platforms. Please get it from my fedoraproject page and test it by installing anything from an update site. Especially if you are behind a proxy. And update the bug with results. It's needed to move that bug forward!

Here are direct links to Eclipse Platform with httpclient4:
Happy testing!

BTW. This would not be possible without platform CBI build system making the build process really easy.


Monday, January 7, 2013

far Orbit

I am not a biggest fan of Orbit project. I do, however, understand now, that it is needed due to the legal reasons, as it was stated in the comment to my blogpost nearly a year ago:

  • The 3rd party libs have been vetted for IP, 
  • they have been turned into OSGi bundles so they can be used
  • they are available from a p2 repo so they can be consumed by PDE builds

 The biggest fear I have is that Orbit version of projects is isolated. They get OSGi Manifests, sometimes version number that is different from what is in the original, and sometimes even different name.
All those things does not make adoption and updates easy. There is practically no way to build Eclipse with newer version of a particular library and use it for testing.
So here is my proposition - let's contribute OSGi manifests or even entire packaging back to their providers. They don't always know/care about OSGi, but they rarely object such changes.
This will make the process of new version adoption easier, because testing/3rd party products could use newer version of libraries which is not yet present in the Orbit without taking the effort to build it them themselves.
Of course, I'm not demanding everyone to do it right now, but please, give it a thought before submitting a new [version of] Orbit bundle.

We should be removing the border between Eclipse and the rest of world.

Happy bundling!

Thursday, January 3, 2013

Eclipse Git update

New Year gift to Fedora users: yet another performance update, this time to EGit and JGit, has been just submitted.

It contains a new upstream release 2.2.0 with an impressive number of new features and enhancement, among which the most important (for me) is incremental reindexing of repository.

Actually this update and last Eclipse update reduced the heap usage almost by half, and Eclipse is much more responsive now. Check it out!

sudo yum --enablerepo="updates-testing" update eclipse eclipse-egit eclipse-jgit

The entire list of EGit/JGit is here and here.

Happy New Year Hacking!

Friday, December 28, 2012

Fedora Eclipse - update to a snapshot version

I decided to update Eclipse version to the repository snapshot and push this new build into Fedora 18. It's available in updates-testing repository. This is not something that is welcome in Fedora world as unreleased software tends to be unstable.
But this time is a little bit different. If you open the 'Install Software' dialog, you will notice that a new category appeared - Juno SR1 Patches:


This patch fixes, among others,  the most annoying issue with Eclipse 4.2.1 -
Bug 391868 - very slow switching editors; especially XML.
Only this bug made it worth to push a new build into Fedora 18. If you are interested in what else was fixed, look at this bugzilla query. 

Happy Hacking!


Thursday, December 27, 2012

Installing ADT into Fedora Eclipse

ADT have quite a long history of not working with Fedora Eclipse due to the various ClassCastExceptions and ClassNotFoundExceptions. Majority of those problems is caused by a simple fact - JVM provides a number of java packages that are also provided by Eclipse plugins (javax.xml, org.w3c.dom and others) and were part of Eclipse before they were introduced to JVM.

So, installing any plugin (like org.apache.xerces required by ADT) that required javax.xml caused two instances of those package to live together in different classloaders. Whenever they met, CCE or CNFE was thrown. Typical scenario was:
  • Plugin A is started and loads javax.xml (VM version)
  • Plugin B is started and loads javax.xml (bundle version).
  • Plugin C calls A, gets some javax.xml class instance, and passes it to plugin B. Since each plugin has a separate classloader, CCE is thrown.
Anyway, the solution is now known - basically you need to install eclipse and eclipse-dtp to get the hierarchy stack right - after that you may install ADT and it will work (if only you ensure that you have at least this version of xerces-j2).

Unfortunately there is no way to fix the Eclipse package itself - as it is not broken. It is just the matter of integration - and it will not happen until there is someone who is willing to package ADT for Fedora. I'm going to propose this task as a GSoC project (unless someone steps up earlier).

Friday, November 23, 2012

Do you still use x86 arch?

The title is deliberately misleading, because this (r)evolution has not happened yet, although signs of x86 empire falling down are ubiquitous - I bet you hold one in your pocked, or maybe you even read this post on an arm-powered device. If that's not convincing you, there is even more signs:
  • Engadget says that Microsoft blames OEMs for lower-than-expected Windows 8 sales. What seems to be outstanding here is that not enough of new hardware is being sold. My personal and subjective observations show that personal usage of PC dropped significantly - it's much more convenient to consume internet content using tablet-ish devices on your sofa than be limited by a weight of a laptop or netbook (which is still heavy compared to a tablet).
  • Furthermore, Intel CEO is said to retire early. That may sound like a conspiracy theory, but, honestly, have you ever seen a CEO stepping "unexpectedly" back without a reason? Which might be the Intel absence in the mobile world? This is not the end of the bad news to Intel.
  • Apple is said to ditch x86 in favour of ARM. No more comments needed here.

But why?

The answer is pretty simple - power efficiency. According to this blog, Intel processor requires 4 times more power than ARM one while adding only 30% of performance. In other words, your battery will last three times longer with an ARM. That's significant, isn't it?

Fedora has been working on ARM for quite some time. There are even emulators that you can run on your x86 hardware.

Eclipse was built for ARM some time ago, but it was a PDEBuild style, which is another empire that is falling down (but that's completely separated story). I'm currently in the middle of CBI build. You may not share my excitement, but for me it is a really huge thing - after reall, really long time I have finally nailed the reason for which Tycho was failing with an ugly NPE - and the reason was named JIT, you know, the thing that compiles your java bytecode to the native instruction sets in order to execute them faster. ARM OpenJDK Jit turned out to optimize one loop so much that it was executed only once.

So, keep your fingers crossed, and arm yourself up!