Gentoo Logo
Gentoo Logo Side
Gentoo Spaceship

Contributors:
. Alec Warner
. Alex Alexander
. Alex Legler
. Alexis Ballier
. Andreas Proschofsky
. Andrew Gaffney
. Arun Raghavan
. Ben de Groot
. Bernard Cafarelli
. Bjarke Istrup Pedersen
. Brent Baude
. Caleb Tennis
. Christian Faulhammer
. Christian Zoffoli
. Damien Krotkine
. Daniel Drake
. Daniel Gryniewicz
. Daniel Ostrow
. David Abbott
. David Shakaryan
. Davide Italiano
. Denis Dupeyron
. Diego E. Pettenò
. Donnie Berkholz
. Doug Goldstein
. Fabio Erculiani
. Gentoo Haskell Herd
. Gentoo News
. Gilles Dartiguelongue
. Greg KH
. Gunnar Wrobel
. Gustavo Felisberto
. Hanno Böck
. Hans de Graaff
. Ioannis Aslanidis
. Jan Kundrát
. Jeffrey Gardner
. Jeremy Olexa
. Joe Peterson
. Jonathan Callen
. Jonathan Smith
. Jorge Manuel B. S. Vicetto
. Joseph Jezak
. Josh Saddler
. José Alberto Suárez López
. Kenneth Prugh
. Krzysiek Pawlik
. Lance Albertson
. Luca Barbato
. Luis Francisco Araujo
. Marcus Hanwell
. Mark Kowarsky
. Mark Loeser
. Markos Chandras
. Markus Ullmann
. Mart Raudsepp
. Matthias Geerdsen
. Michael Marineau
. Michal Januszewski
. Mike Doty
. Mike Pagano
. Mounir Lamouri
. Nathan Zachary
. Ned Ludd
. Nirbheek Chauhan
. Olivier Crête
. Patrick Kursawe
. Patrick Lauer
. Patrick McLean
. Paul de Vrieze
. Peter Weller
. Petteri Räty
. Pieter Van den Abeele
. Piotr Jaroszyński
. Remi Cardona
. Renat Lumpau
. Rob Cakebread
. Robert Buchholz
. Robin Johnson
. Romain Perier
. Ryan Hill
. Sebastian Pipping
. Serkan Kaba
. Shyam Mani
. Steev Klimaszewski
. Stefan Schweizer
. Steve Dibb
. Stuart Longland
. Sune Kloppenborg Jeppesen
. Sven Wegener
. Thilo Bangert
. Thomas Anderson
. Timothy Redaelli
. Tiziano Müller
. Tobias Klausmann
. Tobias Scherbaum
. Yuval Yaari
. Zack Medico
. Zhang Le

Last updated:
October 31, 2009, 23:04 UTC

Disclaimer:
Views expressed in the content published here do not necessarily represent the views of Gentoo Linux or the Gentoo Foundation.


Bugs? Comments? Suggestions? Contact us: planet@gentoo.org

Powered by:
Planet Venus

Welcome to Gentoo Universe, an aggregation of weblog articles on all topics written by Gentoo developers. For a more refined aggregation of Gentoo-related topics only, you might be interested in Planet Gentoo.

October 31, 2009
Diego E. Pettenò a.k.a. flameeyes (homepage, stats, bugs)
Changes in the comment antispam (October 31, 2009, 11:02 UTC)

You probably remember the series of posts I already wrote about my antispam that uses the User-agent field to reject at the source a number of comments that are likely to be spam. The idea is definitely working right, just yesterday it filtered out 134 spam comments (no false positives, after a quick check), and at the same time I have no need to use obnoxious captchas, or to block comments on old posts (and just yesterday I got an interesting one on an almost year old post ).

Unfortunately this was still not perfect; luckily there is a second antispam pass that is applied directly by Typo using some heuristics (like the number of links) and akismet; this second pass is both good and bad. For instance it always marks as spam the posts where people do provide references for their comment, which is a bit tiresome. Sure it does not delete the posts, but only queue them up for moderation, but still. Unfortunately the second pass couldn’t be disabled or loosened up because usually I would get around three spam comments every day or so (which is still a lot less compared to the hundreds sometimes the filter kills at the source).

But last night, thanks to Mark, I was able to refine the antispam even more (and the comment policy now is updated to reflect that); I added a couple more DNSBL (DNS-based blacklists): proxyBL DroneBL and CBL . I left them running on the untested input during the night and the results are quite interesting. Just one or two hits on ProxyBL, but about two posts an hour hit DroneBL right away, and of those a few wouldn’t have hit my usual User-Agent-only antispam.

But since I don’t want to hit other services when I can filter the spam myself, I’ve now re-configured the checks to only apply if the comment didn’t hit any other check first (this way all the bogus user agent posts would be dropped and then the remaining “valid” ones would be checked). In particular, CBL is set as the very last check, for a very important reason: CBL does not sanction its use for non-mail related filtering. Unfortunately, CBL is also the only list that had a couple of IP addresses from which false negatives arrived yesterday, so I really wouldn’t have wanted to ignore it entirely. But I am responsible for any problem related to CBL with this kind of use; please don’t ever bother CBL upstream about this.

And another change, related to the blog spam, might be of interest. I’ve tried re-enabling the trackback support, but as it was easy to guess, there seems to be nothing but spam passing through it nowadays; very few valid installations actually use the trackback support, and they definitely don’t justify the amount of spam I’d be getting; on the other hand, Typo should be able to trackback itself to link posts together when I note something about them, and that’s one thing that I’d really like to keep; so for now I’ve enabled the trackback feature from within Typo, but I’ve stopped it on the Apache configuration, by allowing only the server’s own IP address to access the location.

I’ll publish the modsecurity configuration someday in the near future, hopefully.

October 30, 2009
Jeremy Olexa a.k.a. darkside (homepage, stats, bugs)
Gentoo: About “optimizing” (October 30, 2009, 18:26 UTC)

As Linux-Mag points out (Gentoo Optimizations Benchmarked) using gcc optimizations for "omg, teh speed" is not all that practical. Sure, I'll add some compiler flags here and there as long as I am compiling everything anyway but I don't consider that a feature of Gentoo Linux.

I actually prefer Gentoo for the package management and customization via USE flags (even with the headaches that they cause sometimes). :)

Steve Dibb a.k.a. beandog (homepage, stats, bugs)
pixar blu-ray (October 30, 2009, 14:29 UTC)

Reading the Blu-Ray review for Up, I would take this statement and drop in Wall-E for the movie, and the same would be true:

"Up brushes against the stratosphere with a dazzling, picture-perfect ... transfer that boasts more breathtaking spectacle and stunning scenery in a single shot than many high definition presentations deliver in two hours."

I can't comment on Up since I don't own a copy, but I can say the same holds for Wall-E.

Watching a Pixar movie on Blu-Ray made every single hedge I ever had about the format completely disappear.

Doug Goldstein a.k.a. cardoe (homepage, stats, bugs)
Improved VDPAU abstraction (October 30, 2009, 13:47 UTC)

Recently, Aaron Plattner from NVIDIA announce libvdpau 0.2, which a wrapper for driver specific VDPAU implementations. You may have noticed that nvidia-drivers shipped a libvdpau.so library for a while now for apps to link against while placing their actual implementation in libvdpau_nvidia.so. Newer ebuilds of nvidia-drivers will no longer install libvdpau.so, nor any of the headers and install will rely on this being installed. Other applications, like MythTV will instead depend on x11-libs/libvdpau.

In addition to this change, there’s a new package called vdpauinfo in the tree. Some people might know it from the NVNews forums as vdpinfo. However, Aaron got the author’s permission to add it to freedesktop.org and rename it to vdpauinfo to match the library.

Mounir Lamouri a.k.a. volkmar (homepage, stats, bugs)
Introducing media-video/miro (October 30, 2009, 10:53 UTC)

Miro described itself as Open-source, non-profit video player and podcast client. It's actually somewhat a swiss-knife for videos if you are using video sharing services (like youtube or dailymotion), following podcasts and downloading videos via bittorrent.
Miro lets you do everything in one place. You can directly search for a video, download it and see it locally. Then you can organize your videos whatever it comes from and remove them when you want. To me, it's sound like the equivalent of songbird for videos.

Miro is also known for it's "Adopt a line" campaign which consist of paying 4$ per month to adopt a line of code and support the project. An innovative idea which seems to work.

So, bug 131527 is now fixed and Miro is known as media-video/miro in Gentoo's tree.
Try it and report bugs !

NFS access restrictions on the PCH A-110 NMT (October 30, 2009, 08:25 UTC)

My Linux based Networked Media Tank (NMT), A PopCornHour A-110 normally only allow clients in the same subnet as the NMT to mount NFS exports. If you somehow need to change that, here is how to do it.

First you have to install telnet or dropbear SSH to have console access to the PCH.

I didn't quite find any convenient way to edit files on the PCH, so I'm just using FTP to download, edit on the laptop, upload and move into correct place.

Log in to the PCH:

cp /mnt/syb8634/etc/nfsserver.sh /share/

Download and edit it with your favourite FTP client (default username and password combo ftpuser:1234).

Add the following three lines just before the reload function. Do remember to remove the leading +:

then
/usr/sbin/statd > /dev/null 2> /dev/null
fi

+ #Hack to change IP restrictions of NFS mounts
+ echo "/share 192.168.2.0/255.255.255.0(rw,sync,root_squash,anonuid=1001,anongid=1001)" >> /etc/exports
+ exportfs -a
}

reload()
{

Likewise you can change reload if you want.

Remove the file from /share before uploading:

rm /share/nfsserver.sh

Then upload it with FTP.

Move it in place and restart the service:

mv /share/nfsserver.sh /mnt/syb8634/etc/nfsserver.sh
chmod 755 /mnt/syb8634/etc/nfsserver.sh
/mnt/syb8634/etc/nfsserver.sh stop
/mnt/syb8634/etc/nfsserver.sh start

Mount and enjoy:-)

Jeremy Olexa a.k.a. darkside (homepage, stats, bugs)
Using sshfs with rtorrent (October 30, 2009, 01:56 UTC)

I had this genius idea about using sshfs with rtorrent. I thought that this use case would fit best in situations where you have good bandwidth but not much diskspace, such as my linode VPS (review). So, I'll attempt to share my findings in this regard.

If you are not familiar with rtorrent. You just need to know that it is a powerful, lightweight bittorrent client. It has a "watch" feature that watches a directory for new torrents, and obviously it can put downloaded files in a specified location. I tried both of these with sshfs.

First, I was having trouble with rtorrent just 'freezing' up when I put a torrent file in the sshfs accessible watch dir. I didn't quite know what was wrong here. Research led me to rtorrent bug 322 and that sshfs did not support filesystems without mmap properly. Darn. More research led me to a recent kernel commit that looked promising. Low and behold, reboot my host with 2.6.31.x kernel and rtorrent works with sshfs watch and destination directory. Yay.

Well, not so fast...

The performance is quite poor with the destination directory on sshfs. This is to be expected because now your download speed for torrents is limited to the download speed of your final destination. But, rtorrent was only giving me a sustained speed of 1/4 of that demonstrated with a simple file copy to the destination. I speculate that this is from the rtorrent overhead or maybe fragmenting? Not sure exactly and I don't care. My solution to this was to use the rtorrent "move on finished" feature that downloads the file to local disk and then moves it to sshfs destination after it is finished. Amazingly, this works quite well.

My testing scenario was the following:
-79MB Gentoo 2008.0 install cd torrent. With the complete sshfs solution, it took ~6 minutes to download (to the sshfs destination) and then 5 minutes to check the hash. So, roundtrip of 11 minutes from start download to seeding. With the on_finished solution, it took 1 minute to download (to local disk) and 1 minute to check the hash and move to the sshfs destination. For a roundtrip of ~2 minutes from start of download to seeding.

In conclusion, this isn't the perfect solution because you impose a large bottleneck into the mix and unintended I/O activity on the local disk. However, it works for me and what I am doing. Maybe it will give someone else some ideas in the future.

Gnome 2.28.1 full steam (October 30, 2009, 00:04 UTC)

http://cia.vc/stats/author/eva

My CIA profile went from about one commit every 17.35 housr to one every 16.56. The difference does not seem big but the calculation is diluted on about 6 years due to a KDE dev sharing the same nick. This amounts to 158 commits tonight.

~arch is now at about 85% of completeness for Gnome 2.28.1, a few commits are missing due extra complexity (hey it still took my 3 hours to do that). Beware that this release still has a few rough edges, especially policykit migration buts. So if you get cut, please come to bugzilla but do not expect sweet words and attention if I see comments like "dude why do you keep on breaking ~arch". It's ~arch, beat it.

October 29, 2009
Nathan Zachary a.k.a. nathanzachary (homepage, stats, bugs)
Happy Birthday Noah! (October 29, 2009, 19:40 UTC)

Today is a special day--it is the twelfth birthday of the greatest kid in the entire world! I just wanted to wish you a very Happy Birthday buddy, and I hope that this upcoming year brings you the most happiness, joy, and fortune possible. Even though we haven't been able to spend time together lately, I'm always thinking about you. I love you Noah, and always will.

Noah's birthday kitten

This kitten made me think of Ms. Cleo. I hope that she is keeping you company, and that she serves as a reminder in the same way that the note you wrote me does. It never leaves my side.

|:| Zach |:|

David Abbott a.k.a. dabbott (homepage, stats, bugs)
Podcast 65 Bashed In The Head (October 29, 2009, 18:33 UTC)

bash
In this podcast I talk about my progress learning Bash for Gentoo ebuild development.

LINKS:
Bash By Example
http://www.ibm.com/developerworks/library/l-bash3.html
Linux Command Line and Shell Scripting Bible
http://xrl.us/bfzigo
Learning the Bash Shell
http://oreilly.com/catalog/9780596009656
Gentoo Tools
http://devmanual.gentoo.org/tools-reference/index.html
Sed By Example
http://www.gentoo.org/doc/en/articles/l-sed1.xml
Bash Guide
http://mywiki.wooledge.org/BashGuide
Grep
http://www.panix.com/~elflord/unix/grep.html
Awk
http://www.grymoire.com/Unix/Awk.html

irc network freenode channel #linuxcrazy

Download

ogg

mp3

Remi Cardona a.k.a. remi (homepage, stats, bugs)
Response to a comment (October 29, 2009, 08:30 UTC)

Benjamin wrote a comment on my last post, and I'll share my answers here because those questions come up every now and then, so it's better to try to inform everyone. (That and I never write on this blog, so this is a perfect excuse to do so)

If you assume compile problems, why is that thing unmasked?

Xorg-server 1.7 is not getting stabilized, it's just getting unleashed onto unstable. Unstable means exactly that. Of course we try to do our best and we won't release something we know will break. The idea behind unstable is for users to test the new and shiny stuff before it hits stable.

If you don't want to help fix bugs, use stable. It's as simple as that.

I've always been irritated by the way the xorg team handled masked/unstable/stable releases, as even rc's were unmasked at times.

Releases in X-land are tough. The numbers almost mean nothing. For instance, the last stable version in the 1.5 series was 1.5.3-r6. And despite the apparently stable version number, it currently has 80 patches to make it run smoothly.

On the opposite side, the current stable server is 1.6.3.901-r2, which is indeed a "pre point release" only has a couple patches. And 1.7.1 doesn't have any patches.

So don't let the version number fool you, they mean almost nothing.

As for what we put in portage, well X is a complex piece of software. It used to have more than a million lines of code and it's been getting some tough love these last 2 or 3 years. And up until recently, drivers were a mess. I had shivers every time a new driver was released : "How many systems will this break?" was a question I asked myself over and over.

There are probably a lot of people who put the xorg-server in package.keywords because they needed/wanted feature X/Y or because it fixed some bug for them (it did for me). So now I get a release that possibly breaks build in unstable?

Again, unstable is for power users who are not afraid of filing bug reports if something breaks. We try to make sure that things don't break every day, but Gentoo being a source distro with billions of possibilities (USE flags, CFLAGS, arches, packages, ...),you can't reasonably expect us to try every possible combination.

So we ask for you help (via bugzilla) in return. Gentoo is a community distro, after all.

So there, that's it for today, I hope y'all know a bit more about how we manage X and unstable packages.

October 27, 2009
Diego E. Pettenò a.k.a. flameeyes (homepage, stats, bugs)
Blog posts are no replacement for documentation (October 27, 2009, 22:23 UTC)

Since I was asked in a previous post I’d like to make some notes about why I “document by blog post” in so many occasions.

I know perfectly well that my blog posts are no replacement for proper documentation; code, procedures and policies need to be properly documented, and tied to the project they are supposed to document. Documentation by blog post is difficult to write, manage and search, and can be indeed useless for the most art.

So why do I write it? Well, most of the time I start a blog post with some ideas in mind, write down it, and then depending on the feedback I either continue the topic or drop it entirely. I guess the most prominent counter-example is the For A Parallel World (which I know I haven’t updated in a while).

Writing proper documentation is important, and I know that pretty well, I have written and ranted about that before as well. And it’s knowing that, that I started the Autotools Mythbuster project which, to be honest, has given me mixed feedback, and satisfaction. The problem is: writing a blog takes just a modicum of effort, because I don’t have any obligation about form, or grammar, or language; I might soft-swear from time to time in a post, I might rant, I might have some smaller mistakes around, both in grammar and content, and so on. I don’t go updating blog posts to fix grammar and style and so on. Writing complex and organized documentation requires a lot more work, and when I say a lot I mean quite a lot more. Of course the result is also of much higher quality, because of that.

I have tried finding alternative routes to get the good results out without having to just apply that much effort in my (unpaid) free time; the first option was LWN, which actually helped me paying for a good part of Yamato’s hardware. Unfortunately LWN is not a perfect solution for me; partly because my topics tend to be quite low-level, too low-level for the LWN readers I’m afraid, and too distant from the Kernel as well (which is probably the only low-level area that LWN really writes a lot about); the other problem is that LWN is still something similar to a magazine, a journal, and thus does not allow an easy way to organised documentation; like autotools-mythbuster is. It would still be a puzzle of entries; of higher quality than a blog, but still a puzzle.

The classical form for organised documentation is that of a book; in today’s age, ebooks are also quite often used, to avoid the whole mass-production and distribution trouble for topics that might not be of enough interest (interestingly enough, that’s not true still for a lot of books, so lately I actually had to by more paper books because I couldn’t find PDFs of them to use with the Reader). Now, this also have troubles; as you might remember I already tried looking for a publisher for Autotools Mythbuster, before going with the open project it’s now.

The idea behind that would have been putting as much effort as possible into that single piece of documentation, complete it as much as possible and get it out in some complete form. There you go: high-quality results, paid effort, and organised up. Unfortunately, finding a publisher is never an easy task, and for that topic in particular, I ended up hitting a stone wall: O’Reilly already had somebody working on the topic, and the book is out now I think (I haven’t read it). This actually was ignoring a problem with classical books: they cannot easily be updated; and documentation often has to be, to correct mistakes, grammar, style, and especially to be kept up to date with what they document. For instance, Autotools Mythbuster has a specific section on forward porting (which I’ll probably keep updating for the future versions as well).

So the final option was making it an open book; again, the effort is not ignorable, so my first solution was to write on it on a donation basis: would have covered the effort I needed to put into it, and would still have been able to be there for everybody. I didn’t count in the fact that the topic is too developer-oriented to actually be of any use to people who would be donating. Indeed, I wish to thank the last two donors (in terms of time), Thomas Egger (who sent me a good mouse to replace the stupid Mighty Mouse, you’ll soon see results about that, by the way), and Joseph Booker (who sent me some books, I started with The Brief Wondrous Life of OScar Wao because I was meaning to read it for almost two years now, but the useful one will soon prove useful, I’m sure). But they, like most others, never explicitly named the guide. And so I’m trying to find more time for the general postings than that in particular.

Just a note before you start wondering about the guide; yes I haven’t updated it in a while. Why? Because I sincerely feel like it’s not useful any more. As I said it requires a positive amount of effort to be extended; there is, true, some interest on it, but not enough to actually have moved anyone to ever try funding its extension. With O’Reilly now publishing a complete book on the matter, I don’t think it’s worth my time keeping it up. I might still extend it if I have to correct some build system, or if I discover something new, but not going to keep extending it by my own will without such a need.

Bottom-line: I could probably write more extensive, organised, and precise documentation about lots of stuff, especially the stuff I write about on the blog from time to time, but the problem is always the same: it requires time and effort; and both are precious commodity; most of my time is already committed to paid work nowadays, and Gentoo is getting more and more to the third place (first is work, second health). Documenting what I can with the blog is, in my opinion, still better than nothing, so I’ll keep doing that.

Josh Saddler a.k.a. nightmorph (homepage, stats, bugs)
Intel graphics and gaming, Abiword 2.8.0 (October 27, 2009, 19:07 UTC)

Last night I installed UT2004 on my laptop, after not playing it since June. The laptop in question is an older ThinkPad R61i, with an Intel X3100 graphics chip. I know -- not the best for gaming. However, most online reports I found indicate that it's acceptable for such an old game as UT2004, so I figured it'd be worth a shot. The Intel graphics drivers have made a lot of progress in the last two years, especially on the 3D front, right? Right?

Kinda. After reducing all settings to "low" and dialing back the resolution to 1024x768 (native is 1280x800), the game is playable, but with very uneven framerates. Looking toward the middle of a map, or anyplace with a lot of action, introduces a good stutterfest; frames are down to between 8 and 18FPS. I enabled a few extra options such as pixel shaders and VBOs in UT2004.ini to add a bit more performance, but it's still marginal.

I'm rather disappointed. I'm not having nearly as great an experience as other Linux users, and certainly not as good as the Windows gamers who've benchmarked Unreal on this hardware. However, I did also catch the huge xorg-server 1.7 update as well, so maybe there have been some performance regressions since 1.6. It makes it a little hard to determine the areas that could use tweaking. I don't have anything special in my xorg.conf, just a default resolution. It's possible there's a setting I'm missing.

I'd like to try UT2004 on my desktop workstation, which has a RadeonHD 4550 card, but all reports indicate that even the latest git checkouts of the open-source drivers still don't work with Unreal. Apparently the game can't even launch, much less run at playable speeds. But as rapidly as the drivers are maturing, I'm hoping this'll be fixed in a month or so. Call me optimistic. :)

* * *

It looks like Abiword 2.8.0 was released today, so I wrote an ebuild and made it available in my devspace. I've been hand-writing these things for awhile. It took quite a bit of research to determine what went into the 2.7 betas, and now I'll have to do another overhaul of the 2.8 ebuild to account for the new plugin system. There's no longer a separate abiword-plugins package; they're all distributed in the base 2.8.0 archive. This means there will be a lot more tricky configure checks and USE flags, which sucks from a flexibility standpoint. Keeping the plugins in an external package was much simpler, so I'm a bit disappointed by this upstream decision.

Still, right now you can download and install Abiword 2.8.0 using my ebuild. While it needs a few cleanups, it will get you set up with a fully functioning basic Abiword install, though the only available plugin (as shown in the "Plugins" dialog) is .odt support.

This new version launches much quicker than 2.7.10, and it seems to have fixed all the rendering errors and even the crashes that happened with basic operations. Basically, you can click stuff now without worrying. :)

Cleaning up my ebuild is a long task, thanks to those darned plugins. Patches welcome, or I suppose you could always just wait and see what ends up in Bugzilla.

Steve Dibb a.k.a. beandog (homepage, stats, bugs)
my blu-ray ripping trial run (October 27, 2009, 15:47 UTC)

Yesterday, I wanted to see if I could rip a Blu-Ray disc using my PS3.  I really want to get a BD-ROM drive, but they are so expensive still, and since I can install Linux on my PS3, I figured maybe I'd try and save myself some money and see if I could manage to get one ripped and decrypted.  It actually worked, which surprised me.  Ripping the disc was the simplest thing in the world, but the key on the movie I tried (Willy Wonka and the Chocolate Factory) was too new, and currently only AnyDVD has support for it.  I'd love to buy a copy of that, but it only runs in Windows, and it's really expensive.  Instead, I'll just have to wait for the keys to pop up eventually on the doom9 forums.

The first step, though, was getting the PS3 to run Linux.  I took the shamelessly easy way out (and I don't regret it either) and installed Xubuntu.  I won't go into details about how I got Linux on my PS3 since that's well documented.  I will say that I remember quite vividly now why I can't stand binary distros.  Bleh.

The BD filesystem is UDF.  Providing you have a recent kernel (2.6.20, I think) with UDF v2.5 support, you are good to go.  I mounted a remote share and just dumped the disc to an ISO file onto my desktop.

$ cat /media/cdrom0 wonka.iso

That was the easy part.

The hard part was trying to get it decrypted.  I had to use Java tools (bleh) to get to the source.  There are three applications you need.  And if you hate digging through forums and using download services, then I've got direct links for yah:

For Gentoo, you'll need to install the JDK to build the aacskeys library and binary.  I just emerged dev-java/sun-jdk and it worked for me (I know absolutely nothing about Java, but my stabbing in the dark miraculously worked).  You'll also need a runtime environment to actually execute the stuff, and I emerged dev-java/sun-jre-bin and that worked fine, too on my amd64 box.

For aacskeys and Gentoo, you'll need to apply this patch that I cobbled together from what I found on the doom9 forums to get it to compile.  It just fixes the Java include directorys for the Makefile.

Now, I'm still a bit fuzzy about what each program does, and whether you need all of them or not, so I won't go into a lot of detail.  What you want to use, though, is the dumphd program.  But to use it, you'll need to copy the aacskeys library and a file from the bdvmdbg package as well into the path or same directory as the dumphd program.

Once you have that, you can just run dumphd.sh and it'll fire up a simple little GUI telling you if it has all the libraries it needs.  Then you just specify the source and destination, and aacskeys will see if it has a working key to access the disc.

I can't really give much more detail than that, since I'm so new to this.  Suffice it to say, if you read the accompanying README doc that comes with each one, you'll get along just fine.

It took me a long time last night to get just one disc ripped and transferred over my subnet to try it out, and by the time I managed to get it mounted (mount -o loop -t udf wonka.iso /mnt/udf) and access it, it was pretty late.  The keys I had didn't work for my disc, and I didn't want to try the whole procedure over to try another disc.

Anyway, good luck if you try it.  One thing that impressed me is how much simpler it was than I thought it'd be, but what a pain it was trying to figure out where things went wrong.  The doom9 forums are a good resource, but not exactly the best place to find clear, concise information for a beginner.  That part was frustrating.

Personally, I don't think it's worth the hassle right now, the way I did it.  I'll get a BD-ROM sooner or later so I don't have to transfer the content over the network and can instead just test it directly.  But, I started out to see if I could at least get a copy of the ISO and get the tools running all without Windows, and I can.  So, that's progress right there.

Diego E. Pettenò a.k.a. flameeyes (homepage, stats, bugs)
Backward free software advocacy (October 27, 2009, 12:51 UTC)

Another funny thing I noticed on the comments for my guest post about Free Software Fundamentalists is that there is a very strange conception of how to interact with proprietary software when you’re definitely forced to.

Quoting the comment on why you shouldn’t use proprietary software:

.bq When you use proprietary software, you give them market share, which further funds their development, which widens the gap between them and their free competitors. It’s like buying then freeing slaves: you do it out of good intention, but unintentionally you empowers the slave traders, who enslave even more people. True, you can get a mostly free software, but you still empower the proprietary software.

Now, beside the fact that the particular author of that comment really needs some reality check done (comparing software and slavery first, and torture later, would show some serious lack of perspective on their part), one would expect that the problem is the “market share” thing. And indeed, I know that quite a bit of “Free Software Advocates” seem to be sustaining ideas like the Pirate Party, and other kind of “freedom no matter what” activities. Don’t get me wrong, I can understand them to a point, but I’m not really agreeing with them fully.

I can understand very well the point of “civil disobedience” related to the non-availability of some kind of content or software, or so on. As I said before I also download, unauthorized, Bill Maher’s show since it’s unavailable in Italy (for no good reason I can think of). On the other hand I’m not proud of that and, given the choice of paying to watch it, I’d be definitely fine with paying for it.

What I really can’t get my head behind is the idea that, to avoid giving funds to proprietary software developers, you should copy, crack, or otherwise hinder the distribution of that software. Sorry, but respecting copyright is what the Free Software movement has been basing itself on, thanks to the GPL. Now, I know that Stallman now declared that the GPL was a “workaround” and that getting rid of copyright altogether is the way to go… I’m quite sure I don’t agree; we do need a reform in copyright almost everywhere, but I still don’t think that it’s going to help free software to kill copyright entirely.

Piracy is definitely not the way to go, in my view. Of course I’m not the kind of person who says “piracy is bad so get rid of all the tools allowing it”, because I do see that a lot of the tools actually used for piracy are used for very legit cases as well: being able to decrypt and rip a DVD does not always mean that you are going to distribute it illegally; you might want to have it available on an HDD-based set-top-box on your TV; you might want to put it on your iPod or PSP, or whatever, and so on. The same goes for CD.

Piracy is, at many levels, detrimental to Free Software; let me give you an example, getting back to the family unit I described before where pirated software was the norm, even when it only required functions well covered by free software like Gimp, Inkscape or OpenOffice. Now, in their case I was able to bring them on board with the free alternatives based on the fact that, obviously, pirated software often is a truck loaded with viruses and other kind of malware. If it wasn’t for that, their reasoning would have been “If I have to choose between a mediocre software that is available for free, when I could have, as free as that, software that costs lots of money and is thus obviously better?”.

Now, any half-decent computer geek knows very well that “costs lots of money” doesn’t necessarily mean “it’s good” (Windows, anyone?). On the other hand, normal people almost always reason in that sense (and can be seen in so many ways it’s not even funny, be it software, hardware, or stuff that has nothing to do with computers); to ignore this is silly if your target is advocating free software. So you got to find another way to explain it to them.

The usual argument about the philosophy comes up to a point; especially when you sanction piracy, this really starts to be watered down. The argument about lock-ins also doesn’t really count with “commoners” since the lock-in will only mean they’ll keep pirating the same software, and will make sure that all the computers they have have the same pirated software on them. (It would be much better if software companies really tried to struck down heavily on piracy).

What remains is simply this: make sure that the Free Software gets better, and better, and better than proprietary software. To do that, though, you need to get out of the mental shelter of “it doesn’t matter if it’s mediocre, you have to prefer it”. And now please let me cover my ass about one very likely rebuttal that I have seen before: “Well, to me it’s more important that the software is free than it is perfect”; it’s a valid point for you. And I’m definitely not going to tell you “use that proprietary software, it’s better!”.

On the other hand if you wish to force suggest other people to use Free Software, you should learn that most of the users out there care first to get their work done, and then whether the software is free or not. Those who use computers to do any kind of job not directly involved with development will use whatever tool allows them to get paid at the end of the month (and somebody compares that to torture and war? oh my…); those who use a computer just for entertainment will care even less about what they are using, since they don’t even expect reliability out of it (mostly because of Microsoft’s past operating systems, I guess).

Guess who’s really widening free software’s reach? Advocates who have lost contact with reality and the masses of users out there? Or me and the rest of the pragmatic guys who work hard every day to create more and better free software?

Note: I have already said it before but I want to make it explicit once again (with the “right tone” for the issue). I know that a lot of developers out there don’t give a f♥♥k about “widening free software’s reach” and would most likely prefer that “the masses of users out there” stood the f♥♥k away from them. To them I’m not really saying anything, they are free to do whatever they prefer. I’m simply upset by those who declares themselves “advocates” or “evangelists” and then behave in that way.

Windows 7: attention to details? (October 27, 2009, 11:51 UTC)

So I had to buy a copy of Windows 7 for a job, so I actually pre-ordered it some time ago at Amazon UK to have an extra discount (not a bad thing, at the end I paid the Ultimate version less than half than it’s sold here; full version, not upgrade). I’m not going to comment for now about the experience with it; this is just a funny post if you want to take a laugh:

Windows 7 versioning... FAIL!

I’ll leave to you the comments.

October 26, 2009
Remi Cardona a.k.a. remi (homepage, stats, bugs)
Xorg-server 1.7 in ~arch (October 26, 2009, 21:50 UTC)

It's out there now, available in ~arch. Like always, you'll need to rebuild your drivers, just look-up the command given by the server's ebuild (use eread if you've lost the output).

This release took a little longer to unmask not because of the server (it's a nice change). It's because a lot of headers were moved around from library packages to proto packages and vice versa. The ABI of X libraries has not changed, but I'm pretty sure there will be compile errors in some packages.

If that's the case, please file bugs in bugzilla.

Thanks for reading this public service announcement.

Edit: There will not be a package.keywords list for stable users. Xorg-server 1.7 is intended for ~arch users only, at this moment. And all bugs from stable users will be closed INVALID. We will start creating lists when we want to stabilize it.

Steve Dibb a.k.a. beandog (homepage, stats, bugs)
new feeds (October 26, 2009, 17:46 UTC)

I've been having a slew of issues running Apache on my Linode VPS, which I'm still trying to pin down, so in an attempt to offload some of the usage, I'm now going to use Feedburner to provide the RSS feed for Planet Larry.

I know I've played with Feedburner in the past, and kind of flip-flopped on whether to use it or not, but this time I'm sure I'm gonna stick with it.  It's better for users, since they will always have a feed available (whether I have issues or not), and it's better for me since I can offload that part of the network traffic, which is actually quite a lot.

I've already updated the feeds and my apache config to do a permanent redirect, but if you want the feed URLs directly, here they are:

Sorry for the inconvenience.  It seems like everytime I post about Planet it's bad news or maintenance.  Believe me when I say that it aggravates me far more than it does you.

Specifically, the issues I'm having is that Apache is sucking up all the available RAM, of which I only have 360 megs on my account.  It's then rolling over to using all the swap space as well, which only slows things down even more.  I've just started playing with tweaking the MPM configuration a bit, and I'm still trying to find a reasonable solution for my configuration.

In the past, the Linode had been seizing up occassionally, and I'd normally just reboot it and get on with my life.  Recently, I installed monit (an awesome app), and pinpointed that the issue seems to always be with apache.  Now, I'm just trying to narrow it down even  more from there, but offloading the RSS feeds seems like a good step to take anyway ... I get gigabytes of traffic per month just on that, believe it or not.

I'm toying with the idea of setting up lighthttpd instead, but I really prefer apache, and would rather set it up to behave in a low memory environment instead.  So, for any downtime in the near future, chances are it's just me tweaking something.  At least now, thanks to monit, I have a much better idea of when something goes wrong.

Oh, one other tweak I've made is that the planet script itself is more robust as well.  That thing used to run out of control, but I've made some changes that will ensure that if it runs away, at least it won't bring down the system.  I also started playing around with the idea of writing my own feed parser to replace the Planet software completely, and it looks like it's going to be much simpler than I imagine.  I haven't actually started down that path yet, since I have bigger projects to complete, but I'm actually enthusiastic that it'd be far, far simpler than I imagined.

netflix on ps3 (October 26, 2009, 17:33 UTC)

Okay, so you're going to be able to stream Netflix on your PS3 soon, blah blah blah, that's all in the news right now.  However, I'm skeptical as to the connection here, and the way this is being deployed.  Namely, why is this add-on feature provided through a disc instead of being integrated into the PS3 firmware?  I have a simple theory: Sony doesn't want to kill it's little baby, the Playstation Store, that sells and rents movies, and is instead making getting Netflix a bit of a speed bump.

Of course, this is all theory since the actual product isn't out yet, but hey, I like a good mystery.

Before I go on, though, here's the sources of the actual news that everyone is feeding off of.  I know when I'm looking for details I hate reading everyone's interpretation of it in an attempt to get a spin on what it means -- which, of course, is exactly what I'm doing.  At least I'm linking back to the source.

Okay, so, there's three things I find suspicious here about the whole thing:

  1. The Playstation blog entry is written by Netflix, not Sony.
  2. You need a disc to use it.
  3. Sony said back December of '08 that it was focusing on its download service.

My take on the whole thing is that Sony doesn't like it, but they are allowing it, albeit grudgingly.  Using the Playstation Store is a ridiculous experience in DRM that only makes renting movies easier by being able to download them instead of going to the store.  It manages to duplicate the nasty elements of high prices, limited availablity, and poor choice of selections.  Netflix's library isn't that great *right now*, but I'd still rather pay $9 a month to stream as much as I want for one month, versus $5 for one movie limited to a 24-hour viewing period.

Anyway, my big question is, why isn't it part of the PS3 firmware, similar to how it works on the Xbox 360?  Dunno.  Again, I don't know if the disc is a one-time install, or if you need it everytime you want to use the service.  The press release leaves out those details.  In fact, all it says about it is that "Initially, watching movies instantly streamed from Netflix via the PS3 system will be enabled by a free, instant streaming Blu-ray disc that is being made available to all Netflix members."  When they say "initially", I imagine that means that it's not going to be that way forever.

They also say, "Netflix members simply slide the disc into their PS3 systems to reveal movies and TV episodes that can be watched instantly" so I assume that you do have to have it in the box to watch it.

Either way, I guess I'll find out next month if I get my own disc to play with.

The reason I'm watching this so closely though, is because short of the Roku, nothing has come close to delivering a worthy UI to watching Netflix on the TV (that I own ... No 360 for me).  I've written about the Netflix plugin on Tivo before, which is downright embarrassing, so I'm really hoping that the PS3 one will more than make up for that.  I would really hate to have to use the disc every single time, though, since that would really make me lose interest in using it on a regular basis ... and the conspiracy theorist in me thinks that that is exactly what Sony is hoping for.

what i’m watching, part three (October 26, 2009, 16:03 UTC)

I'm starting to notice a curious trend, that I enjoy writing a lot of my blog entries on a Monday morning.  For some reason, that's the time I'm most interested in writing anything at all, and I generally have a slew of topics to pick from.  Today's no different, it seems.

I haven't written one of my posts about recent watching habits in a long time, so I thought it'd be a nice revisit since I've seen a few things again that aren't really deserving of posts in of themselves.  I'll ramble them off in whatever manner I even remember them.

Astro Boy

I ended up seeing Astro Boy, unexpectedly, on opening night even, at the theater ... and I loved it.  The more I think about it, the more I realize how much I liked it.

I was *extremely* skeptical about seeing this one, because of it's manga background ... something that has proven time and time and time again, that I just don't have a passing interest in.  I just don't have the brain for it, I guess, which in some ways is keeping me from becoming a first-class art / entertainment geek.  Ah, well.  My tastes are in a world all their own, that's for sure.

But I remember seeing the trailer, again, about a week or so before the movie came out, and I thought, "Huh, this actually looks pretty good!"  And I liked it.

The story was really simple, and, the best way I can describe it ... almost ... well, simple is the best way to put it.  The story doesn't take any weird, random tangents, instead almost following a direct storyline of the events without any diversion or discussion.  It was actually quite refreshing to see the story neither dumbed down or trussed up.  With one exception, each of the characters was consistent all the way through.  It was just good.  I wanna go see it again.

Oh yah, and every scene with the RRF is just hilarious. :)

Surrogates

I had been waiting to see this movie for a long time, ever since I saw the trailer for the first time.  I just knew I was gonna enjoy it, regardless of how bad it might turn out to be.  I wasn't quite sure what to expect, since it was a sci-fi action / thriller with Bruce Willis, which could go all kinds of directions.  As far as action movies go, it was rather tame ... hard questions about society aside.  That surprised me.

The story itself was weak, which would probably explain why I haven't heard much about it, good or bad, or in reviews and what-not, but the concept it portrayed -- people living their lives artificially -- struck me on a number of levels.  I kept thinking about the many analogies of how our society does that anyway, through the Internet, through virtual escapes of any kind (video games came to mind).  It was just really, really cool.  It also raised a lot of points of you never know who is behind the artifical mask, either.  For someone who gets really sucked into the virtuality of second lives sometimes, and suffers from the after-shocks of trying to use it as an escape during hard times, the film really hit me, and I enjoyed it quite a lot.  It's definitely not going to be a popular theme with the masses, but I liked it a lot.  I wish the story was better, though.

Calling Philo Vance

Now this is an old movie (1940).  I recorded a bunch of Philo Vance movies on my Tivo when TCM aired them a while ago, and I just now got the urge to watch some old movies this weekend, and I found this one.  It was a little odd.

I had a little hard time following it because, apparently, this is a staple character of movies back in the day, and this was the first film I saw him in after he'd already starred in quite a few films and radio shows.  I imagine it would be like stepping in to watch the 14th of 20 Sherlock Holmes films, never have knowing the man or his methods before, and wondering what the heck is going on and why it's interesting.  That's exactly how it was for me, here.

I'd heard of Philo Vance, only in passing, since I've seen his name before in my attempts to collect old time radio shows.

The movie itself moved at a really clipped pace, and Philo solved the murder almost as quickly as he found the details.  Anyway, it was a bit strange, but I love watching old movies so it was still fun.

playing with x264 (October 26, 2009, 15:29 UTC)

There's a couple of reasons I don't encode my video.  One of them being that, everything I encode myself, I can just notice the drop in quality.  However, with the right parameters and the right codec (x264) I can get it looking really nice, and I can hardly notice a difference.  It comes at a bit of a tradeoff, though.

Here's a snip of a sample ffmpeg output I generated last night:

$ time ffmpeg -y -i movie.vob -r 30000/1001 -acodec copy -croptop 60 -cropbottom 60 -s 720x480 -aspect 16:9 -deinterlace -vcodec libx264 -vpre hq -crf 15 -threads 0 movie.mp4

FFmpeg version SVN-r20371, Copyright (c) 2000-2009 Fabrice Bellard, et al.
built on Oct 25 2009 14:09:56 with gcc 4.3.3

Input #0, mpeg, from 'movie.vob':
Duration: 00:29:43.93, start: 0.280633, bitrate: 6492 kb/s
Stream #0.0[0x1e0]: Video: mpeg2video, yuv420p, 720x480 [PAR 8:9 DAR 4:3], 9000 kb/s, 59.94 tbr, 90k tbn, 59.94 tbc
Stream #0.1[0x80]: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s
[libx264 @ 0x1c64530]using SAR=32/27
[libx264 @ 0x1c64530]using cpu capabilities: MMX2 SSE2Slow
[libx264 @ 0x1c64530]profile High, level 3.0
Output #0, mp4, to 'movie.mp4':
Stream #0.0: Video: libx264, yuv420p, 720x480 [PAR 32:27 DAR 16:9], q=10-51, 200 kb/s, 30k tbn, 29.97 tbc
Stream #0.1: Audio: ac3, 48000 Hz, 5.1, s16, 448 kb/s

Stream mapping:
Stream #0.0 -> #0.0
Stream #0.1 -> #0.1
Press [q] to stop encoding
frame=43411 fps=  7 q=-1.0 Lsize=  767982kB time=1783.95 bitrate=3526.6kbits/s

real    103m29.692s
user    155m46.121s
sys     8m0.649s

Which brings me to the second reason I don't encode stuff ... time.  Seven frames per second, on my fastest box at home, heh.  For a 30 minute video, it took a very long time.  The video looks great, though.  I can still notice a drop in quality when there is text or titles on the screen, but that's the exception.  The size was almost exactly 50% the original (1.4 GB to 750 MB).

The backstory for this particular video though, was that it was presented in letterbox, and I wanted to re-encode it so I didn't have to make a pan & scan config for just that file on my box.  So, I cropped the black bars off the top and bottom and resized it.

One small annoyance I have, is that all DVD source video always shows up as 59.94 frames per second when being probed by ffmpeg, and I have no idea why .... every single one of them does that, and it drives me nuts, since all the NTSC DVDs are going to be 29.97 or variable frame rate.  So, I have to specify to encode the new video to 29.97, otherwise, it will encode it to 59.94 by default and nearly double the size.

Also, I'm only doing a one-pass video encoding, ironically because I don't like waiting.

I have little interest in encoding my video, because my boxes are so slow, but at a savings of 50% in storage space, the idea always keeps me curious.  Unfortunately, because I'm so picky about quality, it takes a long time to find something that I like, and even longer to encode everything.  On top of that, I have little to no interest in buying a faster computer right now, so I just kind of shrug the whole thing off.

I can't deny that the video looks very nice, though.  Kudos to x264 and ffmpeg. :)

Diego E. Pettenò a.k.a. flameeyes (homepage, stats, bugs)
Proprietaryware all around us (October 26, 2009, 00:15 UTC)

