On Tue, 16 Nov 2010, Landry Breuil wrote:

> Does it work with libpthread 13.0 and glib 2.26.0p0 ? If so, i can only
> blame sched_get_priority_xx. Here on amd64, libpthread
> 13.1/glib2.26.0p0 or glib2.26.0p1, works fine.

I've found the issue.

The getdirentries basep type change was not handled correctly in this 
case: one was missed (into thunar-vfs-os-bsd.c).

Also, do not use off_t directly in glib code, use goffset instead...

Here's the diff: 

Index: Makefile
===================================================================
RCS file: /cvs/ports/x11/xfce4/thunar/Makefile,v
retrieving revision 1.29
diff -u -p -r1.29 Makefile
--- Makefile    29 Oct 2010 12:44:06 -0000      1.29
+++ Makefile    16 Nov 2010 12:58:45 -0000
@@ -6,7 +6,7 @@ XFCE_VERSION=   1.0.2
 XFCE_PROJECT=  Thunar
 # :L is here for a reason
 PKGNAME=       ${DISTNAME:L}
-REVISION=      3
+REVISION=      4
 
 SHARED_LIBS=   thunarx-1       5.1 \
                thunar-vfs-1    5.1
Index: patches/patch-thunar-vfs_thunar-vfs-os-bsd_c
===================================================================
RCS file: 
/cvs/ports/x11/xfce4/thunar/patches/patch-thunar-vfs_thunar-vfs-os-bsd_c,v
retrieving revision 1.1
diff -u -p -r1.1 patch-thunar-vfs_thunar-vfs-os-bsd_c
--- patches/patch-thunar-vfs_thunar-vfs-os-bsd_c        28 Oct 2010 15:12:57 
-0000      1.1
+++ patches/patch-thunar-vfs_thunar-vfs-os-bsd_c        16 Nov 2010 12:58:45 
-0000
@@ -1,12 +1,21 @@
 $OpenBSD: patch-thunar-vfs_thunar-vfs-os-bsd_c,v 1.1 2010/10/28 15:12:57 sthen 
Exp $
---- thunar-vfs/thunar-vfs-os-bsd.c.orig        Thu Oct 28 03:13:34 2010
-+++ thunar-vfs/thunar-vfs-os-bsd.c     Thu Oct 28 03:13:38 2010
+--- thunar-vfs/thunar-vfs-os-bsd.c.orig        Fri May 21 19:10:52 2010
++++ thunar-vfs/thunar-vfs-os-bsd.c     Tue Nov 16 13:43:02 2010
 @@ -66,7 +66,7 @@ _thunar_vfs_os_is_dir_empty (const gchar *absolute_pat
  {
    struct dirent *dp;
  #ifndef HAVE_GETDENTS
 -  glong          basep = 0;
-+  off_t          basep = 0;
++  goffset        basep = 0;
  #endif
    gchar          dbuf[8 * DIRBLKSIZ];
    gint           size = 0;
+@@ -180,7 +180,7 @@ _thunar_vfs_os_scandir (ThunarVfsPath  *path,
+   struct dirent *dp;
+   struct stat    statb;
+ #ifndef HAVE_GETDENTS
+-  glong          basep = 0;
++  goffset        basep = 0;
+ #endif
+   GList         *path_list = NULL;
+   gchar         *filename;

Reply via email to