From nobody@FreeBSD.org  Wed Dec 15 21:34:08 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id CE4B816A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Dec 2004 21:34:08 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id B0D4543D5A
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Dec 2004 21:34:08 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.13.1/8.13.1) with ESMTP id iBFLY8t7048651
	for <freebsd-gnats-submit@FreeBSD.org>; Wed, 15 Dec 2004 21:34:08 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.13.1/8.13.1/Submit) id iBFLNp4j012612;
	Wed, 15 Dec 2004 21:23:51 GMT
	(envelope-from nobody)
Message-Id: <200412152123.iBFLNp4j012612@www.freebsd.org>
Date: Wed, 15 Dec 2004 21:23:51 GMT
From: Etienne Robillard <granted14@yahoo.com>
To: freebsd-gnats-submit@FreeBSD.org
Subject: x11-server/xorg-server is missing dependencies to x11/xorg-libraries during compilation 
X-Send-Pr-Version: www-2.3

>Number:         75133
>Category:       ports
>Synopsis:       x11-server/xorg-server is missing dependencies to x11/xorg-libraries during compilation
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-x11
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 15 21:40:21 GMT 2004
>Closed-Date:    Fri Dec 17 20:24:33 GMT 2004
>Last-Modified:  Fri Dec 17 20:24:33 GMT 2004
>Originator:     Etienne Robillard
>Release:        FreeBSD-5.3 STABLE
>Organization:
Independant
>Environment:
FreeBSD fuba 5.3-STABLE FreeBSD 5.3-STABLE #5: Mon Dec 13 14:34:30 UTC 2004     erob@fuba:/usr/obj/usr/src/sys/HANNAH  i386

>Description:
- The 'xorg-server' port doesn't compile without having 'xorg-libraries' installed.

- USE_XLIB is defined inside 'bsd.port.mk'. 

Is current configuration is set to: 
 .if defined(USE_XLIB)
 LIB_DEPENDS+=X11.6:${X_LIBRARIES_PORT}
 ...

Here's the scrubbed compilation result without having xorg-libraries installed:

..
In file included from accessx.c:32:
config.h:32:28: X11/IntrinsicP.h: No such file or directory
config.h:33:28: X11/StringDefs.h: No such file or directory
config.h:34:29: X11/Xmu/SysUtil.h: No such file or directory
config.h:78:34: X11/extensions/XKBui.h: No such file or directory
..


>How-To-Repeat:
pkg_delete -rf 'xorg-libraries*';
pkg_delete -rf 'xorg-server*';
cd /usr/ports/x11-server/xorg-server && make distclean && make install clean; 
>Fix:
As a work-around, change the line (in Mk/bsd.port.mk) where LIB_DEPENDS+=X11.6:${X_LIBRARIES_PORT}
to
BUILD_DEPENDS+=xorg-libraries:${X_LIBRARIES_PORT}
and see if it's causing havoc with other X11 ports...
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-ports-bugs->freebsd-x11 
Responsible-Changed-By: lesi 
Responsible-Changed-When: Wed Dec 15 23:44:49 GMT 2004 
Responsible-Changed-Why:  
Over to x11@. 

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

From: Dejan Lesjak <dejan.lesjak@ijs.si>
To: freebsd-gnats-submit@freebsd.org, granted14@yahoo.com
Cc:  
Subject: Re: ports/75133: x11-server/xorg-server is missing dependencies to x11/xorg-libraries during compilation
Date: Thu, 16 Dec 2004 00:42:49 +0100

 xorg-server port does depend on xorg-libraries through use of USE_XLIB 
 variable. Running commands from 'How-To-Repeat' section (with a small fix of 
 x11-server -> x11-servers of course) first installs xorg-libraries and then 
 proceeds with building and installing xorg-server here. Also ports build 
 cluster doesn't seem to complain about missing dependencies (you can check 
 for a build log here: 
 http://pointyhat.freebsd.org/errorlogs/i386-5-full-logs/)
 The proposed workaround would indeed cause havoc as you say as there is no 
 xorg-libraries executable installed by either of X11 libraries ports. Thus 
 every port that defines USE_XLIB would try to reinstall chosen X11 libraries 
 and fail if they would already be installed.
 All in all it seems that there is something wrong with your environment. You 
 can see on which port xorg-server depends by using 
 pretty-print-build-depends-list and pretty-print-run-depends-list make target 
 as descibed in ports(7). Both outputs should include xorg-libraries.
 
 
 Dejan
State-Changed-From-To: open->closed 
State-Changed-By: lesi 
State-Changed-When: Fri Dec 17 20:22:06 GMT 2004 
State-Changed-Why:  
There doesn't seem to be anything wrong with xorg-server dependencies, so I'm 
closing this. 
If I misunderstood the problem somehow, please explain what the problem seems 
to be. 

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