[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Help in testing a patch for efax-gtk FTBFS on kfreebsd



Hi Guys,

I'm the maintainer of efax-gtk. My recent upload FTBFS on kfreebsd-i386 and kfreebsd-amd64.

I've talked with my upstream (CCed), and got a patch which might solve the problem.
I need help with testing the suggested patch.

Thanks in advance.

Kaplan

>> Debian has ships with a freebsd kernel instead of linux. It seems
>> that your c++-gtk-utils has a problem compiling on this environment.
> >
> > See:
> > https://buildd.debian.org/status/package.php?p=efax-gtk#fail-efax-gtk-kfreebsd-i386
> > or
> > https://buildd.debian.org/fetch.cgi?pkg=efax-gtk;ver=3.2.2-1;arch=kfreebsd-i386;stamp=1274548549
> >
> > Kaplan
>
> The configure script runs a sysconf() test to determine whether POSIX
> monotonic clocks are supported.  It looks as if sysconf() reports that
> they are, but in fact they are not, or at least not without some
> additional magic.
>
> The sysconf test for _SC_MONOTONIC_CLOCK can be found in acinclude.m4
> in the efax-gtk package, in the AC_CHECK_CXX_GTK_UTILS macro.
--- efax-gtk/acinclude.m4.~1.30.~	2010-04-27 22:36:06.000000000 +0100
+++ efax-gtk/acinclude.m4	2010-05-24 14:51:49.000000000 +0100
@@ -475,9 +475,18 @@
 #include <unistd.h>
       ],
       [
-        if (_POSIX_MONOTONIC_CLOCK > 0) return 0;
-        if (_POSIX_MONOTONIC_CLOCK == -1) return -1;
-        if (sysconf(_SC_MONOTONIC_CLOCK) > 0) return 0;
+        if (_POSIX_MONOTONIC_CLOCK > 0
+	   && _POSIX_CLOCK_SELECTION > 0)
+	   return 0;
+
+        if (_POSIX_MONOTONIC_CLOCK == -1
+	   || _POSIX_CLOCK_SELECTION == -1)
+	    return -1;
+
+        if (sysconf(_SC_MONOTONIC_CLOCK) > 0
+	   && sysconf(_SC_CLOCK_SELECTION) > 0)
+	   return 0;
+
         return -1;
       ])
     ],

Reply to: