From nobody@FreeBSD.org  Wed Jun 30 00:14:36 2010
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34])
	by hub.freebsd.org (Postfix) with ESMTP id 3ADD5106566C
	for <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <freebsd-gnats-submit@FreeBSD.org>; 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 <am@raisa.eu.org>
To: freebsd-gnats-submit@FreeBSD.org
Subject: [PATCH] games/freeciv freeciv-server fails to start on system without IPv6
X-Send-Pr-Version: www-3.1
X-GNATS-Notify:

>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:    johans
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Jun 30 00:20:02 UTC 2010
>Closed-Date:    Wed Jun 30 05:55:30 UTC 2010
>Last-Modified:  Wed Jun 30 05:55:30 UTC 2010
>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:
Responsible-Changed-From-To: freebsd-ports-bugs->johans 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Wed Jun 30 00:20:12 UTC 2010 
Responsible-Changed-Why:  
Over to maintainer (via the GNATS Auto Assign Tool) 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148252 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: ports/148252: commit references a PR
Date: Wed, 30 Jun 2010 05:39:27 +0000 (UTC)

 johans      2010-06-30 05:39:18 UTC
 
   FreeBSD ports repository
 
   Modified files:
     games/freeciv        Makefile 
   Log:
   Optionally disable IPv6 support. Required to run on IPv4-only systems.
   
   PR:             ports/148252
   Submitted by:   Emil Smolenski
   Feature safe:   yes
   
   Revision  Changes    Path
   1.108     +5 -1      ports/games/freeciv/Makefile
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: open->closed 
State-Changed-By: johans 
State-Changed-When: Wed Jun 30 05:55:00 UTC 2010 
State-Changed-Why:  
Committed, thanks. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=148252 
>Unformatted:
