Entries Tagged as ''

adios, esd

(10:46:52 PM) dang: [22:45:58 athena] build> emerge -puvDN world
(10:46:52 PM) dang: These are the packages that would be merged, in order:
(10:46:52 PM) dang: Calculating world dependencies... done!
(10:46:52 PM) dang: Total: 0 packages, Size of downloads: 0 kB
(10:46:52 PM) dang: [22:46:35 athena] build> emerge -pv esound
(10:46:52 PM) dang: These are the packages that would be merged, in order:
(10:46:52 PM) dang: Calculating dependencies... done!
(10:46:52 PM) dang: [ebuild  N    ] media-sound/esound-0.2.38  USE="alsa ipv6 tcpd -debug" 0 kB
(10:46:52 PM) dang: Total: 1 package (1 new), Size of downloads: 0 kB
(10:46:55 PM) dang: Woo hoo!
(10:47:03 PM) dang: Suck it, esd

Alternatives to deskbar applet?

From here:

First of all, yes, button and entry mode are gone and won’t come back in the near future.

Okay, so no more deskbar-applet. Oh lazy-web, are there any alternatives to deskbar-applet that are actually usable? Or will I have to fork deskbar-applet and maintain my own from now until eternity? Or maybe just stop using either tracker or beagle…

C99 Variable Length Arrays

I just discovered today that you can have variable length arrays in C99:

#include
#include 

int main(int argc, char **argv) {
        int len;

        len = strlen(argv[0]);

        char line[len+1];
        printf("%d\n", sizeof(line));
}

Here’s what you get when compiling this:


[12:30:39 athena] tmp> gcc -pedantic -o test test.c
test.c: In function ‘main’:
test.c:9: warning: ISO C90 forbids variable-size array ‘line’
test.c:9: warning: ISO C90 forbids mixed declarations and code
[12:31:02 athena] tmp> gcc -std=c99 -pedantic -o test test.c
[12:34:44 athena] tmp> ./test
7

I’ve verified in the C99 spec that this is actually legal. This is rocking good news to me, and I’m going to start using it all over.

Gnome 2.18 upgrade

Just a quick note. Gnome 2.18 is going stable. During the upgrade, you’ll hit this problem:


checking for XML::Parser... configure: error: XML::Parser perl module is required for intltool

This is *not* gnome’s fault, it’s the fault of the expat upgrade. The fix is to run this:


revdep-rebuild -X

This will rebuild everything broken by expat, doing upgrades as it goes. After it’s done, you should be able to finish upgrading gnome.

We tried to time the gnome and kde stabilizations to match expat so that you’d only have to rebuild tons of stuff once.