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

libpgm: FTBFS on hurd-i386 (for review)



Source: libpgm
Version: 5.1.118-1~dfsg-0.1
Severity: important
Tags: patch
User: debian-hurd@lists.debian.org
Usertags: hurd

Hi,

Currently libpgm fails to build from source due to that while the
struct group_req is defined in <netinet/in.h> no corresponding
MCAST_* values are defined in <bits/in.h>. This results in a positive
check in configure, and they are needed as option values for
setsockopt(2) in the file openpgm/pgm/sockaddr.c. The configure check
is extended to check if MCAST_JOIN_GROUP is defined. Additionally
autoreconf -i is added to debian/rules so it is sufficient to patch
only configure.ac.

Thanks!


--- a/debian_rules	2012-04-29 09:50:52.000000000 +0200
+++ b/debian/rules	2014-04-22 21:52:03.000000000 +0200
@@ -6,6 +6,7 @@
 
 override_dh_auto_configure:
 	cd openpgm/pgm && \
+		autoreconf -i && \
 		./configure --prefix=/usr
 
 override_dh_clean:
--- a/openpgm_pgm_configure.ac	2011-09-27 19:59:08.000000000 +0200
+++ b/openpgm/pgm/configure.ac	2014-04-22 21:30:18.000000000 +0200
@@ -197,7 +197,7 @@
 AC_COMPILE_IFELSE(
 	[AC_LANG_PROGRAM([[#include <netinet/in.h>]],
 		[[struct group_req gr;
-gr.gr_interface = 0;]])],
+gr.gr_interface = 0; #ifndef MCAST_JOIN_GROUP; return -1; #else return 0; #endif]])],
 	[AC_MSG_RESULT([yes])
 		CFLAGS="$CFLAGS -DCONFIG_HAVE_MCAST_JOIN"],
 	[AC_MSG_RESULT([no])])

Reply to: