HomeHome ArchiveArchive

Building heartbeat on Solaris 10

Building heartbeat on Solaris is always a pain. This time it took 4 hours for heartbeat 2.1.3 on x86 Solaris 10.

Needed packages (from Sunfreeware):

autoconf-2.65-sol10-x86-local
automake-1.11-sol10-x86-local
bison-2.4.1-sol10-x86-local
coreutils-8.1-sol10-x86-local
db-4.2.52.NC-sol10-intel-local
flex-2.5.35-sol10-x86-local
gcc-3.3.2-sol10-intel-local
glib-2.20.4-sol10-x86-local
gmp-4.2.1-sol10-x86-local
libgcc-3.4.6-sol10-x86-local
libiconv-1.11-sol10-x86-local
libintl-3.4.0-sol10-x86-local
libnet-1.1.2.1-sol10-x86-local
libsigsegv-2.6-sol10-x86-local
libtool-2.2.6b-sol10-x86-local
m4-1.4.12-sol10-x86-local
make-3.81-sol10-x86-local
pkgconfig-0.23-sol10-x86-local

Create file /usr/local/bin/gnome-config:

#!/bin/sh
echo "-I/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -L/usr/local/lib -lglib-2.0"

chmod +x /usr/local/bin/gnome-config

Fix gcc headers:

cd /usr/local/lib/gcc-lib/i386-pc-solaris2.10/3.3.2/install-tools/
./mkheaders 

Fix hardcoded paths:

ln -s /bin/perl /usr/local/bin/perl
ln -s /usr/local/bin/true /usr/local/bin/python

Patch lib/clplumbing/cl_reboot.c according to this thread.

Build package:

export LD_LIBRARY_PATH=/usr/local/lib
./ConfigureMe package --disable-crm  --disable-lrm --disable-dopd

Install it:

cd pkg/packages/
pkgadd -d . LXHAhb

Screencast for PostRails

PostRails is a PostgreSQL database browser and application server. The project was started in the Breakpoint coding session in the beginning of July 2009. The source was published in August on Github. And now, a Screencast should finally explain what PostRails does!

Letting Twinkle handle ‘callto’ URLs in Firefox

There’s an extension for Firefox called Twinklefox. However it doesn’t run under FF 3.5. I’ve bumped the version in install.rdf, but twinkle won’t get called correctly none the less.

I browsed FF’s settings and … made a little wrapper script to call twinkle:

$ cat /usr/local/bin/twinkle_callto
#!/bin/sh
#
# firefox will call twinkle_callto like this:
#
#   twinkle_callto callto:+41812528006

number=`echo "$1" | sed 's/callto://'`
exec /usr/bin/twinkle --call "$number"

There you go. Very easy.

Go to Preferences->Applications and add this script to handle “callto” URLs. That’s it. You will be able to click on a callto: URL and be handed over to Twinkle.