ports/148252: [PATCH] games/freeciv freeciv-server fails to start on system without IPv6
Emil Smolenski
am at raisa.eu.org
Wed Jun 30 00:20:02 UTC 2010
>Number: 148252
>Category: ports
>Synopsis: [PATCH] games/freeciv freeciv-server fails to start on system without IPv6
>Confidential: no
>Severity: non-critical
>Priority: low
>Responsible: freebsd-ports-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Wed Jun 30 00:20:02 UTC 2010
>Closed-Date:
>Last-Modified:
>Originator: Emil Smolenski
>Release: FreeBSD 8.0-STABLE
>Organization:
>Environment:
FreeBSD bolt 8.0-STABLE FreeBSD 8.0-STABLE #10: Thu May 13 17:29:11 CEST 2010 root at bolt:/usr/obj/usr/src/sys/BOLT i386
>Description:
I have the "WITHOUT_IPV6=yes" line in /etc/make.conf and kernel compiled without the INET6 option. With this configuration freeciv-server fails to start:
% freeciv-server
This is the server for Freeciv version 2.2.1
You can learn a lot about Freeciv at http://www.freeciv.org/
0: Detected fatal error in sernet.c line 983:
0: socket failed: Protocol not supported
Assertion failed: (FALSE), function real_die, file shared.c, line 758.
Abort (core dumped)
>How-To-Repeat:
Try to start freeciv-server on system compiled without IPv6 support.
>Fix:
The attached patch passes --enable-ipv6=no to configure if WITHOUT_IPV6 is defined.
Patch attached with submission follows:
diff -ruN freeciv.orig/Makefile freeciv/Makefile
--- freeciv.orig/Makefile 2010-06-29 21:36:43.000000000 +0200
+++ freeciv/Makefile 2010-06-30 01:48:29.219952813 +0200
@@ -70,6 +70,12 @@
PLIST_SUB+= NLS=""
.endif
+.ifdef WITHOUT_IPV6
+CONFIGURE_ARGS+=--enable-ipv6=no
+.else
+CONFIGURE_ARGS+=--enable-ipv6=yes
+.endif
+
post-patch:
@${REINPLACE_CMD} -e '/test.*==/s|==|=|;\
/^LIBS/s|mixer|mixer $$SDL_LIBS|g' ${WRKSRC}/configure
>Release-Note:
>Audit-Trail:
>Unformatted:
More information about the freebsd-ports-bugs
mailing list