In a guest post at Boycott Boycott Novell I’ve written about my frustration with so-called “Free Software Fundamentalists”. My main problem with them is that they keep insisting in not using proprietaryware, at all, rather than improving Free Software till it actually becomes the norm.

Now, one thing that might be difficult to understand is that, no matter how hard you try, it’s near impossible to not use any kind of proprietary software nowadays. And while I’m one who fights with all his force to make sure that we have Free Software alternatives in such a state that it can be used in as many things as possible, I don’t try to fight the presence of the other kind of software. I might argue which one between their and my methods is the one that can reach the goal better, but that’s not what I wanted to write about right now.

For now I just wanted to note how impossible it is to not rely at least in part in proprietary, closed-source software (this also ties with an older post of mine about updates):

  • do you have a cellphone? unless you’re running stuff like OpenMoko, I doubt you have it pure free software, since even Nokia’s N900 has quite a few proprietary components;
  • okay so cellphones are evil, but do you have a standard phone? remember: if it has an address book it has a firmware on it (and even if it doesn’t it might have a firmware to manage some functions);
  • do you have a VCR? a DVD player? a DivX player? Is any of that running on a free software firmware?
  • cable or satellite TV? Sky (UK and Italy) definitely have firmware in their decoders (there is also some documentation about GPL violations in satellite decoders);
  • not even that, a simple TV? You know, not only they have firmware now, but they also come with an upgradable firmware (at least, my Sony Bravia does); some TVs also have free software on them (Sharp I happen to remember), although I highly doubt they have no proprietary bits in them; heck, remote controls have firmware as well, at least the programmable ones;
  • any game console? none that I know run on pure free software;
  • computers usually have proprietary BIOS, but coreboot is working to replace that; and at the same time we know of many projects working on replacing firmware for wifi cards (although I still can’t understand; why replacing a wifi card’s firmware, but not the SATA controller firmware?); laptops, on the other hand have a lot of components with firmware on them; for instance I remember Lenovo laptops having firmware to control the fans and similar subsystems; and I’m pretty sure “smart batteries” have firmware as well; UPSes have firmware; external drive enclosures have firmware (and there, replacing the firmware with some free software would definitely be useful, given how many bugs the Genesys Logic firmware has!); even keyboards have firmware, at least Apple’s and probably Logitech’s as well; bluetooth dongles have firmware; harddrives and SSDs have firmware;
  • so okay, you use no external hard drive, a motherboard supported by coreboot and so on, your computer is fine; what about the monitor connected to it?
  • and finally, if you’re not using computers (so what are you doing advocating free software?); are you using a modern microwave oven, dishwasher or washing machine? While there are still lots of those appliances that use no computer-like parts, and thus no firmware, quite a lot of the new ones use firmware which is proprietary; I actually find those quite obnoxious because, for instance, you cannot self-repair your washing machine if the mainboard fries up; the firmware (proprietary) has to be flashed in; and to make it even more impossible, they have to flash it with a special dongle, and a special phone, with UMTS connection;

So really, are you using any proprietaryware at all? If so, stop harassing my freedom of choice for a supposedly higher freedom.

October 25, 2009
Gnome 2.28.1 is there (October 25, 2009, 23:32 UTC)

http://dev.gentoo.org/~eva/gnome/gnome-2.28.0.html

Just added gnome-2.28.1 ebuild to the overlay, only had to keep two dependencies down. Since we are now finished with gnome-2.28 core, time to squash bugs, there is quite a number of them already, if you want to participate, just visit the overlay status/TODO or status/BUGS files, or visit gnome 2.28 official release tracker bug

Played with gnome-shell, kind of nice but still needs applet work done as I can't use gnome-globalmenu applet anymore and I'd like to keep to vertical space real estate. Plus I don't like the actual replacements for notification area and clock applet, they do less. I bit worried about speed in activities menu as well, it's damn slow on my Core2@2.2Ghz which I can't understand.

Also worked on some other ebuilds like geoclue, emerillion and seed, not easy on downstream packaging so delayed until further notice.

Diego E. Pettenò a.k.a. flameeyes (homepage, stats, bugs)
A shared library by any other name (October 25, 2009, 19:18 UTC)

One interesting but little known fact among users and developers alike is the reason why shared libraries are installed on systems with multiple file names. This ties a bit into the problem of .la files, but that’s not my topic here.

Shared libraries, especially when built and installed through libtool, usually get installed with one file, and two symlinks: libfoo.so, libfoo.so.X and libfoo.so.X.Y.Z. The reasoning for this is not always clear, so I’ll try to shed some light on the matter, for future reference, maybe it can help solving trouble for others in the future:

  • first of all, the real file is the one with the full version: libfoo.so.X.Y.Z: this because libtool uses some crazy-minded versioning scheme that should make it consistent to add or remove interfaces… in truth it usually just drives developers crazy when they start wondering which value they have to increase (hint: no, the three values you set into libtool flags are not the same three you get in the filename);
  • the presence of the other two names are due to the presence of two linker programs: the build-time linker (or link editor) and the runtime (or dynamic) linker: ld and ld.so; each one uses a different name for the library;
  • the link editor (ld) when linking a library by short name (-lfoo) isn’t in the known about which version you’re speaking of, so it tries its best to find the library transforming it to libfoo.so, without any version specification; so that’s why the link with the unversioned name is there;
  • the dynamic linker, when looking up the libraries to load, uses the NEEDED entries in the .dynamic section of the ELF file; those entries are created based on the SONAME entry (in the same section) of the linked library; since the link editor found the library as libfoo.so it wouldn’t be able to use the filename properly; the SONAME also serves to indicate the ABI compatibility, so it is usually versioned (with one or more version components depending on the operating system’s convention — in Gentoo systems, both Linux and FreeBSD, the convention is one component, but exceptions exist); in this case, it’d be libfoo.so.X; so this is what the dynamic linker looks up, it’s also not in the known about the full version specification.

Now there are a few things to say about this whole situation with file names: while libtool takes care of creating the symlinks by itself, not all build systems do so; one very common reason for that is that they have no experience of non-GNU systems (here the idea of “GNU system” is that of any system that uses the GNU C library). The thing is, ldconfig on GNU systems does not limit itself at regenerating the ld.so cache, but it also ensures that all the libraries are well symlinked (I sincerely forgot whether it takes care of .so symlinks as well or just SONAME-based symlinks, but I’d expect only the latter). A few packages have been found before explicitly relied on ldconfig to do that using a GNU-specific parameter (a GNU lock-in — might sound strange but there are those as well) that takes care of fixing the links without changing the ld.so cache.

And there our beloved .la files come back in the scene. One of the things that .la files do is provide an alternative to the -lfoolibfoo.so translation for the linkers that don’t do that by themselves (mostly very old linkers, or non-ELF based linkers). And once again this is not useful to us, at least in main tree, since all our supported OSes (Linux, FreeBSD, with all three the supported C libraries) are new enough to properly take care of that by themselves.

Nirbheek Chauhan a.k.a. nirbheek (homepage, stats, bugs)
What's missing in Btrfs (October 25, 2009, 16:33 UTC)

So, after being completely betrayed[1] by Ext4 not once, but twice, I decided to evaluate my FS options for /home .

  • FAT* are not an option, neither is NTFS.
  • Ext2 is primitive and HFS/HFS+ is just not Linux.
  • JFS is nice, but (atleast parted) doesn't support grow/shrink.
  • I've used XFS before, and found it to be more reliable than Ext4. However, deleting dirs with thousands of small files is too slow (a common operation when compiling)
  • ZFS would've been an option if my earlier experiences with ZFS-FUSE weren't so horrid.
  • Did not even consider NILFS. It's too new, and I don't know much about it.

It ended up being a choice between the reliable Ext3, or the new-fangled Btrfs. Why Btrfs? Because I've been using it as my Gentoo Distfiles and Portage tmpdir since v0.16, and found it to be the /most/ resilient to power failures of all my partitions.

I ended up selecting Ext3 for /home, but let's see why.

What's missing in Btrfs:

  1. Growing the filesystem to the "left" of the partition. The error message when you try this is cryptic (common in btrfs-progs). However, since for other FSes this essentially involves "move to left and grow to right", I suppose the "move" part is what's missing in btrfsctl.
  2. Pathetic ENOSPC handling. It either throws an ENOSPC at around 75% or when the metadata space fills up. Not sure which, but it's supposedly fixed for 2.6.32.
  3. Volumes once created cannot be deleted. Again, fixed in 2.6.32.
  4. Parted doesn't support editing/creating Btrfs partitions. Support for detecting it was proposed recently; but, I still don't see it in either "master" or "next". This is not a Btrfs problem, but certainly affects whether I'd use it.
  5. There were other minor irritants (with btrfs-progs, mostly), but those will go away with time

Ext3 might have bad performance (especially w.r.t fsync), but atleast it's more reliable. In conclusion, I'll use Ext3 in data=ordered mode for /home till 2.6.33 is out; and then I'll convert my Ext3 partition to Btrfs and forever be happy :}

1. betrayed == sending everything into /lost+found after a forced fsck due to an earlier fsck after a power failure

Stuart Longland a.k.a. redhatter (homepage, stats, bugs)
Dusting off the MIPS boxes (October 25, 2009, 12:06 UTC)

Well… it has been a while… No, I haven’t gone AWOL, just been busy with other things for the past few months.

I’m now in the process of updating my MIPS boxes so that I can resume testing packages. I now have a stable kernel on my O2 (I nicked Debian’s kernel image… to install you just run ar x on the .deb, then unpack the data.tar.gz created into your /) and can seriously look at the userland.

First priority will be developer-related tools that I know well and can test quickly… Subversion is one that I’ll probably tackle, since the version we currently have keyworded is masked. Ditto for git. I’m sure I’ll find other things to get started on, but those two will make doing everyhing else easier.

I’ve also started on some new profiles. People can have a look at http://git.longlandclan.yi.org/?p=gentoo-mips-profiles.git or clone the repository at git://git.longlandclan.yi.org/gentoo-mips-profiles.git to give them a try. When I’ve given them a good thrashing and am satisfied, I’ll look at merging them into the tree, but for now, this is my staging area.

Hopefully with a stable base system upcoming, and new profiles, then I’ll look at new stages, and get this show back on the road.

Testers wanted for x86 (October 25, 2009, 11:15 UTC)

You are running a stable x86 system (at least almost, and for the core components like kernel, system set and X)? Great, we are looking for your help. If you want to try out the following packages and report back (even if everything is running smooth) to me (fauli AT gentoo.org) or the team (x86 AT gentoo.org), we would be happy. Stabilising so many core compontents that might render you system unusable is a big thing, so a lot of testing is appreciated. The packages in detail:

Thanks in advance to everyone who cares

Gentoo Ten Live DVD 10.1 Release (October 25, 2009, 04:03 UTC)

Attention Gentoo Community,

After numerous bug fixes and enhancements the Ten Team would like to encourage everyone to try out the 10.1 release.

A FAQ is available to assist you. We have also started a thread in our Forum. Please post any BUGS you encounter.

Please download the latest testing release for your architecture Gentoo Ten Live DVD 10.1 x86 | Gentoo Ten Live DVD 10.1 amd64.

Thanks for your continued support,

The Gentoo-Ten Project

David Abbott contributed to the draft for this announcement.

