Fedora JBoss Spin – GSOC 2012 update 6

This is the sixth weekly installment of my GSOC blog series. More info on the progress of the Fedora JBoss Spin can be found on the Fedora wiki.

The first thing that I did this week was to find out if the extra features that I had proposed to be added to the eclipse-wtp-sourceediting package would be okay, given that they created a cyclic dependency. As I had expected, it was a big no-no! We discussed for a while in #fedora-java on freenode, what the best way to package features from the Eclipse Webtools project for Fedora, given that the structure of the Webtools CVS repositories doesn’t make much sense sometimes. Currently the wtp packages in fedora are separated into what one would think are subprojects: the next layer of sub-directories. Some alternative ways that were suggested were to have one package per feature, (or per core/UI feature pair, where those exist); or have one super webtools package, with everything subpackaged. None (including the current method) seem perfect.

I separated the problematic feature out into its own package. The feature was org.eclipse.jst.web_core.feature, and I already knew that the org.eclipse.jst.web_ui.feature would be needed further down the line, so I included that in the package also, and called it eclipse-wtp-jst-web.

The next thing that needed to be addressed this week was the bundling of unpackaged jars in the JBoss Tools ‘archives’ module. I got to work building those, starting with jboss-common-logging-spi. I got that built, packaged, requested review; and then I learned that it was not to be packaged, because it was obseleted by jboss-logging. Great. I spent a while trying to figure out where it was needed, and trying to see if the jboss-logging package would work as a drop-in replacement. I eventually figured out that it wasn’t needed by that particular plugin at all, but rather another one of the bundled jars. There were a few like thise, and one that depended on those was jboss-xml-binding.jar. The bundled version of this was old, so I had a look at the most up-to-date version, and found that I could use that with jboss-logging. Problem solved. Well, one of them at least!

Marek, my magnificent mentor (adjectve chosen because of it’s alliteration with both Marek and mentor) was busy applying patches for me, and at long last, eclipse-wtp-webservices and eclipse-wtp-jeetools were buildable in F17, so I went through the motions to get them included.

Back to our fundly bundly jarry jars that are blocking JBoss Tools Archives. The remaining one was TrueZip. Upon investigation into this, I found that the bundled version (6.6) is obselete, and the current stable version (7.5.5) works quite differently. Hmm. I decided to go onto everyone’s favourite IRC channel, #fedora-java, and ask what the best course of action would be. I honestly didn’t want to package the old obselete version, but I also didn’t know if I could easily fit the new version in easily. My question was already being answered, or at least the concept was being discussed indirectly, when I hopped on to ask. I decided based on the conversation that was being held, that the only way forward would be with the up-to-date version of truezip, no matter how difficult it might be to get it to work with JBoss Tools. The last two F’s in the ‘Freedom, Friends, Features, First’ moniker, are very relevant in this situation!

I got to work with the packaging of that, and it turns out that it’s the largest spec I’ve written by far, currently standing at 432 lines. I ran into a few problems here and there, some of them were just me being stupid (this causes lots of problems always), the rest seemed quite soveable, just requiring a few patches here and there. TrueZip looks like a really useful idea, and it seems to be under heavy development for the last while, so that’s a plus! I found it a lot easier to package than the Eclipse stuff that I’d been working on for so long now, but it still took a while, because of the modular way in which it’s structured. Then again, maybe I found it easier because I’d learned so much by going through all that Eclipse stuff. I contacted Christian Schlichtherle, the lead developer for TrueZip, and he seemed quite enthusiastic about having it packaged in Fedora!

There’s a useful (although a little incomplete) page on the TrueZip site, on how to migrate from TrueZip 6 to TrueZip 7; so I’ve started following that and I’ve patched up the JBoss Tools stuff to work with version 7. The problem now is that I don’t know how to get Maven to find it, so I’m not sure if it works fully. I’m sure it’s an easy fix, and the wizards of the Fedora Java SIG will point me in the right direction. Unfotunately #fedora-java changes dramatically at the weekend: a hive of activity during the week, but a ghost town at the weekends!

This time next week, I hope to have the next iteration of the actual JBoss Spin available, hopefully it will finally have the JBoss Tools AS functionality (working with the packaged jboss-as). I realise that I’m way behind where I’d proposed that the Spin would be at this stage, but in hindsight I think my original expectations were a little unrealistic (for me at least)! It will be done, mo matter how long it will take!

Fedora JBoss Spin – GSOC 2012 update 5

This is the fifth weekly installment of my GSOC blog series. More info on the progress of the Fedora JBoss Spin can be found on the Fedora wiki.

As I mentioned last week, first on the agenda this week was getting eclipse-wtp-jeetools in for review. I got that done, and it’s currently being reviewed.

Next was eclipse-wtp-jpa (dali). I had started a spec for this last week, but then I realised that I would need more features from it, so I tried building those. I eventually got that done, and the package is now ready for review also (although it depends on eclipse-wtp-jeetools, so it will have to wait until that is approved.

After those two packages were ready for review, I had to think about what the next step was, since those were the main focus of my attention for a while now. I went back to jbosstools, to see how far I could get with that, with the new packages. I tried building a few times, and with each error, I added in the missing stuff (pre-built) to the local repository, just to see how much more would be needed. After a few tries, I had enough to build the parent,common,usage,archives,jmx, and as components. Then something silly happened: my focus shifted away from this task, to other things (while I was waiting for the 3.3.0.Final release of JBoss Tools to download). When I got back to it, I forgot that I had included some prebuilt plugins in the local repository, remembered that the AS component was building, and I thought “Oh great! Now I can go and make a spec for that”. When I finally got the spec made, it took me a while to realise why the package wouldn’t build, and needless to say, I was a little  annoyed when I figured it out!

Luckily, all the stuff that I was then missing was missing features from eclipse-wtp-sourceediting. That sounded fairly straightforward, just add the missing stuff, submit a patch, Bob’s you’re uncle, right? Wrong! The packages eclipse-wtp-webservices and eclipse-wtp-jeetools depend on the current feature that’s being built by eclipse-wtp-sourceediting, and the new features that would be added, depend on those packages! I was almost finished adding these features when I realised the potential problem. I asked in #fedora-devel to see if it was possible to have a situation where packages depend on each other, and I was told that it was ok, once it’s documented. To be honest, I’m not fully convinced though, it seems like a terrible idea!

Getting these features to build required quite a few patches to other existing packages, that didn’t have the right OSGI Manifest information. This seems to be a recurring theme. It might be just me, but it seems that the there is usually a huge gap between what OSGI information a package contains, and what eclipse/eclipse-pdebuild expects. This is quite frustrating, as it’s not always apparent why things aren’t building or working the way one expects them to. It’s not always apparent to me at least. All of these patches will delay things a bit, hopefully not too long.

After getting that all done, I went back to jbosstools again to see how much further I could get,with mixed results. It was working if I built it manually, but there were strange compilation errors from the spec, even though everything I was doing manually, was pasted from the spec file. It took me quite a while, but I eventually figured out that there are prebuilt jars in some of the components that I wasn’t removing when building manually. These of course were being removed in the spec file, so that’s what was causing the problem. Some of the prebuilt jars have equivalents provided in Fedora packages already, but of course, some of them don’t. That would be too easy! The new packages that need to be built have now been added to the list on the wiki page.

I was going to rant more here about the structure of eclipse webtools…the differing locations of plugins from the features that build/provide them; but it’s late, and I’ve already wasted enough energy today thinking about them!

Image captcha

 

 

I got this as a captcha image today. I didn’t know that images were being used like that (if they actually are), and I’ve no idea what it actually is…any suggestions?

What ARE YOU looking for?

image

Doodlins

image

what time do you call this??

I borrowed a book from the library today, not sure if I’m ever supposed to give it back! Seriously though, is 24:00 a real time? WHAT ELSE HAVE YOU KEPT FROM ME, WORLD?

Please return this book on or before the 6th day of January, 2012, at Hammer Time.

Adjust screen brightness on fedora 16 – try this if it’s not working

Just in case this can help anyone on the fedora planet or other, who doesn’t visit fedoraforum.org or ask.fedoraproject.org very often. Admittedly I don’t visit there very often myself. A quick search in bugzilla shows some possibly related bugs.

If you don’t seem to be able to alter the screen brightness in fedora, either with the Fn keys, or through the gnome-control-center, try reinstalling bash. I rarely have the screen brightness on full on my laptop, so when I couldn’t change it on f16, it was ever so slightly annoying! I honestly wouldn’t know what to file a bug report against, so I started searching. First stop was that shiny new ask.fedoraproject.org instance, which led me to forums.fedoraforum.org/showthread.php?t=272500
So with the Fn keys not working, which had always worked previously; and the slider in the screen settings in gnome-control-center having no effect, doing a simple

sudo yum reinstall bash

was the answer.

Update:

It’s listed in the ‘Common F16 Bugs’ here:

https://fedoraproject.org/wiki/Common_F16_bugs#Bash_entry_in_.2Fetc.2Fshells_disappears_after_update

this post isn’t specific enough to have a title…

Hello there, internet. Sorry I’ve kept you in the dark for a while now, I will try to improve on that in the future. So what’s the situation, you ask? Well, I will fill you in with what GOOG et al. are most likely already familiar with. I’ve returned to Ireland from my home away from home: Québec. I will be back, don’t worry, Canada.

On a more interesting note, I’ve also returned to university to study something of interest (to me, at least) this time. It’s a H.Dip in Software Design and Development, and I’m quite enjoying it. It forces me to do some of the not-so-interesting parts of IT study, while also allowing me to do lots of the fun stuff! For the moment, I’m keeping my head well above the water with regards to coursework, but I fully expect and look forward to things becoming more difficult rather than easier.

As some of you know, my email habits have been somewhat erratic for the last while, while I was getting settled back in here, but by now I feel I’ve dealt with most of the backlog; if you’ve sent me an email (or other online comm), and I haven’t replied, then I’ve probably forgotten about it. Please, remind me, and keep me on my toes!
If you’re following me on any social network or microblogging platforms, you’ve probably noticed that the bulk of my spam is now tagged with [D*] or something similar: this means that the post is being forwarded from my Diaspora* seed. If you’ve got one, add me!! – grdryn@diasp.org

So, being back at university, I’ve sometimes got short periods of time where I’m idle, and it’s time that I’m often not very productive with; so I might be able to use it to find something of actual interest to put here! I will try at least. If there’s anything in particular you would like me to rant/review/talk about, let me know! OTOH, if you want me to STFU, please let me know with equal fervency! That’s all for now folks, expect more boring stuff here soon. I figure the more I write, the more mindless nattering I will obviously do, but it will also increase the chances of me posting something of actual value or interest to someone!

Hello world!

Welcome to WordPress. This is your first post. Edit or delete it, then start blogging!

Same blog, different domain!

Welcome to my new blog! As you can see, it isn’t new at all. It’s the same blog as before, just with a cool new domain name.
The new domain is something I’ve been thinking about for a while now, not so much for the blog, but to give me more control over my email address. My main email address up until now has been a free ‘@gmail.com’ one. With my own domain, I can use my new address just like gmail, using google apps, but if for some reason in the future I would like to move away from that provider to an alternative, I have that flexibility. Reasons for moving away from a provider could include anything from a CEO shooting elephants, or even just a competitor comes up with some cool new feature.

For those of you who didn’t catch it, the reference to the CEO shooting elephants, is related to the debacle caused by Bob Parsons, CEO of GoDaddy.com, causing many people to look for alternatives. One such alternative that I would like to recomment is gandi.net.

Follow

Get every new post delivered to your Inbox

Join other followers: