ports/96704: [PATCH] net/avahi does not compile on FreeBSD 4.x
Sven Berkvens-Matthijsse
sven at ilse.net
Wed May 3 08:50:38 UTC 2006
>Number: 96704
>Category: ports
>Synopsis: [PATCH] net/avahi does not compile on FreeBSD 4.x
>Confidential: no
>Severity: non-critical
>Priority: medium
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed May 03 08:50:20 GMT 2006
>Closed-Date:
>Last-Modified:
>Originator: Sven Berkvens-Matthijsse
>Release: FreeBSD 4.10-STABLE i386
>Organization:
ilse media BV
>Environment:
System: FreeBSD serv7.ilse.net 4.10-STABLE FreeBSD 4.10-STABLE #23: Wed Aug 4 15:18:52 CEST 2004 root at tango.ilse.net:/usr/obj/usr/src/sys/BAROQUE i386
>Description:
net/avahi does not compile under FreeBSD 4.x. This package is
required by the latest Gnome, for example, which now does not
work under 4.x.
>How-To-Repeat:
Try to install on 4.x.
>Fix:
This patch to /usr/ports/net/avahi/Makefile:
--- Makefile.orig Wed May 3 10:22:11 2006
+++ Makefile Wed May 3 10:22:31 2006
@@ -22,6 +22,7 @@
USE_GNOME?= gnomehack ltverhack glib20
USE_GMAKE= yes
USE_AUTOTOOLS= libtool:15
+USE_GETOPT_LONG=yes
INSTALLS_SHLIB= yes
CONFIGURE_ARGS?=--with-distro=freebsd \
--with-dbus-system-address=unix:path=/var/run/dbus/dbus.pipe \
@@ -54,9 +55,9 @@
.include <bsd.port.pre.mk>
.if !defined(AVAHI_SLAVE)
-.if ${OSVERSION} < 500000
-IGNORE= does not work on FreeBSD 4.X
-.endif
+#.if ${OSVERSION} < 500000
+#IGNORE= does not work on FreeBSD 4.X
+#.endif
.if defined(WITH_GTK2)
USE_GNOME+= libglade2
And this file installed in /usr/ports/net/avahi/files/patch-avahi-dns.c:
--- avahi-core/dns.c.orig Wed May 3 10:24:39 2006
+++ avahi-core/dns.c Wed May 3 10:24:50 2006
@@ -28,6 +28,7 @@
#include <stdio.h>
#include <assert.h>
+#include <sys/types.h>
#include <netinet/in.h>
#include <avahi-common/defs.h>
will fix the problems on FreeBSD 4.x on not break the build on 5.x
and later.
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list