From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Jun 30 00:20:02 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id BC90B106566B for ; Wed, 30 Jun 2010 00:20:02 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 7EF548FC15 for ; Wed, 30 Jun 2010 00:20:02 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o5U0K2Sa039117 for ; Wed, 30 Jun 2010 00:20:02 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o5U0K2dP039116; Wed, 30 Jun 2010 00:20:02 GMT (envelope-from gnats) Resent-Date: Wed, 30 Jun 2010 00:20:02 GMT Resent-Message-Id: <201006300020.o5U0K2dP039116@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-ports-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Emil Smolenski Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3ADD5106566C for ; Wed, 30 Jun 2010 00:14:36 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from www.freebsd.org (www.freebsd.org [IPv6:2001:4f8:fff6::21]) by mx1.freebsd.org (Postfix) with ESMTP id 294878FC0A for ; Wed, 30 Jun 2010 00:14:36 +0000 (UTC) Received: from www.freebsd.org (localhost [127.0.0.1]) by www.freebsd.org (8.14.3/8.14.3) with ESMTP id o5U0EZvw005771 for ; Wed, 30 Jun 2010 00:14:36 GMT (envelope-from nobody@www.freebsd.org) Received: (from nobody@localhost) by www.freebsd.org (8.14.3/8.14.3/Submit) id o5U0EZ87005770; Wed, 30 Jun 2010 00:14:35 GMT (envelope-from nobody) Message-Id: <201006300014.o5U0EZ87005770@www.freebsd.org> Date: Wed, 30 Jun 2010 00:14:35 GMT From: Emil Smolenski To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Cc: Subject: ports/148252: [PATCH] games/freeciv freeciv-server fails to start on system without IPv6 X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 30 Jun 2010 00:20:02 -0000 >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: