< aboutcher />; Guides, Code and Other Ramblings

14Sep/11

Debian, Compiz and Metacity

Posted on: 14th September 2011

So today I've spent most of my timing trying to figure out a bug with Debian (sid) Compiz and Metacity/Gnome where there was no window controls i.e. no minimise, maximise, restore and close button.

I found some bugs listed #629239 and #639207 which was the same issue as mine and not the normal "missing emerald" crap.

So after much searching and playing about I decided to downgrade my Metacity to 2.30.1-3 from Metacity 2.34.1-1 which solved my problem!

so Notes to self:

user@computer:$ wget http://mirror.nus.edu.sg/Debian/pool/main/m/metacity/metacity-common_2.30.1-3_all.deb
wget http://mirror.nus.edu.sg/Debian/pool/main/m/metacity/libmetacity-private0_2.30.1-3_i386.deb
wget http://mirror.nus.edu.sg/Debian/pool/main/m/metacity/metacity_2.30.1-3_i386.deb
dpkg --install metacity-common_2.30.1-3_all.deb
dpkg --install libmetacity-private0_2.30.1-3_i386.deb
dpkg --install metacity_2.30.1-3_i386.deb
reboot

Obviously change 9386 to amd64 for a true 64bit system!

Also rember to have compiz --replace ccp in your gnome startup!

10May/11

ldir bug 1.7.3-1

Posted on: 10th May 2011

I have just found a bug in ldir (Bug #1), which unfortunately trails all the way to 1.6.5.

The bug doesn't effect PHP5 installations but it effects all PHP4 installations.

I unknowingly used the function strripos() and stripos() which were only introduced in PHP5. The bug got past because I was using a personally modded PHP4 install.

I will be patching the current code to include a check for the functions, like I did with scandir() function. I will also be issuing a patch file which you will have to require_once() before ldir which will contain the patch for any previous version.

Sorry for any inconvenience and this bug fix is top priority.

Edit:

Bug fix (1.7.3-1 0.0.3) is online and ldir is now fixed.

Changelog entry 1.7.3-1 logs this bug, found in version 1.7.3 bug 1.

And FYI 0.0.3 is version 0.0.3 of the fix, yes it took 3 attempts!