Search Results: "agi"

28 May 2006

Philipp Kern: XFS on root -- a no-no

You must not try to put your root filesystem on XFS, at least with the current debian-installer used by both Debian and Ubuntu. Even though the installer offers this, the boot code fails mysteriously by not finding an appropriate device to boot from. So it leads to a kernel panic on both distributions just after the installation, without any modification to the boot loader:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(0,0)
It might be possible to fix this issue by putting some magic into the kernel parameter list. I recall that I had this problem already with Ubuntu Breezy, and even with the help from the Ubuntu powerpc kernel maintainer I did not get it to run properly. I hoped that it is fixed by now, in the standard distribution, but no, sadly enough it isn't. I used reiserfs in the meantime, even though I had some data losses and thus bad experiences about four years back in time. Well, but what's nice with those old Open Firmware Apple products: You get netboot for free. This guide helped me a lot, my desktop now provides powerpc installation images for both Debian and Ubuntu. But then... I only have one powerpc-based computer in my possession. And I won't buy another Apple again, due to the low manufacturing quality of their mobile products.

26 May 2006

Colin Watson: Google Summer of Code project started (Ubuntu)

More on the Google Summer of Code: as well as the project I'm mentoring for Debian, I'm mentoring Evan Dandrea (no blog yet?), writing a migration assistant for Ubiquity. I haven't talked much about Ubiquity, mostly because I've been far too busy writing it. Ubuntu has needed an installer for its live CD for a while, partly because, well, loads of users want it, and partly because it will cut Canonical's costs quite a lot if we only have to send out half the number of CDs in shipit (apparently single-CD packaging is significantly cheaper than double-CD packaging). I'd been resisting doing something from scratch because I love d-i and I think it would be a really bad idea to end up maintaining two installer implementations from the ground up (live CDs are nice, but they don't cut it for everyone). So when I was given the task of doing a shiny live CD installer with a custom-designed UI, while I started with a more-or-less from-scratch implementation put together by Guadalinex (thanks!), I fairly quickly diverged from that and morphed it into something that uses d-i code for as much of the backend operation and logic as it sensibly can. I'd call it a sort of debconf frontend except that its design is almost opposite to how a debconf frontend should work, in that it's highly specialised to react to particular question names. This had a lot of advantages in terms of being fairly quick to write, although in the long term I think I might prefer something closer to cdebconf plugins for the job; we'll see how things turn out. Evan wanted to write an extension to this to automatically migrate settings and documents from an existing Windows installation, which I think would be an absolutely excellent thing to have: automatic migration is a real killer feature in an installer. In fact, d-i already has a start at this, namely os-prober, which in conjunction with some bootloader installer code magically sets up boot menu entries for other operating systems on your disk. So, I suggested to Evan that he might want to put most of the clever logic in a udeb, so that it can be used in d-i too, and to my relief he seemed quite enthused by the idea. He's starting on the preliminary work now and I look forward to seeing his progress. Best of luck, Evan!

Ian Murdock: Google embraces the Linux desktop?

Picasa is now available for Linux. This is huge news, if you ask me, if only for what it could portend. Imagine Google Pack for Linux, with Firefox and a bundled Google Toolbar, Google Desktop, Google Talk, Google Earth, etc. By taking this approach, Google could build a client metaplatform across Windows and Linux without getting into the OS business directly. Nice answer to the fact that Google’s biggest competitor is between them and 90% of their customers today, all without the headache of being an OS vendor—simply ride atop what’s already out there. Related news: Google Reaches Agreement to Have Its Software Installed on New Dell Computers.

Jos Parrella: News from the KSP

After reading this thread in debconf-discuss, I think we all agree in the following items: Now seriously, I think the whole point behind key signing is, as Holger philosophed about and Vorlon answered, to know who is the guy behind the key. If I sign your key, I won’t trust you and give you my money for you to keep it, but if I had to do this and you steal me, I can blame you. And the whole point behind a party is to have fun. So it’s a time to take profit of a useful tool while having fun, so please don’t panic.

25 May 2006

Martin F. Krafft: Post-Debconf

One thing that never really came to my mind during Debconf6 in Oaxtepec, Mexico, was blogging about what went on. In part, that's because I never had a minute to spare, plenty of other people were blogging about the event on the planet, and definitely also because I developed a dislike to play-by-play blogging, which I certainly do not like to read for my part. But now, sitting in Oaxaca in the Hostel Pochon (which has free wireless, imagine that), I feel like at least jotting down some of the highlights. My favourite non-Debian related happening must have been the descent to Mexico City airport. I am willing to bet that our pilots either had too much to drink or way too much fun, because we literally zig-zagged across this amazing city. It's about 2200 metres above sea level and our inflight information system noted our altitude at 3500m for at least 20 minutes, so glued to the window, I felt in a miniature world, hovering above a city that extends to all sides however far the eyes could see (I conclude that in all miniature worlds I've seen so far, such as the Eisenbahnmuseum Hamburg and Swiss Miniature, trains and cars are generally moving too fast). The population of "la Ciudad de Mexico" (which the locals just call "Mexico") is estimated to be somewhere between 20 and 24 million, which makes it the largest city in the world, and it was not hard to believe that during the descent (and afterwards). I arrived at Oaxtepec, a government-run vacational complex, some three or four hours after touchdown and didn't last very long until the jetlag took me to bed. That was Saturday night. With Sunday morning, the official Debconf conference had started and was to last for seven days. In general, that meant talks and BoF sessions throughout the day, loads of hacking and socialising in between, food, and drinks with more socialising in the evening (and throughout the night in some cases). I really enjoyed seeing many of the folks I had met at last year's conference in Helsinki, while some others' absence was equally prevalent. I spent most of the week hanging out with Biella Coleman, Micah Anderson, Sean Finney, Clint Adams, and a bunch of others, I also managed to make the real-life acquaintance of some people I had known online for a long time. In retrospect though, I should have spent less time with the regular clique (with whom I was to go to the post-Debconf trip anyway) and spent more time getting to know more of the attendants. The vacational complex was interesting, and unlike many others, I didn't get annoyed by the long distances between presentation room, my accomodation, the hacklab, and the place where we were served edible lunches and dinners. Rather, I enjoyed walking with others, engaged in discussions on some of the more prevalent topics filling my life with Debian (such as version control, low-level Debian tools, security issues, and social challenges). The only nuisance was the long walk to the nearby town and its market, from where I would get most of my food and drink throughout the week -- but even that walk I rarely had to manage alone. The massive pool (with a ten metre diving board) that lay in the middle of it all didn't really attract me that much, but then again I've never been much of a pool person. In the interest of various people worrying about my safety in Mexico, as well as some of my clients, I purchased a Mexican prepaid SIM card for my cellphone and linked up with the world (after two attempts and an accumulated 2.5 hour wait). The fun was only short though, when I found out that in Mexico, phone charges are ridiculously expensive, and receiving calls on a mobile phone costs exactly the same as making them. At USD 1/Minute to and from Europe, I ended up limiting my air time to a minimum. I spent most of the first couple days getting mdadm back into shape, bug triaging and uploading a new upstream to experimental, except for Monday, which I spent together with Joey Hess, Micah, and Biella trying to recover files from her wrecked filesystem, which we managed in the end using a simple fsck to at least recover her presentation. I'd be sitting on the terrace in front of the "hacklab" where people kept passing by, so my work certainly wasn't focused and without interruptions, but in the end I was still satisfied with the end result. And in the evenings, it was usually the same terrace, sampling the local beer, enjoying cheese from all over the world at the cheese party on Tuesday night, trying liquors from other parts of the globe, and talking and joking and meeting great people (I truly love the Debian crowd). Out of the large assortment of talks available, I attended several but found that front-up presentations aren't my thing and I would have to let the topic simmer a bit (along with some research) before delivering my questions to the speakers outside of the talk (where I finally got some interesting answers to long-standing questions). Thanks to the awesome work by our video team, which recorded every single presentation to tape, streaming it live and also intending to publish it on a post-conference DVD, I found myself often listening in on talks I wouldn't have gone to, while hacking away on said porch. Noticing, however, that many talk slots were left unfilled at the start of the conference (they did quickly fill with impromptu presentations and BoF sessions once the inertia of the event picked up), I was a little annoyed that my proposal was turned down in the first phase of selection. Wednesday was the day of the day trip. Against my recommendations of an early departure, we left the site at 11:30 with six busses (remarkably on time), heading for Xochicalco for a rather boring tour of the museum, and a vastly more interesting, two hour stroll (in the midday sun) around the actual archeological site, which was quite impressive despite mostly being artificially built or rebuilt by the government. We went on for an excellent buffet-style lunch (which was amazingly well organised), and then headed on for Cuernevaca, a small, romantic town where we had only an hour to spend before heading back home (who recommended starting the day earlier?). When we finally made it back to the conference, most of us were just tired and the evening wasn't as wild as some of the other ones during the week. Come Thursday, my mission was to attack the thinkpad packages, which make Debian on IBM laptops a lot more of a pleasure to use. Unfortunately, I didn't get anywhere (yet) with that work, simply because most of my time was spent battling the weird hacks that make up module-assistant, which actually makes it a lot harder for developers to provide kernel module packages (while really improving the end-user's experience). But of course, there was a positive twist to this issue, as I would now leave my screen in frustration much more frequently and socialise with the others. For the evening, the organisers had prepared the "formal dinner" (which isn't so formal at all). A bunch of busses took us to a nearby shed, where we found all tables arranged in a massive swirl, and when we were all seated, a Mariachi band entered, at the same time as the rain outside picked up -- I thought one of the Mariachis was playing the snare drum but as the rain grew stronger, I concluded it must instead be the drops on the metal roof causing the noise. Generally in love with rain, I made my way to the door while others lined up to fetch dinner and stood in awe for a bunch of minutes at the sight of the marble-sized drops descending from the sky. ... when suddenly I saw one of Debian's troublemakers, Jonathan/Ted Walther, running at me, chased by three developers and found myself amidst their altercation before I could do anything. People screaming, one reaching over my shoulder to push Ted, it was all too much. I told everyone to calm down, to which Jonathan/Ted reacted, vigorously shaking and foaming, with a "get out of my fucking way, you fucking Nazi" and I knew that stuff had gone wrong. I withdrew, and in an attempt to find out what had happened managed to piss off one of the three involved developers, who'd then later refuse to hear me out for an explanation. All that really left me in a depressed state mainly because I simply hadn't expected Debian developers getting physical at each other, and this time it was Erinn Clark who consoled me and turned the night around for the better. I still had no appetite and took the first bus home, sent an apologetic email to the offended developer (who never acknowledged receipt but seemed to have forgotten the incident the next day), and enjoyed beers while the others kept returning to the hacklab. Apparently, people were quite aware of my (passive) involvement during the incident, so I was bombarded with plenty questions, most of which I refused to answer for lack of knowledge of the actual facts. Still, when I saw one girl in another altercation with Jonathan/Ted later that night in response to severe offences he published on his blog, which led her to come close to tears, I decided it was time to pull him off the planet. He re-added himself shortly afterwards by "fixing a typo" (according to the CVS changelog), but by that time, I couldn't care less no more and simply resumed the discussions, which eventually turned into topics of life, intelligence, and the bottom-up vs. top-down debate. I am a strong supporter of bottom-up (as many of you know), and I somehow regret the way I approached the discussion, because in retrospect I see myself as somewhat arrogant during it; fortunately, noone seemed to hold it against me the next day. Throughout the entire week, I built up a reputation of the guy that needs no sleep: staying up until the early morning hours, yet rarely missing any of the first talks at 10 in the morning, and even joining with people for breakfast at the market before. Friday morning, however, I just couldn't get up. We talked until six in the morning, and when my eyelids finally moved after I dropped into bed, it was already noon and I dragged myself to the next talk. after which I simply returned to the hacklab and developed more of my dislike towards module-assistant, before the call for the official Debconf6 group picture rescued me (and those around me). The keysigning party followed and I made the mistake to offer to coordinate it (picking up where Anibal's great preparation left off), without really running the process through my head before. Standing up on the diving tower and screaming to the crowd of 140 participants, it was in part due to Moray Allen's comments that the party went more or less without any complications; I did get to conduct another experiment though. During the keysigning, Mark Shuttleworth invited a bunch of us to join him for dinner to discuss the Debian-Ubuntu situation (no bribes involved; we paid for ourselves). I'll have more on this in a separate post when it's ready. The discussion continued after we arrived back at the hacklab, and once again, I didn't go to bed at a civilised hour... ... but I did get up in time for Biella's talk, during which she employed very effective techniques to get me to actually pay attention (which I would have done anyway): she required my laptop for the presentation. Again, the talk didn't do much to me (which is not Biella's fault), but I am certainly interested in reading the relevant parts of her dissertation. At the same time, however, it made me realise how far from reality the academic world is: big words and complicated concepts just don't count when it comes to getting your hands dirty, and I will try my best not to go down that route when my own dissertation gets more serious. Two other memorable events happened on Saturday: the fun group photos (I was determined to get the participants to line up in a swirl in the pool, and partly succeeded), and the last-night-party on the porch of the hacklab, which was mighty fun, in part because we had speakers blasting tunes for the first time that week (thanks to the dance BoF the night before), and Ryan Murray was playing some of the truly excellent mixes of a close friend of his, which are available from mux.ca. I didn't sleep that night. And then Sunday had arrived, the sad last day of a great conference. I would like to thank all the organisers and helpers for making this event possible! I know some of you had some reservations before and during the event, but in the end it's the result that counts, and I was only one of many who were absolutely satisfied by the week. A great big THANK YOU to you! Following the last bits of socialising and copying Biella's harddrive image to Micah's drive for later rescue of some of her precious videos, we were off to Mexico city for the vacational part of the trip. Some of us went by bus, Vagrant and myself hopped onto the bus to assist one of our developers with his wheelchair at the airport. When the group reconvened in front of our hotel for the night in the centre of Mexico city, the vacation had started (blog post forthcoming sometime...)

24 May 2006

Joey Hess: the supermarket thing

At DebConf I whined at Mark Shuttleworth about my fears that Ubuntu is reducing Debian to a supermarket of components (an analogy that was introduced entirely innocently by someone else during an unrelated talk). At least, that seems to be the kind of comment that I later heard some Ubuntu people characterize as whining. Anyway, NewsForge ran an article about DebConf that included a mention of that, and I had to follow up with a comment explaining a bit more about the problem. I'll reproduce it here:
The problem with everyone treating Debian as a supermarket is that it ends up with Debian == sunsite^Wmetalab. Giant un-integrated collections of software are not particularly interesting in a lot of ways. My main motive for contributing to Debian is to make Debian the best distro I can; I don't mind if others use that work, especially if stuff gets contributed back. But it's long been clear to me that the most important added value to Debian is not adding another package to the shelf, but finding new ways to integrate our software together. When you're working mostly above the level of individual software packages, to have your work mostly appreciated on the basis of "component contained in Ubuntu" is not very motivating. If that motive goes away I fear Debian could be left with mostly developers who are happily motivated with just packaging another peice of software. While there's nothing wrong with feeling that way and working on that basis, we don't want to lose the people who want to work on things that cut across sets of packages, like speeding up the boot time, improving the installation experience, making the distribution attractive for speakers of $language, making sure Debian supports as much hardware as best it can, porting Debian to interesting new architectures, integrating Xen and SE Linux with Debian, making a useful default desktop install, etc. Some of these are exactly the areas in which Ubuntu is apparently better than Debian, and in most of those cases, contributing individual patches back to Debian is simply not enough for Debian to share Ubuntu's improvements. It puts Debian at best in the position of wasting a lot of time trying to play catch-up and figure out how a collection of patches to different packages fits together into a coherent overall improvement.

Matthew Palmer: Testing the Testing of Your Tests

I'm writing an application in Ruby that makes heavy use of XMLRPC (the application of XMLRPC-over-Unix-socket fame), and so I'm using Mock Objects to mock out the XMLRPC client proxy and provide an interface that doesn't involve having a whole other infrastructure running on my laptop so I can run my test suite. For those who don't know, mock objects are objects which look and superficially act like the real objects you might use to communicate with an external service, but don't actually do the communication -- instead, they return canned responses to your calls. Why is this useful? Well, imagine that the real object talks to a SOAP service on the 'net (such as the Google search API). It means that every time you run your test suite, you need access to the Internet. The external service may also cost something everytime you talk to it -- or it may be impossible to use to test, since there's statistics generation or something going on that means that hammering it for test purposes is just impractical. In addition to returning values to your application, mock objects will usually record what has been called, so that after your test run is complete, you can also verify that all of the methods you wanted called have actually been called. This means that you can have a good idea that what you wanted to happen to the service actually would have been done. Handy. Some people have a (justified) ditrust of Mocks, because it's easy to make a mock object that doesn't perform like the real one (and hence invalidate your tests), but they provide a necessary evil in cases where you just can't use the real object when running your test suite. The XMLRPC proxy I'm using has a bit of a quirk. Everything runs through one method on that object -- XMLRPC::Client#call(). This seems really limiting, especially in a wonderfully dynamic language like Ruby. In reality, it's not too bad -- it makes the object interface easier to mock, and you couldn't emulate the whole thing with method_missing anyway, because you can have various Ruby-illegal characters in XMLRPC method names. The downside to this all-in-one-method thing, though, is that simply verifying that #call() has been invoked a dozen times doesn't really tell me much about whether the mock was used the way I wanted it to be used. My chosen mock object suite, Test::Unit::MockObject, whilst otherwise excellent, is (or rather, was) missing the ability to verify the arguments that are passed to your calls -- you can say "I need methods x(), y(), and z() called", but you couldn't say "I need the call y('foo', 'bar', 42) made". Of course, this change the mock object class is non-trivial, and needs to be tested itself (it'd be pretty lame if a class intended to facilitate automated testing lacked a test suite of it's own). I added a bunch of tests to the test suite, and got some good results. I had a couple of false starts, where I wasn't checking most of the corner cases (where bugs lurk in the shadows), but eventually I got a test suite that was fairly complete, which drove the new features I needed to a good place. So I carted my newly enhanced mock object class across to my production project, and off I went. Except that I was getting some downright weird failure messages when my code wasn't invoking the mock object the right way. Why? Because I hadn't tested that my failure messages were appropriate. Why was that? Because the assert_raise assertion in Test::Unit doesn't have a facility to make sure that you're passing back the right exception message, only that you're passing back the right exception class. Whisky, Tango, Foxtrot? Over. (This space intentionally left blank for me to insert the correction to this claim that the lazyweb is sure to provide) So I had to write a new assertion (assert_exception_message) which checked that both the right class and the right message came back. This code, of course, needs to be tested too, because otherwise you can't be sure that your test code is performing right. At this point, I was writing test code to test a new assertion I'd written so I could test the mock object class I had modified so I could test my application. At this point, things got a bit "meta". It got a bit difficult to separate out the tests from the tests' tests. But I fought through the brain melt, and shortly thereafter came out the other end with a properly working piece of actual application, and all was well in the world. By now, a certain Mr. Tendys is probably rubbing his hands with glee, as he gets ready to espouse at length about how this whole post just proves how utterly useless test-first programming (or even testing in general) is for producing economically-viable software. Let me analyse what I "spent" on getting all this functionality, though -- about 3 train trips home -- maybe 4 hours of time total, including writing the extra tests in my application to use the wonderful new features I'd made. That's not much, in the grand scheme of things. I've wasted that much time in a day skiving off work in the past because I was frustrated with what I was trying (and failing) to program, usually because I was swamped with bugs. What did that four hours of my time buy me? Heaps. I can now better verify my software works as anticipated. I have confidence that my software is a lot more robust than it was before. My tests identified several issues that passed my eyeball check, but blew up when I tried to actually use them in a particular way. But with the help of my tests, I identified the problems quickly and went on my way. Since I was working in a localised area of the application, I was immediately familiar with the code, and could stomp the bug almost immediately. If I'd only done end-to-end testing at the end of development (or worse, released it with the bugs still in there), the debugging would have been much harder because I'd forgotten little details about the code. I reckon that benefit, alone, has probably saved me 4 hours already, since I've spent whole days hunting down little bugs in an ad-hoc fashion in the past. I'm fairly sure most any programmer can empathise with me there.

23 May 2006

Biella Coleman: Mexican Bribes

Another Debconf has come and passed. This was my 3rd conference and surely to be one of the more memorable, partly because I showed up for the whole time (and am now traveling with 4 other DD’s in Mexico) and partly because of a few problems that plagued my visit. There is no doubt that I had a wonderful time but some of my attention was drawn away from enjoyment toward crisis management. For the first few days, it was due to computer problems (now sort of fixed) and then the last few days I had “Biella Hardware” problems in the form of one of the worst combo sore throats/ body aches that I have had in recent memory (now sort of fixed but not entirely). Now that I am in Oxaca, I hope to spend a little time blogging about this year’s Debconf but before I wanted to pass along what I think has been one of the more amusing experiences thus far in Mexico. So yesterday a group of us (Jeroeun, Martin K, Micah, Vagrant) rented a car to head off to the Southern city of Oxaca. I have actually never rented a car in a foreign country, and I was a little concerned about everything from price to roads to cops. Amid my nervousness, the employee at Thrify was sort of reassuing and quite nice but he gave us some unfortunate news: he warned us that as we reached this one particular circular intersection in Mexico City we would be stopped by a cop (because we are tourists) and basically bribed. This was not surprising news to be but I was surprised at how upset this made me. (maybe because I have never had such an experience and thought I would mangle it when the time came to pass off the money or offset the bribe or whatever). Anyway, after we packed 5 bodies and copious luggage into our compact Nissan, we headed off somewhat prepared to face off the cop and decided it was best I drive as I was the Spanish speaker. We made our way through the congested streets and headed toward the intersection and as we got closer, I thought to myself how are they going to spot us within all this traffic? But you see, the thing about this intersection is as soon as you make the turn left, you hit a light and need to stop for a long time. And you see, this gives the cop ample time to switch on the tourist radar and spot the noticeable white bodies. Sure enough, within 30 seconds of stopping at the intersection, a Mexican cop walks over and there is where the fun began. So he basically told me that I did not use my signal lights for turning when I made a left and that this infraction would cost me US $120. At this point I started to get a little freaked (I already dropped too much money on a rental car) but I remained calm and told him basically in Spanish With all respect, officer, I think I used my light because I am in a foreign country and am very aware that I must follow all traffic rules. After a little back and forth, I moved on to the bribe stage. While we were told that 100 pesos (10 US) was the typical bribe, we, being cheapskates, just offered 5 US. And then, magically, at that point, the officer said, ok just go ahead and be careful not to repeat the offense next time. I was shocked. I mean there was some money being offered right there and I was sure he was going to ask for a little more. But he backed off. Why? I think it was a combination of factors. Ok so perhaps he was surprised that I knew what was going on. Perhaps he was uncomfortable that I knew Spanish. But I think he the tipping point was due to cultural factors. I think he found it odd that there was this little woman driving a car with 4 grown and pretty large men. Given the gender dynamics in the country, this was just beyond his cultural comfort zone and he realized that I was badassss, and he just backed off. Ok, so I don’t really know if that is what happened but I like the explanation and am glad I got off the hook :-)

NOKUBI Takatsugu: File-MMagic 1.27

Today I uploaded File-MMagic-1.27.tar.gz to CPAN, tt has two minor bug fix.

Pierre Habouzit: The whole java/non-free affair

summary of the problem I've re-read most of the calm and useful posts (yes some exist if you look hard :D) in the java-tro^H^Hhread. Yes, the pro-java-in-non-free are right if we omit to mention all the difficulties it will imply if such a removal has to happen for a stable update[1] removing java from our mirrors do terminate the license solve most of the issues. Though, two major concerns remains:
  1. clause 2.f (you agree to defend and indemnify Sun and its licensors from and against any damages ... and so forth) is IMHO unacceptable, even for non-free, because debian isn't in a position where it can risk to see that clause exercised by Sun ;
  2. section 4 (and others of the same sort) makes the existence of java in non-free depending of Sun's mood: exercising clause 4 is trivial they just have to imagine a new kernel feature our kernel should support that we can't provide to terminate the license retro-actively. Many instances of that problem exists in the license.
The first problem in itself seems obvious, and none of the arguments of the pro-java-in-non-free have put me at rest. The second problem is a real concern because it means that our java support can be discontinued without possible clean upgrade path back to java-package. If Sun could not retire our right to redistribute one given version of java, then we could repackage the last version we can distribute with some debconf dialog to warn the user his java package won't be upgraded again, and that he must fall back to make-jpkg. But here, if Sun decides it, Sun can make the package simply disappear. And given the number of users that will concern, this is not a problem to be taken lightly.

I honnestly believe that putting java into non-free, whereas we already have java-package that allow a quite satisfying integration of Sun's JDK/JRE into a debian instance, implicitely means that we are confident that java will stay in here forever (or for a significant enough time). And I see nothing that can guarantee such a fact, and I see too many things that can prevent this with a probability significantely greater than 0. Yes there I know there is a FAQ about those issues, where Sun promise they won't use their power to hurt people. But if they don't itend to, why did they put those clauses in the license ? With all the good will I can provide, that does not makes sense to me. If you put landmines in your garden, well, that's for a purpose, not for the garnishment. debian issues And then, I've a couple of questions there, for which I've seen no real answer: and I'll skip the questions I don't want to ask, or more precisely I don't want/fear to read the answer to: Disclaimer Don't get me wrong. I've been really happy when I've seen that java entered non-free (even if I don't like the language but that's another story and is off topic here), because that meant that progress had been done in the good direction, and that's a thing I just have to praise. But then I've heard people complain about the damn license, and went read it. And then, I've been really disappointed, and I felt betrayed by those three people:
yes, I'm a DD, but I'm also a Debian User, and I trust my fellow developpers to bring to debian packages that don't have license issues, and will be supported enough[3]. As a user, I feel betrayed because nothing that I expect from a package that is in debian (even in non-free) can be guaranteed for the java package.
Notes [1] since there is a 3 month delay, it means the new stable has to be ready in that delay [2] no to mention the haste and prematurity of that action [3] yes, even for non-free. the sole non-free package I install is the nvidia driver, that qualifies to the durability and support in debian criterium.

22 May 2006

Uwe Hermann: Podsploiting

The RedTeam, a penetration testing group, has released two security advisories which explain security holes in two podcast clients (podcatchers). Both exploits are possible because the input of the programs is not properly (or at all) sanitized. Basically, they call system($wget_cmd) where $wget_cmd is shell (/bin/sh) code which shall download a file via wget. As the $wget_cmd string contains contents from an untrusted source (HTML/XML on some random server), this results in an "arbitrary code execution" vulnerability, the worst-case scenario you could imagine. If someone is naive enough to even run such a podcatcher as root, this means a remote root exploit! Anyways, the RedTeam is definately correct in saying that more and more people start listening to podcasts, and more and more podcatchers are written. But few of them are written with security in mind, which leaves many listeners at risk... I wonder how popular closed-source podcatchers such as iTunes are affected here. Are there any published audits/audit-results (black-box auditing, obviously, as you don't have the source code) for iTunes? As for Free Software implementations... consider this a call for reviews and audits! If you know/use one of the many podcatchers (or an RSS feed aggregator, which are affected by similar issues), and have some knowledge on secure programming, get the source and review the application. Make the software you use, and the world at large, a little safer. I'll definately have a look at the programs I'm using soonish...

21 May 2006

Andreas Metzler: kicking gnutls packaging

Over the last days I have taken a shot at getting the packaging of the gnutls dependency chain in shape. I have now got packages of gnutls13 1.4.0, libtasn1-3 0.3.4 and opencdk8 0.5.8 which at least when reading the debian diff seem to be ok. Once libtasn1-3 is in the archive gnutsl12 could be updated to 1.2.11 and we could try to get rid of libtasn1-2 and gnutls11. The packages currently in the archive have an unreadable diff, as they are not based on upstream's tarballs but on sources pulled from cvs. I hope the package maintainer Matthias Urlichs will reappear soon and can make use of my patches.

Wouter Verhelst: NFSv4

a.k.a., NFS on crack. Supposedly NFSv4 is able to support kerberos authentication. I guess that means this post should really be called kerberos_IV, or so. Oh well. Doing NFSv4 involves some magic bits, which isn't something I principally oppose. It also involves a lot of extra daemons, making the thing a lot more complex to set up, which is a pity. Well; at least the procedure is documented. The crack bit, though, is that, according to that HOWTO, you need to bind mount whatever you want to export before being able to actually export stuff. Anyone care to explain to me why that is?

Randall Donald: Packaging Team

So I've been thinking of assembling an Debian NVIDIA packaging team. This would include the current drivers, legacy drivers, modules, nvidia-settings, nvidia-xconfig, nvclock (essentially most of my packages). Of course, an invititation would also go out to other NVIDIA package maintainers. Hopefully this will produce more heads thinking about issues as well as reducing delay in keeping packages up to date as well as people who can test on different hardware (important for maintaining the legacy packages). I have some people already in mind for this so I'm not asking for volunteers at this time. I also don't know for sure what resources we would use. Alioth may be out given the driver's licensing but I can set up something on my own server if need be. I still have more thinking to do and questions to ask but this feels like the direction I maybe taking the packages in.

20 May 2006

Meike Reichle: Materials concerning my talk ...

will be put up on my website sortly. (I.e. as soon as I fixed the typo and replaced the transparent png that f***s up OpenOffice's PDF export IN EVERY SINGLE SLIDE :( I should really start using beamer or magicPoint or something ...)

René van Bevern: ion3-scripts for Lua 5.1 also in experimental (and: strange language designers!)

As Norbert already pointed out, the Ion 3 suite of packages is currently hanging around in experimental, because Ion 3 now uses Lua 5.1, which breaks most of the user-contributed scripts. Fortunately, I think this state will be for long, because I have not been lazy either and changed almost all scripts to work with Lua 5.1 and uploaded an updated ion3-scripts package to experimental. This is the first time ever that I see language designers breaking basic things in their language with a minor revision. It is that the for-loops for Lua 5.1 are incompatible to the for-loops that were commonly used in Lua 5.0 programs. You can imagine what that means to most Lua programs, since a for loop is rather not a seldom-used construct. ;-) But hell, Lua also makes its parsing of floating point numbers dependant on the current locale, i.e. 5.1 is a valid number in a Lua program when parsed in LANG=C but not in LANG=de_DE. Okay, I am straying from the subject ... what I really wanted is to ask you to test the new ion3 package in conjunction with ion3-scripts from experimental and report bugs on still broken scripts. My impression is that it is working rather fine and can go to unstable soon.

David Pashley: Choosing Member Functions at Runtime in Java

Have you ever wanted to call a member function in your class, but not known what it will be at compile time? I'm writing a SAX parser and would like a function for every element name. I could write a massive switch statement in the startElement function, but this will quite quickly become unmanagable for a large schema. The alternative is to look to see if a particular member function exists and call it. To do this little bit of magic we need to use Java's introspection API. The first thing to do is to get a Class object for our class. We can do that by calling:
Class klass = this.getClass();
We can then look up the method we are looking for using Class.getMethod, but this function requires an array of types that the method we are looking for takes as parameters, so we get the right version of an overloaded method. We can do this with:
Class[] arguments =   Int.class, String.class, URL.class ;
Method method = klass.getMethod("foo", arguments);
Now we have our method, we can call it using the Method.invoke() call. This takes an object as the first parameter, which we can use this, and an array of Objects for the parameters.
Object[] values =  bar, baz, quux ;
method.invoke(this, values);
But what happens if our class has no member method called foo()? Well, Class.getMethod() will throw a NoSuchMethodException, so we can just throw a try/catch block around the code to deal with unhandled functions. It's worth pointing out that Class.getMethod() also throws SecurityException and Method.invoke() throws IllegalAccessException, IllegalArgumentException and InvocationTargetException, so you'll want to catch Exception too. We can chain some of these calls together and the result for my SAX parser is:
public void startElement(String uri, String localName, String qName, Attributes atts) 
            throws SAXException  
   try  
       Class[] argTypes =   String.class, String.class, String.class,
               Attributes.class  ;
       Object[] values =   uri, localName, qName, atts  ;
       this.getClass().getMethod("startElement_" + localName, argTypes)
               .invoke(this, values);
     catch (NoSuchMethodException e)  
       log.debug("unhandled element " + localName);
     catch (Exception e)  
       e.printStackTrace();
    
 
With this arrangement, when I want to handle a new element in my code I can just make a function like:
public void startElement_foo(String uri, String localName, String qName, Attributes atts)
            throws SAXException  
   ... 
 

19 May 2006

Peter Van Eynde: The formal dinner

I talked about the dinner in my non Debian/lisp blog and put the pictures up on flickr but I think some things need to be said even if there should be no need to say the obvious.

(I'll try to use Enrico's guidelines here so I've deleted 2 pages or rant )

Being part of Debian is more then packaging and flamewars on Debian-devel, it is about working together with respect. In general Debian people (not only maintainers) are intelligent, strong willed people. This makes for some interesting (and strongly worded at times) debates, but we should never lose the respect for the other person and to act when the respect of others is violated.

Aigars Mahinovs: Debconf6 day 3: BOOT!

May 16th. In the morning I was kind of lazy and watched the talks via the webcast which worked very nice. I was even able to give some comments via IRC feedback. Very nice experience. One good idea popped up in the IRC there - it would also be useful to have an audio only webcast to conserve bandwidth. The "early" morning discussion about etch release and kernel to use in it was quite interesting to watch while I did not necessary got all the things that were said there. Then in the tower there was a great BOF session about speeding up the boot. It was a very nice session because there was a lot of discussion, lot of questions and comments from the audience. A GPL license talk followed the boot BOF and again I watched it via the webcast from the hacklab. Convenient. But then my network went down somehow I found it faster to walk to the tower then to get it back up. Several good questions were asked about the problems with current GPLv3 draft. Some ideas formed about how to fix the Affero clause using "public performance" phrasing. An insightful insight into the brain of debian-legal. Mao is deep ingrained into the brains of Debian Developers
marga: it has been observed that debian members respect each other.
Myon: are you explaining the rules?
marga: Myon, actually, I wasn't, but I wouldn't mind explaining them
dondelelcaro: Myon, is that against the rules?
Myon: I would have to take a penalty card if I said 'yes'
dondelelcaro: talking.
Enrico did the social guidelines dance outlining the recommendations for peaceful coexistence without resorting to telletubbie or inquisition practices. It sounded very reasonable as recommendations, but those must never be promoted to any kind of policy. Enrico also mentioned that. Penny Peach, we miss you. After dinner a bunch of small mexican-looking females bunched first around the Japanese guys and then around the group where I was in. They were all smiling and very exited. They spoke very fast Spanish while rubbing their clothes and making horizontal back-and-forth motions with their hands. Nobody of us spoke Spanish. And they kept speaking and rubbing. My mind raced to present one unlikely reasoning after another, but nothing really fitted the situation. After a few minutes of total confusion we found a Spanish speaker who found out that they wanted ... an iron. An iron to iron their clothes. Doh! I was so confused that I only got 1 blurry photo from the ... incident. Random note: the fan control system here is quite ... buttony. Then we had a BOF about packaging of web applications and other applications that need database access. Maintainers and users of such things will be happy to hear that the situation is being resolved and there will most probably be a policy for etch+1 for that. Large ISPs and hosting providers will be happy to hear that their need are also heard (or will be heard if you join the process) and most probably it will be possible to activate/deactivate a web application for a certain user at a certain path of a certain virtual host with a single command that can also be scripted. In any case if you are interested in this development, please participate now, so that your need can be heard too. After the BOFs the, now official and scheduled, wine and cheese party started. It was briefly interrupted by rain, but the tables were moved under the roof in seconds and the party continued. There were around 40 different cheeses. Most of them were French and almost all of them were very tasty (some were .. an acquired taste :)). I can't say anything about the wine (I do not like the taste of alcohol), but other tasters were expressing very positive remarks. The party went on for a long time with more and more cheeses and vines brought up with time. There was some more hair coloring going on. Then there was the demonstration of use of duck tape on an almost professional HD 1080i video camera. And then there was the public demonstration of present Debian swirl tattoos. Impressive. When I was just going to go to the bed, I was lured into another game of Mao. I must say that playing Mao right after the wine and cheese part is ... interesting. Some girls got ... lucky ... seven. And there was still quite a lot of hacking going on around two in the night when I went to sleep. Tomorrow is the daytrip.

Barry Hawkins: DebConf6 Formal Dinner Inolvidable

A Coronation A coronation of the oddest sort Surreal, just surreal. A Cascade Water from the torrential downpour came through the wall like a waterfall An unbelievable rain came, and eventually overwhelmed the roof and came down the wall like a waterfall. A Calamity Imagine a black square here. The power went out, and we all just rolled with it. It was kind of fun, actually. A Cleanup In the spirit of community numbers of Debian people collaborated for a quick cleanup In the spirit of community, numbers of Debian people collaborated for a quick cleanup.

Next.

Previous.