[Pkg-utopia-maintainers] Bug#438938: avahi: FTBFS on hurd-i386
Samuel Thibault
samuel.thibault at ens-lyon.org
Mon Aug 20 21:28:50 UTC 2007
Package: avahi
Version: 0.6.21-1
Severity: important
Tags: patch
Hi,
Avahi currently FTBFS on hurd-i386 because the Hurd doesn't yet have a
way to monitor network interfaces. Here is a patch that adds support for
such system. Also a fix for unconditionnal of the optional PATH_MAX
macro.
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.18-xen
Locale: LANG=fr_FR at euro, LC_CTYPE=fr_FR at euro (charmap=ISO-8859-15)
Shell: /bin/sh linked to /bin/bash
--
Samuel
<N> (* If you have a precise idea of the intended use of the following code, please
<N> write to Eduardo.Gimenez at inria.fr and ask for the prize :-)
<N> -- Eduardo (11/8/97) *)
-+- N sur #ens-mim - et c'était un des développeurs -+-
-------------- next part --------------
diff -ur avahi-0.6.21-orig/avahi-core/Makefile.am avahi-0.6.21/avahi-core/Makefile.am
--- avahi-0.6.21-orig/avahi-core/Makefile.am 2007-04-13 01:41:00.000000000 +0200
+++ avahi-0.6.21/avahi-core/Makefile.am 2007-08-20 23:09:35.000000000 +0200
@@ -95,6 +95,9 @@
if HAVE_PF_ROUTE
libavahi_core_la_SOURCES += \
iface-pfroute.c iface-pfroute.h
+else
+libavahi_core_la_SOURCES += \
+ iface-none.c
endif
endif
diff -ur avahi-0.6.21-orig/avahi-core/Makefile.in avahi-0.6.21/avahi-core/Makefile.in
--- avahi-0.6.21-orig/avahi-core/Makefile.in 2007-08-12 18:08:47.338305000 +0200
+++ avahi-0.6.21/avahi-core/Makefile.in 2007-08-20 23:10:21.673759000 +0200
@@ -72,6 +72,9 @@
@HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_TRUE at am__append_2 = \
@HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_TRUE@ iface-pfroute.c iface-pfroute.h
+ at HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_FALSE at am__append_3 = \
+ at HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_FALSE@ iface-none.c
+
subdir = avahi-core
DIST_COMMON = $(avahiinclude_HEADERS) $(srcdir)/Makefile.am \
$(srcdir)/Makefile.in
@@ -108,10 +111,11 @@
multicast-lookup.h querier.c querier.h addr-util.h addr-util.c \
domain-util.h domain-util.c dns-srv-rr.h iface-linux.c \
iface-linux.h netlink.c netlink.h iface-pfroute.c \
- iface-pfroute.h
+ iface-pfroute.h iface-none.c
@HAVE_NETLINK_TRUE at am__objects_1 = libavahi_core_la-iface-linux.lo \
@HAVE_NETLINK_TRUE@ libavahi_core_la-netlink.lo
@HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_TRUE at am__objects_2 = libavahi_core_la-iface-pfroute.lo
+ at HAVE_NETLINK_FALSE@@HAVE_PF_ROUTE_FALSE at am__objects_3 = libavahi_core_la-iface-none.lo
am_libavahi_core_la_OBJECTS = libavahi_core_la-timeeventq.lo \
libavahi_core_la-iface.lo libavahi_core_la-server.lo \
libavahi_core_la-entry.lo libavahi_core_la-prioq.lo \
@@ -133,7 +137,7 @@
libavahi_core_la-multicast-lookup.lo \
libavahi_core_la-querier.lo libavahi_core_la-addr-util.lo \
libavahi_core_la-domain-util.lo $(am__objects_1) \
- $(am__objects_2)
+ $(am__objects_2) $(am__objects_3)
libavahi_core_la_OBJECTS = $(am_libavahi_core_la_OBJECTS)
PROGRAMS = $(noinst_PROGRAMS)
am_avahi_reflector_OBJECTS = \
@@ -525,7 +529,7 @@
hashmap.c hashmap.h wide-area.c wide-area.h multicast-lookup.c \
multicast-lookup.h querier.c querier.h addr-util.h addr-util.c \
domain-util.h domain-util.c dns-srv-rr.h $(am__append_1) \
- $(am__append_2)
+ $(am__append_2) $(am__append_3)
libavahi_core_la_CFLAGS = $(AM_CFLAGS)
libavahi_core_la_LIBADD = $(AM_LDADD) ../avahi-common/libavahi-common.la
libavahi_core_la_LDFLAGS = $(AM_LDFLAGS) -export-dynamic -version-info $(LIBAVAHI_CORE_VERSION_INFO)
@@ -725,6 +729,7 @@
@AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/libavahi_core_la-fdutil.Plo at am__quote@
@AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/libavahi_core_la-hashmap.Plo at am__quote@
@AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/libavahi_core_la-iface-linux.Plo at am__quote@
+ at AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/libavahi_core_la-iface-none.Plo at am__quote@
@AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/libavahi_core_la-iface-pfroute.Plo at am__quote@
@AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/libavahi_core_la-iface.Plo at am__quote@
@AMDEP_TRUE@@am__include@ @am__quote at ./$(DEPDIR)/libavahi_core_la-log.Plo at am__quote@
@@ -1013,6 +1018,13 @@
@AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
@am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-iface-pfroute.lo `test -f 'iface-pfroute.c' || echo '$(srcdir)/'`iface-pfroute.c
+libavahi_core_la-iface-none.lo: iface-none.c
+ at am__fastdepCC_TRUE@ if $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -MT libavahi_core_la-iface-none.lo -MD -MP -MF "$(DEPDIR)/libavahi_core_la-iface-none.Tpo" -c -o libavahi_core_la-iface-none.lo `test -f 'iface-none.c' || echo '$(srcdir)/'`iface-none.c; \
+ at am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/libavahi_core_la-iface-none.Tpo" "$(DEPDIR)/libavahi_core_la-iface-none.Plo"; else rm -f "$(DEPDIR)/libavahi_core_la-iface-none.Tpo"; exit 1; fi
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ source='iface-none.c' object='libavahi_core_la-iface-none.lo' libtool=yes @AMDEPBACKSLASH@
+ at AMDEP_TRUE@@am__fastdepCC_FALSE@ DEPDIR=$(DEPDIR) $(CCDEPMODE) $(depcomp) @AMDEPBACKSLASH@
+ at am__fastdepCC_FALSE@ $(LIBTOOL) --tag=CC --mode=compile $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(libavahi_core_la_CFLAGS) $(CFLAGS) -c -o libavahi_core_la-iface-none.lo `test -f 'iface-none.c' || echo '$(srcdir)/'`iface-none.c
+
avahi_reflector-avahi-reflector.o: avahi-reflector.c
@am__fastdepCC_TRUE@ if $(CC) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(avahi_reflector_CFLAGS) $(CFLAGS) -MT avahi_reflector-avahi-reflector.o -MD -MP -MF "$(DEPDIR)/avahi_reflector-avahi-reflector.Tpo" -c -o avahi_reflector-avahi-reflector.o `test -f 'avahi-reflector.c' || echo '$(srcdir)/'`avahi-reflector.c; \
@am__fastdepCC_TRUE@ then mv -f "$(DEPDIR)/avahi_reflector-avahi-reflector.Tpo" "$(DEPDIR)/avahi_reflector-avahi-reflector.Po"; else rm -f "$(DEPDIR)/avahi_reflector-avahi-reflector.Tpo"; exit 1; fi
--- /dev/null 2005-07-18 01:39:37.000000000 +0200
+++ avahi-0.6.21/avahi-core/iface-none.c 2007-08-20 23:08:51.000000000 +0200
@@ -0,0 +1,32 @@
+/* $Id: iface-linux.c 1339 2006-12-12 02:12:03Z lathiat $ */
+
+/***
+ This file is part of avahi.
+
+ avahi is free software; you can redistribute it and/or modify it
+ under the terms of the GNU Lesser General Public License as
+ published by the Free Software Foundation; either version 2.1 of the
+ License, or (at your option) any later version.
+
+ avahi is distributed in the hope that it will be useful, but WITHOUT
+ ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
+ or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General
+ Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with avahi; if not, write to the Free Software
+ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
+ USA.
+***/
+
+#include "iface.h"
+
+int avahi_interface_monitor_init_osdep(AvahiInterfaceMonitor *m) {
+ return 0;
+}
+
+void avahi_interface_monitor_free_osdep(AvahiInterfaceMonitor *m) {
+}
+
+void avahi_interface_monitor_sync(AvahiInterfaceMonitor *m) {
+}
--- avahi-0.6.21-orig/avahi-client/xdg-config.c 2006-08-31 19:18:03.887351000 +0200
+++ avahi-0.6.21/avahi-client/xdg-config.c 2007-08-20 23:18:31.782555000 +0200
@@ -31,6 +31,10 @@
#include "xdg-config.h"
+#ifndef PATH_MAX
+#define PATH_MAX 4096
+#endif
+
FILE *avahi_xdg_config_open(const char *filename) {
FILE *f;
const char *e, *d;
More information about the Pkg-utopia-maintainers
mailing list