Date: Wed, 30 Jun 2010 00:14:35 GMT From: Emil Smolenski <am@raisa.eu.org> To: freebsd-gnats-submit@FreeBSD.org Subject: ports/148252: [PATCH] games/freeciv freeciv-server fails to start on system without IPv6 Message-ID: <201006300014.o5U0EZ87005770@www.freebsd.org> Resent-Message-ID: <201006300020.o5U0K2dP039116@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006300014.o5U0EZ87005770>