[Pkg-lirc-maint] Bug#436563: libirman: FTBFS on hurd-i386

Samuel Thibault samuel.thibault at ens-lyon.org
Wed Aug 8 08:47:06 UTC 2007


Package: libirman
Version: 0.4.4-1
Severity: important
Tags: patch

Hi,

libirman currently FTBFS on hurd-i386 because flock() is available from
sys/file.h instead of <fcntl.h>. Here is an autoconf patch (which, btw,
fixes the look for sys/flock.h too...)

Samuel

-- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (990, 'testing'), (500, 'unstable'), (500, 'stable'), (1, 'experimental')
Architecture: i386 (i686)

Kernel: Linux 2.6.22
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash

-- 
Samuel Thibault <samuel.thibault at ens-lyon.org>
> X..., c'est un millefeuille avec une couche de crème patissière, une
> de sauce tomate et une de crème d'anchois... Mais c'est vrai que
> c'est un système ouvert: tu peux y rajouter des pépites de chocolat...
-+- Ol in Guide du linuxien pervers - "Remettez m'en une couche !" -+-
-------------- next part --------------
diff -ur libirman-0.4.4/config.h.in libirman-0.4.4-mine/config.h.in
--- libirman-0.4.4/config.h.in	2007-08-08 05:07:07.330000000 +0000
+++ libirman-0.4.4-mine/config.h.in	2007-08-08 05:06:49.000000000 +0000
@@ -2,6 +2,9 @@
 
 /* Define to 1 if you have the <fcntl.h> header file. */
 #undef HAVE_FCNTL_H
+
+/* Define if you have the <sys/file.h> header file.  */
+#undef HAVE_SYS_FILE_H
 
 /* Define to 1 if you have the <inttypes.h> header file. */
 #undef HAVE_INTTYPES_H
diff -ur libirman-0.4.4/configure libirman-0.4.4-mine/configure
--- libirman-0.4.4/configure	2006-02-25 18:57:20.960000000 +0000
+++ libirman-0.4.4-mine/configure	2007-08-08 05:06:47.000000000 +0000
@@ -1046,7 +1046,7 @@
 
 fi
 
-for ac_hdr in fcntl.h sys/time.h unistd.h termios.h memory.h
+for ac_hdr in fcntl.h sys/file.h sys/flock.h sys/time.h unistd.h termios.h memory.h
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
--- libirman-0.4.4/configure.in	2006-02-25 18:57:20.950000000 +0000
+++ libirman-0.4.4-mine/configure.in	2007-08-08 05:06:29.110000000 +0000
@@ -10,7 +10,7 @@
 
 dnl Checks for header files.
 AC_HEADER_STDC
-AC_CHECK_HEADERS(fcntl.h sys/time.h unistd.h termios.h memory.h)
+AC_CHECK_HEADERS(fcntl.h sys/file.h sys/flock.h sys/time.h unistd.h termios.h memory.h)
 
 dnl Checks for typedefs, structures, and compiler characteristics.
 AC_TYPE_PID_T
--- libirman-0.4.4/irio.c	2006-02-25 18:57:20.030000000 +0000
+++ libirman-0.4.4-mine/irio.c	2007-08-08 05:08:11.000000000 +0000
@@ -38,6 +38,10 @@
 # include <sys/flock.h>
 #endif
 
+#ifdef HAVE_SYS_FILE_H
+# include <sys/file.h>
+#endif
+
 #ifdef HAVE_TERMIOS_H
 # include <termios.h>
 #endif


More information about the Pkg-lirc-maint mailing list