October 24, 2009
FDC09 photos! Here they are! (October 24, 2009, 20:36 UTC)

As promised, here are some pics from FDC09! Michele Tameni, Fabio Erculiani (me), Vincenzo Di Massa and Yusef Maali (new, “honoris causa” Sabayon developer) on these.

Tobias Klausmann a.k.a. klausman (homepage, stats, bugs)
Working together (October 24, 2009, 15:33 UTC)

Recently, I've noticed some behaviour by package maintainers that really annoys me. I'm talking about the way stabilization requests are made. Normally, a package maintainer opens a stabilization request bug (STABLEREQ) detailing which version(s) of which package(s) he wants the arch teams to test and stabilize.

Another closely related request which suffers from the same problems I'll detail below are keyword requests. Those are pretty much the same as STABLEREQ, but for "~arch" instead of "arch". Also, the testing required usually is not as strict as that for STABLEREQ for obvious reasons.

For simple packages, neither usually causes problems. For complex packages, this may mean that dependencies need testing and keywording, in some cases five to ten packages on top of the one requested. Unfortunately, some package maintainers have taken up the habit of just dumping the request for their package in bugzilla without checking what dependencies might be needed. Checking the dependencies also involves which versions of the dependencies actually work, which ones are stable (yes, this might mean talking to other package maintainers!).

Another related gripe I have is being pushy with time frames when stuff should be tested and stable and when trouble comes up (test suite fails etc), completely ignoring the bug report the arch team files for half a year or longer.

This kind of added workload (of rather dreary work, to boot) is what makes arch testing so tedious sometimes. Not to mention the burn-out it causes. Not getting any positive feedback (from either users or other devs) doesn't help, either.

Guess I'm turning into a grumpy old dev. But still, try to be a bit nicer to the arch testers, mkay?

PS: Note that there are very positive counterexamples, too: the emacs guys always provide test plans, the security guys are always nice to work with, too. And of course several individuals who are just nice to work with.

Diego E. Pettenò a.k.a. flameeyes (homepage, stats, bugs)
Some notes about Google Wave (October 24, 2009, 14:14 UTC)

I’m still not sure about the whole hype around Google’s new service, Wave. Thanks to Jürgen, I got an invite as well and I’ve been fiddling with it from time to time… I’m not saying it’s useless, but I don’t think it’s excessively useful either.

What I think Google was able to do here was a lot of pre-hype of something that, generally, is once again mediocre (and definitely the code was; the first days I tried it out, the “something went wrong, please refresh” message was absolutely common). And again the whole “invite frenzy” is working very well for them. The idea that it’s something that just a “limited set” can look at makes the product much more desired than it would be if it was simply accessible to anybody.

And to be honest, every time I read about people “stealing invites” and tricking others about entering the preview I start to worry about the destiny of humanity as a species. At least, I have yet to see a literal telephone sanitizer around. Although I’m not entirely positive that this will keep to be the case in the future. Again, don’t get me wrong, I was curious about Wave as well, given how much I read about it, also on twitter/identica from other FLOSS developers, but at the same time, I wasn’t really going to jump through any hoop to find out how much that was relevant or not.

So, first note I have to make is that the interface seems really to be designed to be part of those web applications that try to replace the standard desktop, with the widgets that behave like standard windows and so on. I don’t really like that idea because I still think that a standard desktop is very useful (I’m a bit worried about Gnome Shell as well, to be honest); I don’t make excessive use of Apple’s Dashboard, nor I use stuff like iGoogle, or the widget support in my Bravia LCD TV. But I guess this might actually be Google’s strategy for their Chrome OS thing.

Behind all the hype around it, I define Wave (to Luca’s laughs) as the Mailing List’s equivalent of what IM is for the email: never going to replace it, but sometimes easier to deal with. It’s probably a good thing somewhat given that we’re still using IRC as the main many-to-many communication channel… and that’s not something I definitely like (for the multitude of shortcomings of the IRC protocol). On the other hand, I find this quite crippled by the fact there are no ways to define groups, or lists, of contacts (it’d be nice to have them, because then I could just “send a wave” to the Gentoo developers in there to ask for some help or plan something out, and so on); somewhat a strange thing to lack, given that both Facebook and Twitter seems to have taken pride in implementing those lists in the months that passed between the Wave announce and the actual opening of the public beta.

One interesting thing is that, while Google implemented a new schema for addresses (@googlewave.com) – which sounds quite pointless to me, one thing I liked about Google Talk is that it allowed me to use the same address for both email, Jabber and MSN – it is adding by default the Google Talk contacts to the Google Wave contact list as they register. I guess this can be considered a minimum feature share (the same contact thing applies to Google Reader subscribers). But what I definitely liked about all that is the way it handles the contacts’ names.

For those who actually set up a proper name in their Google profile, Google Wave uses by default the First Name for display (so you’d probably find me as Diego Elio — or Diego, I’m not sure); though, when there are more than one contact with the same name, it displays the start of the surname as well (so I got Jason S and Jason A in my contacts right now). Some other software should probably learn from that. And that means both open source and proprietary software.

All in all, what I can judge for now is mostly the interface at a first glance; while my contact list is starting to fill up, I don’t see anything in there yet that makes it more usable than a standard IM chat… it might have been even less useful if Jabber/GTalk had working multi-user chats, akin to MSN’s or Skype’s (don’t get me started with the “usability” of Jabber rooms). The fact that it needs the page to stay open (and the fact that the JavaScript in it seem to slow Firefox down positively — I guess that’s their main reason to push for Chrome at this point, or the other way around Wave is their way to push for Chrome), really makes the whole thing a lot less useful in the whole; even just adding a bot to GTalk to tell you when Waves went updated would have been much more useful.

And finally, just one little, tiny note for Google: why on earth you cannot seem to find a single interface style between different applications? Already Google Reader and Gmail have different interfaces; Wave has a drastically different one as well; Google Code even have the navigation bar on the right (when all the rest have it on the left). The two services that have the most common interface seem to be Gmail and Google Calendar, but there are quite a few subtle differences between the two… and that anyway only applies to the default Gmail theme, anyway.

October 23, 2009
Marcus Hanwell a.k.a. cryos (homepage, stats, bugs)
Avogadro 1.0.0 Released! (October 23, 2009, 22:02 UTC)

It is with great pleasure that I announce the release of Avogadro 1.0.0. After many years of work we have released what we consider to be a stable Avogadro release on Mole Day, which seems appropriate given the projects's name. There are still some rough edges, but I think this is a good release. With your help we can fix bugs in the release while working on new features in trunk.

Avogadro - Code Swarm from Marcus Hanwell on Vimeo.

What better time to look back to the beginnings of Avogadro. There was a blog post made today by Sourceforge about Avogadro detailing a little of that history. I have also made a code_swarm movie visualizing the history of the Avogadro project. There have been quite some changes in that time both at a project level and a personal level.

I would like to thank Google for sponsoring me for a GSoC project in the summer of 2007. Also Geoff Hutchison for giving me the opportunity to work with him at the University of Pittsburgh on interesting computational and visualization projects. Then there is my new employer, Kitware, who have provided me with an exciting opportunity to push scientific visualization and cross platform development to its limits.

To finish off a great day, my wife has informed me my new espresso machine has arrived! I am going to Camp KDE in January too!

Diego E. Pettenò a.k.a. flameeyes (homepage, stats, bugs)
Apple's HTTP tunnel, and new HTTP streaming (October 23, 2009, 10:48 UTC)

Finally, last night, I’ve been able to finish, at least in a side-branch, to support Apple’s RTSP-in-HTTP tunnelling support, as dictated by their specifications. Now that the implementation is complete (and really didn’t take that much work to support once the parser worked as needed), I can tell a few things about that specification and about Apple phasing it out in favour of a different, HTTP-only streaming system.

First of all the idea of supporting both the RTSP and the RTSP-in-HTTP protocol, while working with the same exact streaming logic behind the scenes, requires a much more flexible parser, which isn’t as easy because of the HTTP design which I already discussed. While of course, once the work is done, it’s done, the complexity of such a parser isn’t ignorable.

But, since the work was done in quite a short time for me, it’s really not that bad, if the technique worked as good as it’s supposed to. Unfortunately, that’s not the case. For instance, the default configuration of net-proxy/polipo (a French HTTP proxy), does not allow for the technique to work, because of the way this is designed to work: pipelining and re-use of the connection, which are very common things to do with proxies to try improving performance, usually wait for the server to complete a request before they are returned to the client; unfortunately the GET request that is made by the client is one that will never complete, as it is where the actual streaming will happen.

At the end, for testing, I found it definitely easier to use the good old squid for testing purposes, even though the documentation at one (very hidden) point explains which parameters to set to make it work with QuickTime. But it definitely mean that not all HTTP proxy will let this technique work correctly.

And it’s definitely not the only reason. Since the HTTP and RTSP protocols are pretty similar, even the documentation says that if it POSTed the RTSP requests directly, it would have been seen as a bad HTTP requet by the proxy; to avoid that the requests are sent base64-encoded (which means, bigger than the original). But while the data coming from the client is usually scrutinised more, proxies nowadays probably scrutinise the responses as well as the requests, to make sure that they are not dealing with a malicious server (phising or stuff like that); and if they do, they are very likely to find the response coming from the GET request quite suspicious, likely considering it a tentative to HTTP response splitting (which is a common webapp vulnerability).

Now, of course it would have been possible for Apple to simply upgrade the trick by encoding the response as well as the request, but that has one huge drawback: it would both increase the latency of the stream (because the base64 content would have to be decoded before it’s used) and at the same time it would increase the size of the response, by ⅓, one third, due to that kind of encoding). Another alternative would have been to simply encode with base64 the pure RTSP responses, and keep unencoded the RTP streams (which are veicolated over interleaved RTSP). Unfortunately this would have required more work, since at that point, the GET body wouldn’t be simply be stream-compatible with a pure RTSP stream , and thus wouldn’t be very transparent for either the client nor the server.

On the other hand, the idea of implementing that as an extension hasn’t entirely disappeared in my mind; since the channels one and following are used by the RTP streams, the channel code zero is still unused, and would make it possible to simply use that to send the RTSP response encoded in base64. At least in feng this wouldn’t require huge changes to the code, since we already consider a special channel zero for the SCTP connection.

With all these details considered, I can understand why Apple was looking into alternatives. What I cannot understand is, still, what they decided to use as alternative, since the new HTTP Live Streaming protocol still looks tremendously hacky to me. Hopefully, our next step is rather going to be Adobe’s take at a streaming protocol .

October 22, 2009
Nathan Zachary a.k.a. nathanzachary (homepage, stats, bugs)
Goodbye my dear friend... (October 22, 2009, 03:37 UTC)

I received a phone call this evening that will undoubtedly change the course of my life from this point onward. A dear and trusted friend, indeed more like a brother, decided to take his own life this morning. He had been hurting a lot lately, and we talked often about his struggles. However, over the last few weeks, he seemed to be getting better. He was involved in another musical, and when I asked him about it, he had nothing but good things to say; his positive mentality toward the arts had returned. He was the greatest musician I had ever met, but to mention that one talent of his would be wrong as it would lessen the impact of all his other qualities.

Mike, we had some amazing times over the last decade. We played some great music, showed each other new artists, watched some quality films, had a blast at many plays, discussed all the issues of the times, danced with philosophies both familiar and foreign to us, pondered the emotional ups and downs of life, laughed at our own fallacies and shortcomings, discovered new places and new ways to look at old ones, and confided in one another the depths of human existence. I will never forget these times, and for the remainder of my days here I will regret not being able to talk you into sticking it out in order to create thousands more.

May you find the peace for which you were searching, and if you can part with some, please send it back here for the rest of us.

Goodbye my dear friend, and may we meet again at another time to catch up.

With love,
Zach

Ryan Hill a.k.a. dirtyepic (homepage, stats, bugs)
Machinarium on 64bit Gentoo Linux (October 22, 2009, 03:32 UTC)

I had to spend a few hours trying to get Machinarium(flash required) running on my laptop the other night. Turns out the solution was too easy:

  # USE=32bit emerge -av www-plugins/adobe-flash

Damn.

PS. if you like old-school adventure games, puzzles, or desolate post-apocalyptic cityscapes populated by melancholy anthropomorphized robots (yay), you could do worse than support Linux gaming by dropping 20 bucks on this fine piece of work.

October 21, 2009
... Is This Thing On? (October 21, 2009, 21:41 UTC)

Well, I finally broke down and created a blog. I’ll mainly be posting Gentoo-related stuff here, assuming I remember to update it.

Romain Perier a.k.a. mrpouet (homepage, stats, bugs)

That's not the first post about elog, previously Gilles (eva) posted an excellent entry about that (he was a slightly angry probably :p). All these entries are published in order to warn users and they have its importance...So based on that fact it would be really nice if users start reading them :D

Last week, I did read at least 4 bugs about a problem due the newer version of shared-mime-info (which includes a new database format)... If you as users would read your elogs, guess what? Yes you would find the solution in elog messages.

Important...why ?

When a developer has a important message to deliver to a set of users for a given package, usually he uses elog (elog is logged => no excuses..).
Consider the previous example with shared-mime-info, you will have a lot of problems when you try to open some files (typically gnome/kde startup) which would have not happened if you have a look at your logs.

awesome... but how I can read them ?

That's seriously simple :

  1. If you're a geek who loves GTK+ based applications (like me :p) have a look at elogviewer
  2. Use eread (c.f: man eread)

But for our sanity and peace in our souls "READ THEM" before you post a bug :) .
That will help us a lot, by implicitly reducing the number of useless bugs, and in this way, we will not have to repeat things 50 times.

have fun with gentoo ;)

edit: many thanks to scarab for typos & grammar ;)

Diego E. Pettenò a.k.a. flameeyes (homepage, stats, bugs)
Nokia's silliness (October 21, 2009, 18:07 UTC)

No, I’m not referring to Nokia’s involvement with Qt, nor I’m going to speak about the N900 (which still tempts me somewhat). I’m speaking about the good old classic Nokia phones and accessories.

Last week a friend of mine tells me about a special code to get a 20% discount on all Nokia hardware, and since I was looking for a pair of bluetooth headsets (one for the Nokia E75, and the other for the Siemens VoIP phone, for when I have to wait for an hour on the phone be it for personal situations or, most likely, business reasons) I decided I could go with either one or two depending on one particular factor: whether Nokia was ready to send me one with an UK power adapter.

My reason for wanting a bluetooth set with the UK adaptor is that since I’d like to go back to London (and actually I already booked tickets and room for going back at the start of November with a friend of mine), I would be needing either to use again the adapter or to get an UK Nokia power adapter… since I have about ten different Nokia adapters home, and they insist on giving me a new one with each purchase, another Italian adapter would have been superfluous, and at that point getting a UK one would have been a good choice, in my opinion.

So anyway, since I’m a registered freelancer with a valid European VAT ID, I wanted to have a proper invoice for the headset(s), so that I could then declare it a work expenses (it is). Strangely enough, while Italian eshops never had trouble with invoicing me, European shops often seem to have trouble; some have different websites (like Alternate and Apple’s); other have no way to send me a VAT-valid invoice, and in the case of Nokia’s, they ask me to call them. Well not a problem for me, calling to order stuff.

Not in general at least; the problem is that the operator who answered was definitely not Italian. Don’t get me wrong, I have no problem with foreigners, not even with those working on call-centers and the like; everybody got to work, and if they are hired to do that job, I’m fine with that. But at least they should ensure that the guy can understand what he’s being told. In this case, he really had no way to it seems.

First of all, he wasn’t even sure whether he could order me the BH-104 headset with the UK adapter… he seemed to ask, either to someone else or me, whether that could be possible, and then said “No, I don’t think so”. Sigh, well okay, I’ll just get one instead of two then (the other I’ll get once I am in London). I start giving him my data, starting from my name… he asks me to repeat it a couple of times… I finally spell it letter by letter, using the classic Italian method for spelling: city names. It seems like my friend here didn’t know them either… indeed, he wrote down “Iettno” as name, rather than the correct "Pettenò"… not a good start is it?

After 40 minutes on the phone for something that, online, would have taken about 5, I get to do something else waiting for the confirmation email (where I finally see the wrong surname); I open a request at Nokia right away to tell them that they got the wrong name, address (number 155 rather than 125) and even the name for the credit card (which is still my old name, not the new one). I also ask again please if they can replace the SKU# with the SKU# of the UK version, but I get no answer. I’m told a confirmation email would arrive when the order is shipped, so I don’t give too much credit to the fact I read nothing, I expect the order to be cancelled (since Visa should refuse the use of the CC with the wrong name, at least so I thought)…

I read or think nothing about it till today; this morning an ex-schoolmate of mine, whom I have seen a few months backs after probably around ten years, and who lives at 800m from my home, calls me up “I just received a package from the Netherlands directed to you… the courier (UPS if you’re curious) was going to send it back because they couldn’t find the address… I’ll bring it to you this afternoon”. Now, a couple of words thanking Murphy that at least left one thing right, and to my friend who received the package. Obviously, this was the Nokia’s headset.

And here another bad surprise: not only the name is wrong, but the operator didn’t write down my VAT ID! Which makes the invoice unusable as work expense! Terrific!

Okay, okay, at least the headset looks good, I try to pair it with my E75… to no avail. Maybe I’m doing something wrong? I call up a friend of mine to help me out (since he was coming here anyway) and he tries with his E61 (my old one)… works fine; he tries the same with my E75… nothing. Okay, let’s see with the E71… it also works fine at the first try. Fun ensures.

A quick google around later, I found one interesting forum post with an “out there” trick: deleting the SMS Inbox (and outbox as well). Well, what had I to lose? 500+ messages in my inbox… they are there just because it’s too cumbersome to delete them each time, they have no value to me, so I just clear them out… I try with just the inbox first and… uh it works.

What the heck!

Now, Luca actually brought in a good point: my SMS inbox came ported from the E71; and it passed through a firmware update as well; it’s not too far fetched to expect that the database would be in need for some kind of vacuum or something; or maybe while the messaging application could deal with older data format, the bluetooth one couldn’t. Since bluetooth messages are sent like any other message, it’s possible that the two are linked and that might have caused the trouble. In any case, this definitely shows that there is something totally wrong with Symbian!

Really, are we serious? Nokia you made me waste a non-null amount of money with your mistake. I’m definitely going to complain until I can get somebody to at least explain to me why that had to happen in the first place. I start understanding how it is that this trimester has been negative, if this kind of problems is getting common. I definitely didn’t remember this with Nokia.

Supressing repeating log messages with Syslog-ng (October 21, 2009, 17:57 UTC)

Again today I was hit by Stunnel's excessive logging behaviour, causing my log files to grow rapidly with messages like:

stunnel: warning: can't get client address: Bad file descriptor

Which is caused by my Wifi going offline, I fail to see why Stunnel should log hundreds of lines each second if the network is unavailable....

In my five minute search I couldn't really see how I could get Stunnel to change logging behaviour, without disable logging alltogether.

However I finally figured out how to suppress repeat messages with Syslog-ng, like Metalog did back in the old days when I used that. Stunnel from 2.1.1 and up has a suppress(X) option that is not documented very good. With the suppress option Syslog-ng will apparently suppress repeat messages in X second intervals. You can use it simply like this:

destination messages { file("/var/log/messages" suppress(30)); };

So with a bit of luck I should not be hit by Stunnel logging again.

October 20, 2009
Diego E. Pettenò a.k.a. flameeyes (homepage, stats, bugs)
And now the s★★t hits the (MySQL) fans… (October 20, 2009, 21:55 UTC)

My Italian reader might have read an “article” of mine dated back into 2005 (yes it’s a PDF… at the time I had no blog, I only posted a couple of things around, and this one has been written in LaTeX; one day I’ll replace it with a blog page instead, probably). In that article I put in words my feelings that the heavy dependency on MySQL for the Free Software community would have been a problem on the long run.

My reason to write that was that the dual-licensing would have most likely caused gripe and problems if patches weren’t accepted to be released for the dual license, and that a fork of MySQL would easily become incompatible with itself, causing interoperability problems between versions. No, I didn’t write this last week and back-dated it; there are witnesses who read it, and disagreed, back then. On the other hand, I feel like I nailed the problem quite well.

Indeed with the acquisition of Sun by Oracle, quite a few people seem to worry about the destiny of MySQL, and at least one major fork started .

Now, I have quite a few technical gripes with MySQL; partly because I had to fight hard with it when it was still in version 3 and it was quite limited compared to PostgreSQL, partly because I had recently to try fixing its definitely stupid build system based on autotools (calling that autotools is quite an offence in my opinion). So my usual setup makes use of PostgreSQL instead (both this blog and xine’s bugzilla use it). I had unfortunately to deal with MySQL in the recent past as well but that’s fortunately gone now. So myself I’m not really worried of what’s going to happen.

I guess that one thing that I should be glad about is that we’re not still in 2005. Back at the time, most of the web-application that went to be used were very specifically written to work on MySQL. If MySQL was to be forked, like it’s happening now, at the time, then we would have had probably a major problem at our hands. Nowadays, most of the applications, for good or bad, use ORM libraries that tend to be written in such a way that the underlying database is not called directly (I say “for good or bad” because sometimes I get to hate the ORMs quite badly; but on the whole I can see why the abstraction is necessary — no I don’t think that we should all be learning how a CPU work to write software; while that helps it’s no longer strictly necessary).

Anyway, I hope that whatever the outcome, this is going to be a lesson for everybody out there never to rely on any specific piece of code: there is never anything telling what upstream might end up doing… be either killing his wife or selling to the probably biggest company working in the same software area.

Markos Chandras a.k.a. hwoarang (homepage, stats, bugs)
zen-sources again on Gentoo (October 20, 2009, 09:17 UTC)

Having been a crazy ‘zen-sources’ user,  I really miss those kernel patches nowadays. So I took up the bug 288512 and zen-sources are again available for all Gentoo users[1]
I haven’t committed them yet on portage tree because I want to ensure that they are safe enough for everyday usage. So until then, you can get them via a new overlay hosted on github

  • git clone git://github.com/hwoarang/zen-sources.git

or via layman

  • layman -a zen-sources

Special thanks to Brandon Berhent for providing the initial Gentoo ebuilds, and for developing the zen-sources :)

Thanks Brandon :)

Have fun with your brand new kernel sources[2]

[1] http://github.com/hwoarang/zen-sources

[2] http://www.zen-kernel.org

Steve Dibb a.k.a. beandog (homepage, stats, bugs)
star trek on blu-ray: the voyage home (October 20, 2009, 05:29 UTC)

I just got finished watching The Voyage Home on Blu-Ray.  It was nice.  I haven't seen that movie in too long, that I can remember.  I think my interest is fading though.  I stopped the movie at least four times that I can recall to go and do something else.  That's actually pretty common for me, to leave a movie and come back later (which is why I loathe Blu-Ray's lack of universal resume play), but for a movie I like so much, it's a little odd.  Comparatively, I think I watched all of Star Trek III through non-stop.  Oh, well.

The movie was good.  I wasn't really paying attention the video this time though.  It was nicer, though, than the DVD.  One thing I managed to notice this time around is that while they did a good transfer, they didn't bother cleaning up the material at all.  That is, the age of the special effects really shine through when it is shown in such clarity (and in fact, I can remember noticing some of them when I watched it in the theater as a kid ... that's one thing I'm proud of, I got to see all the Star Trek movies since IV on the big screen when they were originally released).  They could have cleaned it up a bit, but didn't bother.  Again, I'm gonna gamble and say that they will probably have an "improved" release version in a few years or so.

I think I need to give the Star Trek movies a break for a bit.  I'm running out of steam.  Well, that, and I hate watching movies knowing I'm gonna review them later.  Sometimes it makes me watch them more critically instead of being able to enjoy it.  That wasn't the case this time though.

Alright, I'm tired, and it shows, so I'll just end it there.  It may be a while til the next Star Trek movie though.  I just checked my queue, and it's Insurrection.  I actually liked that one, too.

October 19, 2009
Steve Dibb a.k.a. beandog (homepage, stats, bugs)
star trek on blu-ray: the search for spock (October 19, 2009, 16:41 UTC)

I love this movie.  This underdog of a Star Trek film ranks high with me for a lot of reasons.  For one, the whole thing is mostly just kind of a slow-moving backstory, going into character depth quite a lot.  Sure, it would have made a good episode, but it's drawn out, and done well.  It's not as exciting or thrilling as the others, but it stands as a good drama.  I love it.  And watching it on Blu-Ray was great, too. :)

The colors in this one reminded me a lot of watching The Motion Picture.  I noticed this time, that the most vibrant colors are always present when they are docked somewhere, either at the space station, or the interior shots of the ship.  That's where the variety is and it really shows off how crisp and clean the transfer is.  It just looks great.

This was also one of those films that just kept taunting me, wishing I had a better surround sound system (in fact, I bought a new center speaker this weekend, but I had already watched and sent back the movie.  Doh!).  I really liked the score ... heck, I love everything about this movie.

The Search for Spock can best be described as filler material.  It bridges the story of bringing Spock back to life immediately after he died in Wrath of Khan, and it also is the launching point for the events in The Voyage Home.  In fact, that's the part I like the most -- that Star Trek II through IV are all one big story, told sequentially and chronologically in order.

I should get Star Trek IV either today or tomorrow from Netflix.  I can't wait for that one, either.

My verdict for this one though would definitely be to buy.  It was so good.  The colors were great, and smooth, and vibrant, and it just looked like a well done upgrade.

Back from FDC09 in Florence (October 19, 2009, 13:37 UTC)

In the true spirit of “the Sabayon Way” and its extraordinary crew, on the behalf of the staffers available there, I think I can say that it’s been quite a few days of madness (read: fun) at FDC09 in Florence ( “Festival della Creatività 2009“). We showed off how Linux Desktop is alive and Linux Gaming possible hands down introducing Sabayon and its backend projects to those interested. Our stand was always busy and people had a lot of fun playing the greatest Open Source games available for GNU/Linux such as World of Padman, Nexuiz, Wesnoth, Frozen Bubble and so forth. Thanks to Loading Lab, we will be able to feed you with photos and videos hopefully soon. For the braves, just search for “#fdc09″ tag on Flickr (or if you are not lazy, go through all the official photo set here).

So, let me rest a bit and flush out some backlog, more during the next few days.

Ryan Hill a.k.a. dirtyepic (homepage, stats, bugs)

Yeah, this bug is back again. Turns out the code that fixes the paths in gcc's own .la files was broken on new version installs. This means that everyone in stable that updated to gcc-4.3.4 and anyone in unstable that updated to 4.4.2 in the last week or so should resync their portage tree and rebuild gcc now.

See https://bugs.gentoo.org/283761 for the poop.

We won't be doing a revbump because this wasn't version specific. It just sucks that no one noticed the problem until a new version was released.


edit: if you're still getting errors when building, such as

  /bin/grep: /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/libgomp.la: No such file or directory
  /bin/sed: can't read /usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/libgomp.la: No such file or directory
  libtool: link: `/usr/lib/gcc/x86_64-unknown-linux-gnu/4.4.1/libgomp.la' is not a valid libtool archive

where "4.4.1" is the previous version of gcc you upgraded from, run

  # fix_libtool_files.sh
<old gcc version>


app-(x)emacs/gentoo-syntax 1.15 is out (October 19, 2009, 00:03 UTC)

The last news I wrote about the Ebuild mode for both GNU Emacs and XEmacs is some days old and covered version 1.10. Meanwhile we added some functionality that will greatly improve your user experience. All detailed changes are to be found in the shipped ChangeLog file, but I want to give a rough overview about the most important features and the main contributor.

  • faster and more elegant code (ulm)
  • a manual in Info format (fauli), see C-h i under section Gentoo or Emacs, needs fine-tuning, patches welcome
  • support for GLEP 42 news items (ulm)
  • add skeleton support for ebuilds/news items from scratch (ulm)
  • keep eselect mode in sync with eselect features (ulm)
  • keep keywords in sync with eclasses and adding new ones, like mono and kde4 (fauli)
  • reinstate compatability with GNU Emacs 21 (ulm)
  • support for eblit files (ulm)

Now I want to move the spotlight onto the skeleton modes: Pressing C-c C-n in an empty file with ebuild extension, or whose file name matches the GLEP 42 requirements for a news file, will guide you through the creation of a new ebuild. You are asked for the needed items and with the tab key you can often choose from a list with sane entries. Especially news item creation gets easier as this is a seldom task for developers and thus error-prone while being a good measure to communicate important changes to users.

October 18, 2009
The unending tale (October 18, 2009, 23:03 UTC)

Ok guys, buckle up, I've finished reviewing Gnome 2.28 ebuilds except for the gnome-shell stuff. Now Gnome 2.28.1 is expected on wednesday so we can start bumping like crazy to be half-decently on time this time (feels like we'll never be done with the catch-up). There are still quite a few problems with packages as noted in my papers and files under status/ in overlay but upgrade experience should be smoother.

If you are about to test the overlay, please keep us posted on your problems (or your non-problems too) by contacting us on #gentoo-desktop or by filling bug reports. Thanks again to everyone who kept the overlay updated during 2.27 cycle.

edit: fix typo thanks to remi.

October 17, 2009
Steve Dibb a.k.a. beandog (homepage, stats, bugs)
where the wild things are (October 17, 2009, 16:19 UTC)

I got a chance to see Where The Wild Things Are last night, opening night ... I was really excited about this film.  From watching the trailer I thought, oh man, this looks cool.  A story about a little kid that just doesn't adjust well growing up, and is having a hard time.  That's what I figured anyway.  And the movie followed that theme, a bit, but for the most part ... it was just weird, and I have no idea what just happened.  At the same time, though, I can't get it out of my head at all.  It was very impressionable.

The human part of the story was really incredible and very moving, and they could have made a movie just out of that part, it was so well done and they were on a great roll.  When he sails off to the island and finds the monsters though, things just get weird.  I won't get into details because I don't want to spoil it for anyone, but suffice it to say, it was not what I was expecting in the least.  The general feeling I got the whole time was confusion.  I was sitting there thinking, "what the heck is going on?  and why?"

So, I'm not really sure what to say about it, much less figure out what my opinion is.  I thought it was a bit too .... serious, and a bit disturbing at times.  I dunno.  Weird.  Go see it, though.  Everyone else seemed to enjoy it around me.

Edit: Read Roger Ebert's review.  I generally agree pretty closely with what he writes, and in this case, he puts exactly what I'm trying to say into words much better than I do.

Show desktop (or minimize all) in KDE 4 (October 17, 2009, 12:36 UTC)

Disclaimer: Please correct me if you know better. Thank you.

Back in KDE 3 I’ve been using WIN+D repeatedly to minimize all open windows (”show desktop”). In KDE 4 the “show desktop” feature seems to have been replaced by “show dashboard” (CTRL+F12), which is quite a different thing and not what I want.

As missing the minimize-all hotkey started really bugging me I invested a little time to find out if this is really the end. Luckily it’s not though I can only present a workaround rather than a “real solution”.

The easiest (only?) way to assign global hotkeys to programs in KDE 4 is adding an item to the KDE menu. So if we had a program/command to trigger a toggle on “show desktop” we were done. I found a tiny Bash script to do that:

#!/bin/sh
target=on
if xprop -root  _NET_SHOWING_DESKTOP | fgrep '= 1' ; then
    target=off
fi
wmctrl -k ${target}

(requires xprop and wmctrl, i.e. x11-apps/xprop and x11-misc/wmctrl in Gentoo)

Put that in a file called toggle-show-desktop.sh or so, make it executable and add a KDE menu entry for it:
(The Menu Editor can be found in the contect menue of the “KDE button” also know as Application Launcher Menu.)


Now assign a hotkey in the “Advanced” tab, done.

For comparison/completeness in KDE 3 it’s here:
.. and in XFCE here:

My next post/rant on KDE4 will probably be about the removal of vertical gradiants as desktop backgrounds. No, I don’t wat to do that with Gimp. Seems like I’m the only one ever having used it. Anyway…

Robin Johnson a.k.a. robbat2 (homepage, stats, bugs)

I've been prodding at the concept of the new network script in OpenRC-0.5, and I'm at a loss to try and see why Roy has decided to toss the old network config system away. The new system doesn't have a lot of capabilities, and most significantly totally loses the ability to restart a single interface without affecting the rest of the system. If it's just for a rewrite, then I'm not too worried, but unless all the functionality is still there, I'm worried we are going to move backwards with it.

At the same time, I don't think many people are aware of how powerful the "old" network configuration mechanism is. The net.examples file is only the start, once you start mixing in the pre/post calls, there's a lot of power. It's capable of some feats that I don't see used even in certain parts of the Gentoo documentation[1]. I've put together some of my gems of conf.d/net, and if you have some, I'd love to hear them. Leave a comment or email me the scripts, along with a description.

Configurations available
  • Easy to maintain HE.net (Hurricane Electric) IPv6 tunnels - Download
  • Running two ISPs at home (basic multi-homing) - Download
  • "Enterprise" multi-homing setup, with 4 paths to the Internet - Download
Hosting

I've also started a bit of storage in my Gentoo webspace for these collected works of network configuration, with a bit more documentation.

Notes
  1. The Gentoo docs have this for IPv6: Gentoo IPv6 Router Guide, Tunnel Configuration. You could bring it up manually, or you could just take the IPv6 config above and use it straight with your variables filled in. Volunteers welcome to help merge that config into the Gentoo IPv6 documentation.