From ed@hoeg.nl  Sun Jan  1 21:08:16 2006
Return-Path: <ed@hoeg.nl>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 38CF916A41F
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  1 Jan 2006 21:08:16 +0000 (GMT)
	(envelope-from ed@hoeg.nl)
Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211])
	by mx1.FreeBSD.org (Postfix) with ESMTP id A265643D49
	for <FreeBSD-gnats-submit@freebsd.org>; Sun,  1 Jan 2006 21:08:11 +0000 (GMT)
	(envelope-from ed@hoeg.nl)
Received: by palm.hoeg.nl (Postfix, from userid 1000)
	id B6E3A1712B; Sun,  1 Jan 2006 22:08:09 +0100 (CET)
Message-Id: <20060101210809.B6E3A1712B@palm.hoeg.nl>
Date: Sun,  1 Jan 2006 22:08:09 +0100 (CET)
From: Ed Schouten <ed@fxq.nl>
Reply-To: Ed Schouten <ed@fxq.nl>
To: FreeBSD-gnats-submit@freebsd.org
Cc:
Subject: [net/sdl_net] Do not require 'graphics/guilib'
X-Send-Pr-Version: 3.113
X-GNATS-Notify:

>Number:         91186
>Category:       ports
>Synopsis:       [net/sdl_net] Do not require 'graphics/guilib'
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    krion
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 01 21:10:02 GMT 2006
>Closed-Date:    Sat Jan 07 20:20:36 GMT 2006
>Last-Modified:  Sat Jan 07 20:20:36 GMT 2006
>Originator:     Ed Schouten
>Release:        FreeBSD 5.4-STABLE i386
>Organization:
n/a
>Environment:
System: FreeBSD palm.hoeg.nl 5.4-STABLE FreeBSD 5.4-STABLE #0: Wed Dec 14 21:09:01 CET 2005 root@palm.hoeg.nl:/usr/obj/usr/src/sys/PALM i386

>Description:
SDL_net is a cross-platform network library that works on lot of UNIX
and Windows based systems. It allows you to open network-sockets without
looking into winsock for example.

The FreeBSD port also builds the example chat application. The odd thing
is: the chat application requires the 'graphics/guilib' port, but the
example doesn't even get installed, which means all non-graphical
applications requiring SDL_net (daemons, etc) require xorg-libraries.

>How-To-Repeat:
Install the 'games/quake3-q3base' port with the 'WITHOUT_X11' option
set; it will still build xorg-libraries because 'net/sdl_net' depends on
it.

>Fix:
A patch for the 'net/sdl_net' port is available below:

%%%
--- net/sdl_net/Makefile	Sun Jan  1 21:56:43 2006
+++ net/sdl_net/Makefile	Sun Jan  1 21:58:24 2006
@@ -15,14 +15,13 @@
 MAINTAINER=	krion@FreeBSD.org
 COMMENT=	A small sample cross-platform networking library
 
-LIB_DEPENDS=	GUI.0:${PORTSDIR}/graphics/guilib
-
 USE_SDL=	sdl
 USE_REINPLACE=	yes
 USE_GMAKE=	yes
 USE_AUTOTOOLS=	libtool:13:inc
 LIBTOOLFLAGS=	--disable-ltlibs --release-ignore
 INSTALLS_SHLIB=	yes
+CONFIGURE_ARGS=	--disable-gui
 
 post-configure:
 	@${REINPLACE_CMD} -e \
%%%
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->krion 
Responsible-Changed-By: edwin 
Responsible-Changed-When: Sun Jan 1 21:14:14 UTC 2006 
Responsible-Changed-Why:  
Over to maintainer 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91186 
State-Changed-From-To: open->feedback 
State-Changed-By: krion 
State-Changed-When: Thu Jan 5 21:27:47 UTC 2006 
State-Changed-Why:  
Even if you remove guilib dependency, it will still depend on xorg-libs. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=91186 
State-Changed-From-To: feedback->closed 
State-Changed-By: krion 
State-Changed-When: Sat Jan 7 20:20:32 UTC 2006 
State-Changed-Why:  
There's no reason to remove guilib as dependency since you won't still 
able to build sdl_net without xorg/XFree support. 

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