PaulHowarth/Blog/2008-03-04

Tuesday 4th March 2008

Local Packages

  • Updated dovecot to 1.0.11

  • Fixed ppp to write logs to /var/log/ppp instead of /etc/ppp as per the Rawhide package

I'm also working on some updated php-gtk packages, since the long-awaited version 2.0 release supporting PHP5 and GTK2 finally made it out last weekend. It requires PHP >= 5.1.2 but I found that it wouldn't build on anything older than Fedora 7 (including RHEL 5). This turned out to be because the ZEND_MN macro is used, and that only appeared in later versions of PHP. This patch fixed the build:

$ cat php-gtk-2.0.0-oldphp.patch
--- php-gtk-2.0.0/main/php_gtk.h        2008-02-29 19:05:53.000000000 +0000
+++ php-gtk-2.0.0/main/php_gtk.h        2008-03-04 11:08:30.000000000 +0000
@@ -60,6 +60,11 @@
 #include "zend_exceptions.h"
 #include "zend_extensions.h"
 
+/* for older php versions */
+#ifndef ZEND_MN
+#define ZEND_MN ZEND_FN
+#endif
+
 #define PHP_GTK_VERSION "2.0.0-dev"
 
 #ifdef PHP_WIN32

I've yet to try running pptpconfig with the new php-gtk; I'll leave that for another day.


Recent