Archive for November, 2007

lovelysystems at the local job fair

lovelys at the job fair
Lovelysystems joined the job fair in the local university of applied sience. (Fachhochschule Vorarlberg, Dornbirn, Austria). We’ve got really good feedback from the other exhibitors about our extreme lovely, simple and outstanding job fair stand. ;)

getting the lovely zope environment (python, postgresql, mysql) working on Leopard

I switched to Leopard on the very first day,… Finally I managed to get the lovely dev environment working :)

1.) Python: vanilla python didn’t build on Leopard

run configure
add “#define SETPGRP_HAVE_ARG 1″ to pyconfig.h

Note: on two of our machines we got a strange error. I didn’t manage to fix it :( (Probably someone knows what’s going on?)

>>> a=5
>>> round(a)
Bus error

2.) PostgreSQL: postgresql82 in MacPorts didn’t build as well. the patch at the macports trac helped:

— Portfile.orig 2007-10-30 11:49:08.000000000 +1100
+++ Portfile 2007-11-17 00:42:45.000000000 +1100
@@ -50,6 +50,7 @@
configure.cppflags-append “-I${worksrcpath}/src/interfaces/libpq”

build.type gnu
+build.cmd “unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && ${build.cmd}”
build.target

test.run yes
@@ -63,7 +64,7 @@

post-build {
foreach contrib ${contribs} {
- system “cd ${worksrcpath}/contrib/${contrib}/ && ${build.cmd}”
+ system “cd ${worksrcpath}/contrib/${contrib}/ && unset LD_PREBIND LD_PREBIND_ALLOW_OVERLAP && make”
}
}

@@ -71,7 +72,7 @@
foreach contrib ${contribs} {
system “echo contrib: \”${contrib}\”"
system “cd ${worksrcpath}/contrib/${contrib}/ && \
- ${build.cmd} install ${destroot.destdir} && touch DONE”
+ make install ${destroot.destdir} && touch DONE”
}
system “cd ${destroot}${prefix}/bin && ln -sf ${libdir}/bin/psql psql82″
file delete -force ${destroot}${prefix}/share/doc/${name} \

3) MySQLdb: had some troubles as well. The sourceforge tracker helped (patched tarball):

— _mysql.c.orig 2007-11-16 22:32:38.000000000 +0100
+++ _mysql.c 2007-11-16 22:33:42.000000000 +0100
@@ -34,9 +34,6 @@
#else
#include “my_config.h”
#endif
-#ifndef uint
-#define uint unsigned int
-#endif
#include “mysql.h”
#include “mysqld_error.h”
#include “errmsg.h”
@@ -481,8 +478,8 @@
#endif
char *host = NULL, *user = NULL, *passwd = NULL,
*db = NULL, *unix_socket = NULL;
- uint port = MYSQL_PORT;
- uint client_flag = 0;
+ unsigned int port = MYSQL_PORT;
+ unsigned int client_flag = 0;
static char *kwlist[] = { “host”, “user”, “passwd”, “db”, “port”,
“unix_socket”, “conv”,
“connect_timeout”, “compress”,