gamin: crux 2.5 ready

This commit is contained in:
Bartlomiej Palmowski 2008-10-28 17:46:25 +01:00
parent beb7d6b8b9
commit cba0522df0
4 changed files with 61 additions and 7 deletions

View File

@ -15,11 +15,11 @@ lrwxrwxrwx root/root usr/lib/libgamin-1.so.0 -> libgamin-1.so.0.1.9
-rw-r--r-- root/root usr/lib/libgamin_shared.a
drwxr-xr-x root/root usr/lib/pkgconfig/
-rw-r--r-- root/root usr/lib/pkgconfig/gamin.pc
drwxr-xr-x root/root usr/lib/python2.5/
drwxr-xr-x root/root usr/lib/python2.5/site-packages/
-rw-r--r-- root/root usr/lib/python2.5/site-packages/_gamin.a
-rwxr-xr-x root/root usr/lib/python2.5/site-packages/_gamin.la
-rwxr-xr-x root/root usr/lib/python2.5/site-packages/_gamin.so
-rw-r--r-- root/root usr/lib/python2.5/site-packages/gamin.py
drwxr-xr-x root/root usr/lib/python2.6/
drwxr-xr-x root/root usr/lib/python2.6/site-packages/
-rw-r--r-- root/root usr/lib/python2.6/site-packages/_gamin.a
-rwxr-xr-x root/root usr/lib/python2.6/site-packages/_gamin.la
-rwxr-xr-x root/root usr/lib/python2.6/site-packages/_gamin.so
-rw-r--r-- root/root usr/lib/python2.6/site-packages/gamin.py
drwxr-xr-x root/root usr/sbin/
-rwxr-xr-x root/root usr/sbin/gam_server

View File

@ -1 +1,2 @@
82284f346a0b66bdd27c818b041b4871 gamin-0.1.9-ucred-headers.patch
2d3a6a70df090ed923238e381e6c2982 gamin-0.1.9.tar.gz

View File

@ -7,10 +7,11 @@
name=gamin
version=0.1.9
release=1
source=(http://www.gnome.org/~veillard/$name/sources/$name-$version.tar.gz)
source=(http://www.gnome.org/~veillard/$name/sources/$name-$version.tar.gz $name-$version-ucred-headers.patch)
build() {
cd $name-$version
patch -p1 -i ../$name-$version-ucred-headers.patch
./configure \
--prefix=/usr \
--libexecdir=/usr/sbin \

View File

@ -0,0 +1,52 @@
diff -up gamin-0.1.9/server/gam_channel.c.xxx gamin-0.1.9/server/gam_channel.c
--- gamin-0.1.9/server/gam_channel.c.xxx 2007-07-04 15:36:49.000000000 +0200
+++ gamin-0.1.9/server/gam_channel.c 2008-02-14 10:00:38.654849392 +0100
@@ -3,7 +3,6 @@
#include <unistd.h>
#include <errno.h>
#include <glib.h>
-#include <sys/socket.h>
#include <sys/stat.h>
#include <sys/un.h>
#include <sys/uio.h>
@@ -12,6 +11,14 @@
#include "gam_channel.h"
#include "gam_protocol.h"
+#ifdef HAVE_LINUX
+ /* Workaround for undefined struct ucred */
+ #define __USE_GNU
+#endif
+
+#include <sys/socket.h>
+
+
/* #define CHANNEL_VERBOSE_DEBUGGING */
/************************************************************************
* *
diff -up gamin-0.1.9/libgamin/gam_api.c.xxx gamin-0.1.9/libgamin/gam_api.c
--- gamin-0.1.9/libgamin/gam_api.c.xxx 2007-07-04 15:36:48.000000000 +0200
+++ gamin-0.1.9/libgamin/gam_api.c 2008-02-13 17:41:50.697896914 +0100
@@ -11,7 +11,6 @@
#include <fcntl.h>
#include <errno.h>
#include <sys/stat.h>
-#include <sys/socket.h>
#include <sys/un.h>
#include <sys/uio.h>
#include "fam.h"
@@ -20,6 +19,14 @@
#include "gam_fork.h"
#include "gam_error.h"
+#ifdef HAVE_LINUX
+ /* Workaround for undefined struct ucred */
+ #define __USE_GNU
+#endif
+
+#include <sys/socket.h>
+
+
#define TEST_DEBUG
#define MAX_RETRIES 25